:root{color-scheme:dark;--rail:#1e1f22;--sidebar:#2b2d31;--main:#313338;--deep:#232428;--surface:#383a40;--active:#404249;--line:rgba(255,255,255,.07);--line2:rgba(255,255,255,.12);--text:#f2f3f5;--soft:#dbdee1;--muted:#b5bac1;--dim:#80848e;--accent:#5865f2;--accent2:#7583ff;--green:#23a55a;--yellow:#f0b232;--red:#f23f43;--rail-w:72px;--side-w:288px;--head-h:52px;--font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--shadow:0 18px 48px rgba(0,0,0,.48),0 2px 10px rgba(0,0,0,.25)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--rail);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased}button,input,textarea{color:inherit;font:inherit}button{border:0}button:not(:disabled),a,label[for]{cursor:pointer}button:disabled{cursor:not-allowed}img{display:block;max-width:100%}svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9}.is-hidden{display:none!important}.mobile-only{display:none}:focus-visible{outline:2px solid var(--accent2);outline-offset:2px}
/* Boot and login */
.boot-screen{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;gap:18px;background:radial-gradient(circle at 50% 43%,rgba(88,101,242,.18),transparent 29%),#111216;transition:.18s}.boot-screen.is-leaving{opacity:0;visibility:hidden}.brand-mark{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:15px;background:linear-gradient(145deg,#7583ff,#5865f2 58%,#4150d8);box-shadow:0 12px 30px rgba(88,101,242,.32),inset 0 1px rgba(255,255,255,.24);color:#fff;font-weight:850;letter-spacing:-.04em}.brand-mark--large{width:62px;height:62px;border-radius:21px;font-size:24px}.boot-copy{display:grid;justify-items:center;gap:4px}.boot-copy strong{font-size:20px;letter-spacing:-.02em}.boot-copy span{color:var(--dim);font-size:13px}.boot-dots{display:flex;gap:6px}.boot-dots i{width:6px;height:6px;border-radius:50%;background:var(--accent2);animation:pulse 1.05s ease-in-out infinite}.boot-dots i:nth-child(2){animation-delay:.12s}.boot-dots i:nth-child(3){animation-delay:.24s}@keyframes pulse{0%,70%,100%{opacity:.25;transform:none}35%{opacity:1;transform:translateY(-4px)}}
.login-screen{position:fixed;inset:0;z-index:900;display:grid;place-items:center;overflow:hidden;padding:24px;background:#101116}.login-glow{position:absolute;width:46vw;aspect-ratio:1;border-radius:50%;filter:blur(90px);opacity:.16;pointer-events:none}.login-glow--one{top:-28%;right:-8%;background:#5865f2}.login-glow--two{bottom:-38%;left:-10%;background:#7d4df4}.login-card{position:relative;width:min(420px,100%);padding:38px;border:1px solid var(--line2);border-radius:20px;background:rgba(43,45,49,.94);box-shadow:0 28px 90px rgba(0,0,0,.5);backdrop-filter:blur(16px)}.login-card .brand-mark{margin-bottom:26px}.eyebrow,.overline{margin:0;color:var(--accent2);font-size:10px;font-weight:850;letter-spacing:.15em}.login-card h1{margin:7px 0;font-size:28px;line-height:1.1;letter-spacing:-.035em}.login-subtitle{margin:0 0 27px;color:var(--muted);font-size:14px}.field-label{display:block;margin-bottom:8px;color:var(--soft);font-size:12px;font-weight:750}.password-field{position:relative}.password-field input{width:100%;height:48px;padding:0 48px 0 14px;border:1px solid transparent;border-radius:8px;outline:0;background:#1e1f22}.password-field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(88,101,242,.18)}.password-field .icon-button{position:absolute;top:5px;right:5px}.form-error{min-height:20px;margin:7px 0 4px;color:#fa777c;font-size:12px}.primary-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:46px;border-radius:8px;background:var(--accent);color:#fff;font-size:14px;font-weight:750;transition:.14s}.primary-button:hover{background:#4752c4}.primary-button:active{transform:translateY(1px)}.primary-button:disabled{opacity:.58}.primary-button svg{width:17px}.login-note{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;color:var(--dim);font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(35,165,90,.13)}
/* Shell and server rail */
.app-shell{display:grid;grid-template-columns:var(--rail-w) var(--side-w) minmax(0,1fr);width:100vw;height:100vh;height:100dvh;overflow:hidden;background:var(--main)}.server-rail{position:relative;z-index:30;display:flex;flex-direction:column;align-items:center;min-height:0;padding:12px 0 10px;background:var(--rail)}.server-button{position:relative;display:grid;flex:0 0 auto;place-items:center;width:48px;height:48px;margin:0 auto 8px;padding:0;border-radius:50%;background:var(--main);color:var(--muted);transition:.15s}.server-button:before{content:"";position:absolute;top:50%;left:-12px;width:4px;height:0;border-radius:0 4px 4px 0;background:#fff;transform:translateY(-50%);transition:.16s}.server-button:hover,.server-button.is-active{border-radius:16px;background:var(--accent);color:#fff}.server-button:hover:before{height:20px}.server-button.is-active:before{height:40px}.server-button:active{transform:translateY(1px)}.server-button img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.server-button__letters{display:grid;place-items:center;width:100%;height:100%;padding:6px;border-radius:inherit;background:linear-gradient(145deg,#3e4148,#292b2f);color:var(--soft);font-size:13px;font-weight:800}.server-button:hover .server-button__letters,.server-button.is-active .server-button__letters{background:transparent;color:#fff}.server-button--brand{background:var(--accent);color:#fff;font-size:18px;font-weight:850}.server-button--utility{color:var(--green)}.server-button--utility:hover{background:var(--green)}.rail-separator{width:32px;height:2px;margin-bottom:8px;border-radius:2px;background:var(--line2)}.guild-list{width:100%;min-height:0;overflow-y:auto;scrollbar-width:none}.guild-list::-webkit-scrollbar{display:none}.rail-spacer{flex:1;min-height:8px}
/* Sidebar */
.channel-sidebar{position:relative;z-index:20;display:grid;grid-template-rows:var(--head-h) auto minmax(0,1fr) auto;min-width:0;min-height:0;overflow:visible;background:var(--sidebar)}.server-header,.chat-header{height:var(--head-h);border-bottom:1px solid rgba(0,0,0,.28);box-shadow:0 1px 0 rgba(0,0,0,.22),0 2px 8px rgba(0,0,0,.12)}.server-header{display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 16px}.server-header-copy{display:grid;min-width:0;gap:1px}.server-header-copy .overline{color:var(--dim);font-size:8px}.server-header-copy strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.channel-search-wrap{position:relative;display:flex;align-items:center;height:46px;margin:9px 10px 4px}.channel-search-wrap svg{position:absolute;left:10px;width:15px;color:var(--dim);pointer-events:none}.channel-search-wrap input{width:100%;height:34px;padding:0 45px 0 32px;border:1px solid transparent;border-radius:6px;outline:0;background:var(--rail);color:var(--soft);font-size:12px}.channel-search-wrap input:focus{border-color:rgba(117,131,255,.5)}.channel-search-wrap input::placeholder{color:var(--dim)}.channel-search-wrap kbd{position:absolute;right:8px;padding:2px 5px;border:1px solid var(--line2);border-radius:4px;background:rgba(255,255,255,.04);color:var(--dim);font:9px/1.3 var(--font)}
.channel-list{min-height:0;overflow:auto;padding:5px 8px 16px;scrollbar-color:#1e1f22 transparent;scrollbar-width:thin}.channel-category{margin:15px 0 4px}.channel-category:first-child{margin-top:4px}.category-label{display:flex;align-items:center;width:100%;padding:3px 3px 3px 1px;background:transparent;color:var(--dim);font-size:10px;font-weight:800;letter-spacing:.045em;text-align:left;text-transform:uppercase}.category-label svg{width:12px;height:12px;margin-right:3px;transition:.14s}.channel-category.is-collapsed .category-label svg{transform:rotate(-90deg)}.channel-category.is-collapsed .category-channels{display:none}.channel-button{display:flex;align-items:center;gap:6px;width:100%;min-height:34px;margin:1px 0;padding:0 9px;border-radius:4px;background:transparent;color:var(--dim);font-size:14px;font-weight:570;text-align:left}.channel-button:hover{background:rgba(79,80,89,.34);color:var(--muted)}.channel-button.is-active{background:var(--active);color:#fff}.channel-button__icon{flex:0 0 auto;width:18px;color:var(--dim);font-size:20px;line-height:1;text-align:center}.channel-button__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-button__type{margin-left:auto;color:#5c6069;font-size:9px;font-weight:800;text-transform:uppercase}.sidebar-empty,.channel-loading,.message-empty{display:grid;place-items:center;align-content:center;gap:5px;min-height:180px;padding:24px 16px;color:var(--dim);text-align:center}.sidebar-empty strong,.message-empty strong{color:var(--muted);font-size:13px}.sidebar-empty>span,.message-empty>span{max-width:220px;font-size:11px}.empty-orbit{display:grid;place-items:center;width:42px;height:42px;margin-bottom:6px;border:1px solid var(--line2);border-radius:50%;color:#5c6069;font-size:22px}.channel-loading:before{content:"";width:22px;height:22px;border:2px solid var(--line2);border-top-color:var(--accent2);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Account switcher */
.account-dock{position:relative;padding:7px;border-top:1px solid rgba(0,0,0,.18);background:var(--deep)}.account-button{display:flex;align-items:center;gap:9px;width:100%;min-width:0;height:44px;padding:4px 7px;border-radius:5px;background:transparent;text-align:left}.account-button:hover{background:rgba(255,255,255,.06)}.avatar{position:relative;display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#52555c,#34363c);color:#fff;font-size:12px;font-weight:800}.avatar img,.mini-avatar img,.bot-item-avatar img,.message-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.avatar i{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:3px solid var(--deep);border-radius:50%;background:var(--dim)}.avatar.is-ready i{background:var(--green)}.avatar.is-error i{background:var(--red)}.account-copy{display:grid;min-width:0;flex:1;line-height:1.25}.account-copy strong,.account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy strong{font-size:13px}.account-copy small{color:var(--muted);font-size:10px}.chevrons{flex:0 0 auto;width:17px;color:var(--muted)}
.account-popover{position:absolute;z-index:120;right:7px;bottom:calc(100% + 8px);left:7px;overflow:hidden;border:1px solid var(--line2);border-radius:11px;background:#111214;box-shadow:var(--shadow);transform-origin:bottom;animation:pop .12s ease-out}@keyframes pop{from{opacity:0;transform:translateY(6px) scale(.985)}}.account-popover header,.account-popover footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px}.account-popover header{border-bottom:1px solid var(--line);color:var(--soft);font-size:11px;font-weight:800;text-transform:uppercase}.account-popover header small{color:var(--dim);font-size:9px;text-transform:none}.account-popover footer{border-top:1px solid var(--line);color:var(--dim);font-size:9px}.privacy-lock{color:var(--green);font-style:normal}.bot-list{max-height:min(360px,46vh);overflow-y:auto;padding:6px}.bot-item{display:flex;align-items:center;gap:9px;width:100%;min-width:0;padding:8px;border-radius:6px;background:transparent;text-align:left}.bot-item:hover{background:var(--active)}.bot-item.is-active{background:var(--accent)}.bot-item.is-unavailable{opacity:.62}.bot-item-avatar{display:grid;flex:0 0 auto;place-items:center;width:35px;height:35px;border-radius:50%;background:#3a3c42;color:#fff;font-size:11px;font-weight:850}.bot-item-copy{display:grid;min-width:0;flex:1}.bot-item-copy strong,.bot-item-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-item-copy strong{font-size:12px}.bot-item-copy small{color:var(--muted);font-size:9px}.bot-item.is-active small{color:rgba(255,255,255,.72)}.bot-item-check{width:9px;height:9px;flex:0 0 auto;border:2px solid #111214;border-radius:50%;background:var(--dim)}.bot-item-check.is-ready{background:var(--green)}.bot-item-check.is-error{background:var(--red)}.text-button{padding:3px 4px;background:transparent;color:var(--muted);font-size:10px}.text-button:hover{color:#fff;text-decoration:underline}
/* Chat header */
.chat-panel{position:relative;isolation:isolate;display:grid;grid-template-rows:var(--head-h) minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;background:var(--main)}.chat-header{position:relative;z-index:10;display:flex;align-items:center;min-width:0;padding:0 15px;background:var(--main)}.channel-symbol{margin-right:8px;color:var(--dim);font-size:24px}.channel-heading{display:flex;min-width:0;align-items:center;gap:12px;flex:1}.channel-heading strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.channel-heading span{min-width:0;overflow:hidden;padding-left:12px;border-left:1px solid var(--line2);color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;flex:0 0 auto;align-items:center;gap:5px;margin-left:10px}.icon-button,.composer-icon-button{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:6px;background:transparent;color:var(--muted)}.icon-button:hover,.composer-icon-button:hover{background:rgba(255,255,255,.055);color:var(--text)}.icon-button:disabled,.composer-icon-button:disabled{opacity:.35}.sync-status{display:flex;align-items:center;gap:6px;margin-right:3px;color:var(--dim);font-size:10px;white-space:nowrap}.sync-status i{width:6px;height:6px;border-radius:50%;background:var(--green)}.sync-status.is-loading i{border:1px solid var(--accent2);border-top-color:transparent;background:transparent;animation:spin .65s linear infinite}.sync-status.is-error i{background:var(--red)}.header-account-button{display:flex;align-items:center;gap:7px;height:34px;max-width:180px;padding:0 8px 0 5px;border-radius:7px;background:#27292d;color:var(--muted)}.header-account-button:hover{background:var(--deep);color:#fff}.header-account-button>span:not(.mini-avatar){overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.header-account-button svg{width:12px}.mini-avatar{display:grid;flex:0 0 auto;place-items:center;width:24px;height:24px;overflow:hidden;border-radius:50%;background:var(--accent);color:#fff;font-size:9px;font-weight:850}
/* Messages */
.messages{position:relative;min-height:0;overflow:auto;padding:0 0 22px;scroll-behavior:smooth;scrollbar-color:#1a1b1e var(--main);scrollbar-width:thin}.messages::-webkit-scrollbar,.channel-list::-webkit-scrollbar,.bot-list::-webkit-scrollbar{width:10px}.messages::-webkit-scrollbar-thumb,.channel-list::-webkit-scrollbar-thumb,.bot-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#1a1b1e;background-clip:padding-box}.welcome-state{display:grid;justify-items:center;align-content:center;min-height:100%;padding:56px 28px;text-align:center}.welcome-visual{position:relative;display:grid;place-items:center;width:90px;height:90px;margin-bottom:26px}.welcome-visual>span{position:relative;z-index:2;display:grid;place-items:center;width:56px;height:56px;border-radius:19px;background:var(--accent);box-shadow:0 18px 42px rgba(88,101,242,.32);font-size:31px}.welcome-ring{position:absolute;inset:3px;border:1px solid rgba(117,131,255,.28);border-radius:50%}.welcome-ring--two{inset:-12px;border-style:dashed;opacity:.42;animation:ring 18s linear infinite}@keyframes ring{to{transform:rotate(360deg)}}.welcome-state h1{margin:7px 0 10px;font-size:clamp(25px,4vw,36px);line-height:1.05;letter-spacing:-.045em}.welcome-state>p:not(.eyebrow){max-width:560px;margin:0;color:var(--muted);font-size:14px}.welcome-steps{display:flex;align-items:center;gap:12px;margin-top:30px}.welcome-steps span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.welcome-steps b{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:var(--active);color:var(--text);font-size:10px}.welcome-steps i{width:18px;height:1px;background:var(--line2)}
.message-loading{display:grid;gap:21px;padding:40px 18px}.message-skeleton{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px}.message-skeleton i,.message-skeleton span{display:block;border-radius:5px;background:linear-gradient(90deg,#383a40,#41434a,#383a40);background-size:240% 100%;animation:shine 1.4s ease-in-out infinite}.message-skeleton i{width:40px;height:40px;border-radius:50%}.message-skeleton div{display:grid;gap:8px;padding-top:2px}.message-skeleton span:first-child{width:130px;height:12px}.message-skeleton span:last-child{width:min(620px,76%);height:10px}@keyframes shine{from{background-position:100%}to{background-position:-140%}}.channel-intro{padding:48px 18px 15px 76px}.channel-intro__icon{display:grid;place-items:center;width:62px;height:62px;margin-bottom:13px;border-radius:50%;background:#41434a;font-size:35px}.channel-intro h2{margin:0 0 4px;font-size:28px;line-height:1.1;letter-spacing:-.035em}.channel-intro p{margin:0;color:var(--muted);font-size:13px}
.message-group{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:4px 18px 4px 16px}.message-group:hover{background:rgba(4,4,5,.06)}.message-group.is-compact{padding-top:1px;padding-bottom:1px}.message-avatar{display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#5865f2,#8b5cf6);color:#fff;font-size:12px;font-weight:850}.message-group.is-compact .message-avatar{width:44px;height:22px;overflow:visible;background:transparent!important;color:transparent}.compact-time{display:none;position:absolute;top:5px;right:0;color:var(--dim);font-size:9px;white-space:nowrap}.message-group.is-compact:hover .compact-time{display:block}.message-body{min-width:0;padding-top:1px}.message-meta{display:flex;align-items:baseline;gap:7px;min-height:20px}.message-meta strong{color:var(--soft);font-size:14px;font-weight:650}.message-meta time{color:var(--dim);font-size:9px}.message-bot-tag{padding:1px 4px;border-radius:3px;background:var(--accent);font-size:8px;font-weight:800}.message-content{overflow-wrap:anywhere;color:var(--soft);font-size:14px;line-height:1.42;white-space:pre-wrap}.message-content a{color:#00a8fc;text-decoration:none}.message-content a:hover{text-decoration:underline}.message-content .mention{padding:0 2px;border-radius:3px;background:rgba(88,101,242,.28);color:#c9cdfb}.message-reply{display:flex;align-items:center;min-width:0;gap:6px;height:22px;color:var(--dim);font-size:10px}.message-reply:before{content:"";width:22px;height:10px;margin-left:-31px;border-top:2px solid #5c6069;border-left:2px solid #5c6069;border-radius:6px 0 0}.message-reply strong{color:var(--muted)}.message-reply span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-avatar:is(button){position:relative;overflow:visible;padding:0;border:0;appearance:none}.message-avatar:is(button):hover{filter:brightness(.86)}.message-avatar>img:not(.avatar-decoration){width:100%;height:100%;border-radius:50%;object-fit:cover}.message-avatar .avatar-decoration{position:absolute;z-index:2;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);max-width:none;border-radius:0;object-fit:contain;pointer-events:none}.message-meta{align-items:center;gap:5px}.message-author{max-width:min(360px,46vw);overflow:hidden;padding:0;border:0;background:transparent;color:var(--message-author-color,#f2f3f5);font-size:14px;font-weight:650;line-height:20px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.message-author:hover{text-decoration:underline}.message-primary-guild{display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;height:19px;padding:1px 4px;border-radius:4px;background:#3f4147;color:#f2f3f5;font-size:9px;font-weight:800;line-height:1}.message-primary-guild img{width:14px;height:14px;object-fit:contain}.message-role-icon{flex:0 0 auto;width:19px;height:19px;object-fit:contain}.message-role-emoji{display:grid;flex:0 0 auto;place-items:center;width:19px;height:19px;font-size:15px}.message-content button.mention{border:0;font:inherit;line-height:inherit}.message-content button.mention:hover{background:var(--accent);color:#fff}.message-reply-author{min-width:0;max-width:150px;overflow:hidden;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.message-reply-author:hover{color:var(--soft);text-decoration:underline}
.message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.message-image-button{display:block;max-width:min(470px,100%);max-height:360px;overflow:hidden;padding:0;border-radius:7px;background:var(--deep)}.message-image-button img{width:auto;max-width:100%;max-height:360px;object-fit:contain}.file-card{display:flex;align-items:center;gap:10px;width:min(420px,100%);min-height:62px;padding:10px;border:1px solid var(--line2);border-radius:7px;background:#2e3035;color:#00a8fc;text-decoration:none}.file-card:hover{background:var(--sidebar)}.file-card__icon{display:grid;flex:0 0 auto;place-items:center;width:38px;height:38px;border-radius:9px;background:rgba(88,101,242,.18);color:var(--accent2);font-size:10px;font-weight:850}.file-card__copy{display:grid;min-width:0}.file-card__copy strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.file-card__copy small{color:var(--dim);font-size:9px}.date-divider{position:relative;display:flex;align-items:center;justify-content:center;margin:18px 16px 14px;color:var(--dim);font-size:9px;font-weight:700}.date-divider:before{content:"";position:absolute;right:0;left:0;height:1px;background:var(--line)}.date-divider span{position:relative;padding:0 8px;background:var(--main)}
/* Composer */
.jump-bottom{position:absolute;z-index:8;right:22px;bottom:118px;display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line2);border-radius:16px;background:#111214;box-shadow:0 2px 8px rgba(0,0,0,.3);color:var(--muted);font-size:10px}.jump-bottom:hover{color:#fff}.jump-bottom svg{width:13px}.composer-wrap{position:relative;z-index:7;padding:5px 16px 15px;background:var(--main)}.composer-wrap.is-disabled{opacity:.72}.composer-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;padding:0 6px}.sending-as{display:flex;align-items:center;gap:5px;min-width:0;padding:2px 3px;background:transparent;color:var(--dim);font-size:9px}.sending-as:hover{color:var(--muted)}.sending-as b{max-width:220px;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.sending-as svg{width:11px}.draft-status{color:var(--dim);font-size:9px}.composer{position:relative;display:flex;align-items:flex-end;min-height:48px;border:1px solid transparent;border-radius:8px;background:var(--surface)}.composer:focus-within{border-color:rgba(117,131,255,.42);box-shadow:0 0 0 3px rgba(88,101,242,.09)}.composer>.composer-icon-button{flex:0 0 auto;margin:5px 1px 5px 5px}.composer textarea{width:100%;min-width:0;min-height:46px;max-height:196px;resize:none;padding:13px 7px 10px;overflow-y:auto;border:0;outline:0;background:transparent;color:var(--soft);font-size:14px;line-height:1.45}.composer textarea::placeholder{color:var(--dim)}.composer-tools{display:flex;flex:0 0 auto;align-items:center;gap:1px;margin:5px 5px 5px 0}.composer-tools .composer-icon-button{width:34px;height:36px}.composer-icon-button.is-active{background:rgba(88,101,242,.18);color:var(--accent2)}.character-count{min-width:24px;color:var(--dim);font-size:9px;text-align:center}.character-count.is-near-limit{color:var(--yellow)}.character-count.is-at-limit{color:var(--red)}.send-button{display:grid;place-items:center;width:36px;height:36px;margin-left:2px;border-radius:7px;background:var(--accent);color:#fff;transition:.14s}.send-button:hover{background:#4752c4}.send-button:active{transform:translateY(1px)}.send-button:disabled{background:#4a4d55;color:#777b84}.send-button.is-sending svg{animation:fly .7s ease-in-out infinite}@keyframes fly{50%{transform:translate(3px,-3px);opacity:.5}}.composer-hint{margin:6px 4px 0;color:var(--dim);font-size:9px}.composer-hint kbd{padding:1px 4px;border:1px solid var(--line2);border-radius:3px;background:rgba(255,255,255,.035);font:inherit}.composer-hint span{margin:0 3px;color:#5c6069}
.attachment-strip{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 10px}.attachment-chip{position:relative;display:grid;flex:0 0 auto;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:8px;width:180px;height:54px;padding:6px 27px 6px 6px;border:1px solid var(--line2);border-radius:8px;background:#2e3035}.attachment-chip__preview{display:grid;place-items:center;width:42px;height:42px;overflow:hidden;border-radius:6px;background:var(--deep);color:var(--accent2);font-size:9px;font-weight:850}.attachment-chip__preview img{width:100%;height:100%;object-fit:cover}.attachment-chip__copy{display:grid;min-width:0}.attachment-chip__copy strong,.attachment-chip__copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip__copy strong{font-size:10px}.attachment-chip__copy small{color:var(--dim);font-size:8px}.attachment-chip__remove{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--rail);color:var(--muted);font-size:14px}.attachment-chip__remove:hover{background:var(--red);color:#fff}.drop-overlay{position:absolute;z-index:50;inset:-90px 12px 8px;display:grid;place-items:center;border:2px dashed var(--accent2);border-radius:13px;background:rgba(43,45,49,.95);backdrop-filter:blur(8px)}.drop-overlay>div{display:grid;justify-items:center;gap:5px}.drop-overlay span{display:grid;place-items:center;width:47px;height:47px;margin-bottom:3px;border-radius:50%;background:var(--accent);font-size:25px}.drop-overlay strong{font-size:15px}.drop-overlay small{color:var(--muted);font-size:10px}.emoji-popover{position:absolute;right:8px;bottom:calc(100% + 8px);display:grid;grid-template-columns:repeat(6,34px);gap:3px;padding:9px;border:1px solid var(--line2);border-radius:9px;background:#111214;box-shadow:var(--shadow);animation:pop .12s ease-out}.emoji-option{display:grid;place-items:center;width:34px;height:34px;border-radius:5px;background:transparent;font-size:20px}.emoji-option:hover{background:var(--active);transform:scale(1.08)}
/* Overlays and feedback */
.mobile-scrim{position:fixed;z-index:15;inset:0;background:rgba(0,0,0,.58)}.image-viewer{width:min(1000px,calc(100vw - 40px));height:min(760px,calc(100vh - 40px));padding:46px 18px 44px;border:0;border-radius:14px;background:rgba(17,18,20,.96);box-shadow:var(--shadow);color:#fff}.image-viewer::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(6px)}.image-viewer img{width:100%;height:100%;object-fit:contain}.image-viewer a{position:absolute;right:18px;bottom:14px;color:#00a8fc;font-size:11px;text-decoration:none}.viewer-close{position:absolute;top:10px;right:12px;width:32px;height:32px;border-radius:50%;background:var(--active);color:var(--muted);font-size:21px}.viewer-close:hover{color:#fff}.toast-stack{position:fixed;z-index:2000;top:16px;right:16px;display:grid;gap:8px;width:min(350px,calc(100vw - 32px));pointer-events:none}.toast{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding:10px 10px 10px 12px;border:1px solid var(--line2);border-radius:10px;background:#111214;box-shadow:var(--shadow);animation:toast .18s ease-out;pointer-events:auto}@keyframes toast{from{opacity:0;transform:translateX(18px)}}.toast.is-leaving{opacity:0;transform:translateX(18px);transition:.16s}.toast__dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.toast.is-error .toast__dot{background:var(--red)}.toast.is-warning .toast__dot{background:var(--yellow)}.toast__copy{display:grid;min-width:0}.toast__copy strong{font-size:11px}.toast__copy span{color:var(--muted);font-size:10px;overflow-wrap:anywhere}.toast__close{width:28px;height:28px;border-radius:5px;background:transparent;color:var(--dim)}.toast__close:hover{background:var(--active);color:#fff}
@media(max-width:980px){:root{--side-w:260px}.sync-status span{display:none}.header-account-button>span:not(.mini-avatar),.header-account-button svg{display:none}.header-account-button{padding-right:5px}}
@media(max-width:760px){.mobile-only{display:grid}.app-shell{grid-template-columns:var(--rail-w) minmax(0,1fr)}.channel-sidebar{position:fixed;z-index:40;top:0;bottom:0;left:var(--rail-w);width:min(var(--side-w),calc(100vw - var(--rail-w) - 18px));box-shadow:18px 0 42px rgba(0,0,0,.42);transform:translateX(calc(-100% - var(--rail-w)));transition:transform .18s}.channel-sidebar.is-open{transform:none}.chat-panel{grid-column:2}.chat-header{padding-left:7px}.channel-symbol{display:none}.channel-heading{gap:7px}.channel-heading span{display:none}.composer-wrap{padding-right:10px;padding-left:10px}.message-group{padding-right:10px;padding-left:10px}.channel-intro{padding-left:66px}}
@media(max-width:540px){:root{--rail-w:62px}.server-button{width:44px;height:44px}.server-button:before{left:-9px}.chat-header{padding-right:7px}.chat-header .icon-button{width:34px}.header-actions{gap:0;margin-left:4px}.sync-status,#refresh-messages{display:none}.channel-heading strong{font-size:14px}.welcome-state{padding:38px 16px}.welcome-steps{display:grid;justify-items:start}.welcome-steps i{display:none}.composer-tools #emoji-button,.composer-tools #mention-toggle,.character-count,.composer-hint{display:none}.composer-wrap{padding-bottom:max(9px,env(safe-area-inset-bottom))}.message-group{grid-template-columns:38px minmax(0,1fr);gap:8px}.message-avatar{width:36px;height:36px}.message-group.is-compact .message-avatar{width:38px}.channel-intro{padding:38px 12px 14px 56px}.channel-intro h2{font-size:23px}.jump-bottom{right:12px;bottom:84px}.login-card{padding:30px 24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Single-server synchronized workspace */
:root{--head-h:60px;--side-w:304px}
html,body{background:var(--main)}
.app-shell{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);width:100vw;height:100vh;height:100dvh;overflow:hidden;background:var(--main)}
.channel-sidebar{grid-column:1;grid-template-rows:var(--head-h) auto minmax(0,1fr) auto;border-right:1px solid rgba(0,0,0,.2)}
.server-header{height:var(--head-h);padding:0 13px 0 16px;background:#2b2d31}
.server-header-copy strong{font-size:15px}.server-header-copy .overline{font-size:8px}
.server-live{display:flex;align-items:center;gap:5px;padding:4px 6px;border-radius:5px;background:rgba(35,165,90,.09);color:#79d99e;font-size:8px;font-weight:850;letter-spacing:.08em}.server-live i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(35,165,90,.1)}
.server-live.is-loading{background:rgba(240,178,50,.09);color:#e7c46c}.server-live.is-loading i{background:var(--yellow);box-shadow:0 0 0 3px rgba(240,178,50,.1);animation:pulse 1.05s ease-in-out infinite}.server-live.is-error{background:rgba(242,63,67,.09);color:#ff9296}.server-live.is-error i{background:var(--red);box-shadow:0 0 0 3px rgba(242,63,67,.1)}
.server-live.is-limited{background:rgba(240,178,50,.1);color:#e7c46c}.server-live.is-limited i{background:var(--yellow);box-shadow:0 0 0 3px rgba(240,178,50,.1)}
.channel-search-wrap{margin-top:10px}.channel-search-wrap input{height:36px}.channel-search-wrap:focus-within kbd{color:var(--accent2)}
.channel-list{padding-bottom:12px}.category-chevron{display:inline-grid;width:14px;margin-right:2px;place-items:center;color:#72767d;font-size:14px;line-height:1;transition:transform .14s}.channel-category.is-collapsed .category-chevron{transform:rotate(-90deg)}
.channel-button{min-height:35px}.channel-button.is-thread{padding-left:20px}.channel-button.is-thread .channel-button__icon{font-size:16px}.channel-button.is-disabled{cursor:default;opacity:.64}.channel-button.is-disabled:hover{background:transparent;color:var(--dim)}.channel-button__type{font-size:8px}
.channel-button.has-unread .channel-button__name{color:var(--text);font-weight:750}.channel-button__unread{flex:0 0 auto;width:7px;height:7px;margin-left:5px;border-radius:50%;background:var(--accent2);box-shadow:0 0 0 3px rgba(88,101,242,.13)}
.sidebar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:45px;padding:8px 13px;border-top:1px solid rgba(0,0,0,.2);background:var(--deep);color:var(--dim)}.sidebar-footer span{display:flex;align-items:center;gap:5px;font-size:9px}.sidebar-footer span i{width:6px;height:6px;border-radius:50%;background:var(--green)}.sidebar-footer b{color:var(--muted);font-size:10px}.sidebar-footer small{font-size:8px;white-space:nowrap}
.chat-panel{grid-column:2;width:100%;height:100%;grid-template-rows:var(--head-h) minmax(0,1fr) auto}
.chat-header{height:var(--head-h);padding:0 18px;border-bottom:1px solid rgba(0,0,0,.3);background:rgba(49,51,56,.98)}
.channel-heading strong{font-size:16px}.header-actions{gap:4px}.icon-button.is-refreshing svg{animation:spin .72s linear infinite}
.messages{padding-bottom:28px}.message-loading{width:100%;max-width:1280px;margin:0 auto;padding:42px clamp(16px,3vw,42px)}.channel-intro{padding:54px clamp(18px,4vw,70px) 18px}.message-group{padding-right:clamp(18px,4vw,70px);padding-left:clamp(18px,4vw,70px)}.date-divider{margin-right:clamp(18px,4vw,70px);margin-left:clamp(18px,4vw,70px)}.message-empty{min-height:135px}
.history-loader{display:block;min-width:245px;margin:14px auto 18px;padding:8px 14px;border:1px solid var(--line2);border-radius:18px;background:var(--deep);color:var(--muted);font-size:10px;font-weight:700}.history-loader:hover{border-color:rgba(117,131,255,.45);color:var(--text)}.history-loader:disabled{opacity:.62}
.workspace-state{min-height:100%;padding:58px 24px}.workspace-state.is-error .welcome-visual>span{background:linear-gradient(145deg,#ed5c62,#b52f34);box-shadow:0 18px 42px rgba(242,63,67,.2)}.workspace-state.is-error .welcome-ring{border-color:rgba(242,63,67,.28)}.workspace-state.is-loading .welcome-ring--one{border-top-color:var(--accent2);animation:spin 1.05s linear infinite}.state-action{min-width:154px;margin-top:24px;padding:10px 17px;border-radius:8px;background:var(--accent);color:#fff;font-size:12px;font-weight:750}.state-action:hover{background:#4752c4}.state-action:disabled{opacity:.55}
.composer-wrap{padding:5px clamp(12px,3vw,42px) 16px}.channel-destination{min-width:0;overflow:hidden;color:var(--dim);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.channel-destination b{color:var(--muted);font-weight:750}

/* Sender connection guidance */
.setup-state{align-content:start;min-height:100%;padding-top:46px;padding-bottom:46px}.setup-visual{display:grid;place-items:center;width:60px;height:60px;margin-bottom:18px;border:1px solid rgba(240,178,50,.36);border-radius:20px;background:rgba(240,178,50,.12);color:var(--yellow);font-size:27px;font-weight:850}.setup-state h1{margin-bottom:9px}.setup-lead{max-width:670px!important}.setup-card{width:min(720px,100%);margin-top:25px;overflow:hidden;border:1px solid var(--line2);border-radius:13px;background:#292b30;box-shadow:0 20px 48px rgba(0,0,0,.18);text-align:left}.setup-status{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);color:var(--soft);font-size:11px;font-weight:750}.setup-status i{width:7px;height:7px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px rgba(240,178,50,.1)}.setup-steps{display:grid;gap:13px;margin:0;padding:17px 18px 8px;list-style:none}.setup-step{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:start;gap:10px}.setup-step__number{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--active);color:var(--accent2);font-size:10px}.setup-step__copy{display:grid;gap:2px}.setup-step__copy strong{color:var(--soft);font-size:11px}.setup-step__copy small{color:var(--dim);font-size:10px}.setup-command{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:10px 18px 0;padding:8px 8px 8px 11px;border:1px solid var(--line2);border-radius:8px;background:#1e1f22}.setup-command code{min-width:0;overflow:auto;color:#d8dbff;font:10px/32px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}.setup-copy{padding:0 12px;border-radius:6px;background:var(--active);color:var(--soft);font-size:10px;font-weight:700}.setup-copy:hover{background:var(--accent);color:#fff}.setup-actions{display:flex;padding:14px 18px 0}.setup-action{min-height:38px;padding:0 15px;border-radius:7px;background:var(--accent);color:#fff;font-size:11px;font-weight:750}.setup-action:hover{background:#4752c4}.setup-action:disabled{opacity:.55}.setup-note{max-width:none!important;margin:11px 18px 16px!important;color:var(--dim)!important;font-size:9px!important;text-align:left}

@media(max-width:760px){
  :root{--head-h:56px}
  .app-shell{display:grid;grid-template-columns:minmax(0,1fr)}
  .channel-sidebar{position:fixed;z-index:40;top:0;bottom:0;left:0;width:min(var(--side-w),calc(100vw - 24px));box-shadow:18px 0 42px rgba(0,0,0,.48);transform:translateX(-105%);transition:transform .18s ease}
  .channel-sidebar.is-open{transform:none}.mobile-scrim{z-index:35;display:block}.mobile-only{display:grid}
  .chat-panel{grid-column:1}.chat-header{padding-right:9px;padding-left:8px}.channel-heading{gap:7px}.channel-heading strong{font-size:14px}.channel-heading span{display:none}
  .composer-wrap{padding-right:10px;padding-left:10px}.message-group{padding-right:12px;padding-left:12px}.channel-intro{padding-right:14px;padding-left:14px}.date-divider{margin-right:12px;margin-left:12px}
  .setup-state{padding:34px 14px}.setup-command{grid-template-columns:minmax(0,1fr);margin-right:12px;margin-left:12px}.setup-copy{height:34px}
}
@media(max-width:540px){
  #refresh-messages{display:grid}.sync-status{display:flex}.sync-status span{display:none}.channel-symbol{display:none}.welcome-state{padding-right:16px;padding-left:16px}.composer-wrap{padding-bottom:max(9px,env(safe-area-inset-bottom))}.setup-card{border-radius:10px}.setup-actions{padding-right:12px;padding-left:12px}.setup-action{width:100%}
}

/* Members, presences and voice state */
:root{--members-w:300px}
.app-shell{grid-template-columns:var(--side-w) minmax(0,1fr) var(--members-w)}
.chat-panel{grid-column:2}
.member-sidebar{position:relative;z-index:19;display:grid;grid-column:3;grid-template-rows:var(--head-h) auto minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;border-left:1px solid rgba(0,0,0,.23);background:#2b2d31}
.member-header{display:flex;align-items:center;justify-content:space-between;gap:10px;height:var(--head-h);padding:0 10px 0 14px;border-bottom:1px solid rgba(0,0,0,.28);box-shadow:0 1px 0 rgba(0,0,0,.2)}
.member-header-copy{display:grid;min-width:0;gap:1px}.member-header-copy .overline{color:var(--dim);font-size:8px}.member-header-copy strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.member-header-actions{display:flex;align-items:center;min-width:0;gap:4px}.member-summary{color:#79d99e;font-size:9px;font-weight:750;white-space:nowrap}.member-panel-close{display:none;width:32px;height:32px;font-size:21px;line-height:1}
.member-search-wrap{position:relative;display:flex;align-items:center;height:48px;margin:7px 9px 1px}.member-search-wrap svg{position:absolute;left:9px;width:14px;color:var(--dim);pointer-events:none}.member-search-wrap input{width:100%;height:34px;padding:0 10px 0 30px;border:1px solid transparent;border-radius:6px;outline:0;background:var(--rail);color:var(--soft);font-size:11px}.member-search-wrap input:focus{border-color:rgba(117,131,255,.5)}.member-search-wrap input::placeholder{color:var(--dim)}
.member-list{min-height:0;overflow:auto;padding:4px 7px 15px;scrollbar-color:#1e1f22 transparent;scrollbar-width:thin}.member-list::-webkit-scrollbar{width:9px}.member-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#1a1b1e;background-clip:padding-box}
.member-loading,.member-empty{display:grid;place-items:center;align-content:center;gap:8px;min-height:180px;padding:20px;color:var(--dim);font-size:10px;text-align:center}.member-loading i{width:21px;height:21px;border:2px solid var(--line2);border-top-color:var(--accent2);border-radius:50%;animation:spin .7s linear infinite}.member-empty strong{color:var(--muted);font-size:12px}
.member-group{margin-top:17px}.member-group:first-child{margin-top:5px}.member-group.is-role-group .member-group-label{color:#aeb1b8}.member-group.is-offline-group{margin-top:20px}.member-group-title{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:22px;padding:0 8px 4px;color:#949ba4;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none}.member-group-title b{font-size:11px;font-weight:500}.member-group-icon{width:16px;height:16px;object-fit:contain}.member-group-emoji{font-size:14px;line-height:16px}.member-group-separator{color:#6d6f78}.member-group-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-item{position:relative;isolation:isolate;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;min-height:42px;overflow:hidden;padding:4px 8px;border-radius:5px;color:var(--muted)}.member-item:hover{background:#35373c;color:var(--soft)}.member-item>*{position:relative;z-index:1}.member-item.has-nameplate:before{content:"";position:absolute;z-index:0;inset:1px 0;border-radius:5px;background-image:linear-gradient(90deg,rgba(35,36,40,.2),rgba(35,36,40,.03)),var(--member-nameplate);background-position:center;background-size:cover;opacity:.88;pointer-events:none}.member-item.has-nameplate:hover:before{opacity:1}.member-avatar,.voice-participant-avatar{position:relative;display:grid;place-items:center;overflow:visible;border-radius:50%;background:linear-gradient(145deg,#5865f2,#8b5cf6);color:#fff;font-weight:800}.member-avatar{width:32px;height:32px;font-size:10px}.member-avatar img,.voice-participant-avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.member-avatar .avatar-decoration,.voice-participant-avatar .avatar-decoration{position:absolute;z-index:2;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);max-width:none;border-radius:0;object-fit:contain;pointer-events:none}.presence-dot{position:absolute;z-index:3;right:-1px;bottom:-1px;width:11px;height:11px;border:3px solid #2b2d31;border-radius:50%;background:#80848e}.presence-dot.is-online{background:var(--green)}.presence-dot.is-idle{background:var(--yellow)}.presence-dot.is-dnd{background:var(--red)}.presence-dot.is-offline,.presence-dot.is-invisible{background:#80848e}
.member-copy{display:grid;min-width:0;gap:0}.member-name-line{display:flex;align-items:center;min-width:0;gap:5px}.member-name{min-width:0;overflow:hidden;color:var(--member-color,#f2f3f5);font-size:14px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.member-item.is-offline{opacity:.62}.member-item.is-offline:hover{opacity:1}.member-item.is-offline .member-name{color:#949ba4}.member-bot-tag{padding:0 4px;border-radius:3px;background:var(--accent);color:#fff;font-size:8px;font-weight:850;line-height:14px}.member-guild-tag{display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;max-width:62px;height:16px;padding:0 4px;border-radius:4px;background:rgba(79,80,89,.92);color:#f2f3f5;font-size:10px;font-weight:750;line-height:16px}.member-guild-tag img{width:13px;height:13px;object-fit:contain}.member-guild-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-activity{display:flex;align-items:center;min-width:0;gap:4px;overflow:hidden;color:#b5bac1;font-size:11px;line-height:16px;white-space:nowrap}.member-activity>span:last-child{overflow:hidden;text-overflow:ellipsis}.member-activity-icon{flex:0 0 auto;width:13px;height:13px;border-radius:3px;object-fit:cover}.member-activity-glyph{flex:0 0 auto;color:#3ba55d;font-size:11px;font-style:normal}.member-role-list{display:flex;min-width:0;gap:3px;overflow:hidden}.member-role{display:inline-flex;align-items:center;max-width:92px;padding:0 4px;border:1px solid rgba(255,255,255,.11);border-radius:5px;background:rgba(255,255,255,.035);color:var(--muted);font-size:7px;line-height:14px;white-space:nowrap}.member-role i{width:5px;height:5px;margin-right:3px;border-radius:50%;background:currentColor}.member-role span{overflow:hidden;text-overflow:ellipsis}
.member-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:45px;padding:8px 12px;border-top:1px solid rgba(0,0,0,.2);background:var(--deep);color:var(--dim)}.member-footer span{display:flex;align-items:center;gap:5px;font-size:9px}.member-footer i{width:6px;height:6px;border-radius:50%;background:var(--green)}.member-footer i.is-limited{background:var(--yellow)}.member-footer b{color:var(--muted);font-size:10px}.member-footer small{max-width:125px;overflow:hidden;font-size:8px;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.member-panel-toggle{display:none;position:relative}.header-online-count{position:absolute;right:1px;bottom:0;display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border:2px solid var(--main);border-radius:8px;background:var(--green);color:#fff;font-size:7px;font-weight:850;line-height:1}
.mobile-member-scrim{position:fixed;z-index:35;inset:0;background:rgba(0,0,0,.58)}

.voice-participants{display:grid;gap:1px;margin:1px 2px 5px 33px}.voice-participant{display:flex;align-items:center;min-width:0;gap:7px;min-height:30px;padding:3px 7px;border-radius:4px;color:var(--muted)}.voice-participant:hover{background:rgba(79,80,89,.28);color:var(--soft)}.voice-participant-avatar{flex:0 0 auto;width:24px;height:24px;font-size:7px}.voice-participant-avatar .presence-dot{right:-2px;bottom:-2px;width:9px;height:9px;border-width:2px}.voice-participant-name{min-width:0;overflow:hidden;flex:1;font-size:10px;font-weight:620;text-overflow:ellipsis;white-space:nowrap}.voice-participant-state{display:flex;flex:0 0 auto;gap:4px;color:#8b8f99}.voice-state-icon{font-size:10px;line-height:1}.voice-state-icon.is-live{color:#ed4245}.voice-state-icon.is-streaming{color:#a970ff}

/* Full read-only Discord message mirror */
.message-state,.message-inline-state{color:var(--dim);font-size:9px;font-weight:500}.message-state.is-pinned,.message-inline-state .is-pinned{color:#f0b232}.message-inline-state{display:flex;gap:7px;min-height:15px;align-items:center}
.message-video{width:min(560px,100%);max-height:390px;border-radius:8px;background:#111214}.message-audio{display:grid;gap:7px;width:min(460px,100%);padding:10px 12px;border:1px solid var(--line2);border-radius:8px;background:#2e3035}.message-audio strong{overflow:hidden;color:var(--soft);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.message-audio audio{width:100%;height:34px}
.rich-embed{--embed-color:#4e5058;display:grid;gap:7px;width:min(520px,100%);margin-top:7px;padding:11px 12px;border-left:4px solid var(--embed-color);border-radius:4px;background:#2b2d31;color:var(--soft);overflow:hidden}.rich-embed__author{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;color:var(--soft);font-size:10px;font-weight:700;text-decoration:none}.rich-embed__author img{width:20px;height:20px;border-radius:50%;object-fit:cover}.rich-embed__title{color:var(--soft);font-size:13px;font-weight:700;overflow-wrap:anywhere;text-decoration:none}.rich-embed a.rich-embed__title:hover,.rich-embed__author:hover{color:#00a8fc;text-decoration:underline}.rich-embed__description{font-size:12px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap}.rich-embed__description a,.rich-embed__field a{color:#00a8fc}.rich-embed__fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px}.rich-embed__field{grid-column:1/-1;min-width:0;font-size:11px;overflow-wrap:anywhere;white-space:pre-wrap}.rich-embed__field.is-inline{grid-column:span 4}.rich-embed__field>strong{display:block;margin-bottom:2px;color:var(--text);font-size:11px}.rich-embed .message-image-button{margin-top:2px;max-height:300px}.rich-embed .message-image-button img{max-height:300px}.rich-embed__footer{color:var(--dim);font-size:9px}
.message-stickers{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.message-sticker{width:auto;max-width:160px;height:160px;max-height:160px;background:transparent}.message-sticker img{width:160px;height:160px;object-fit:contain}.message-sticker.is-lottie{display:grid;place-items:center;width:160px;height:80px;border:1px solid var(--line2);border-radius:8px;background:#2b2d31;color:var(--muted);font-size:11px;text-decoration:none}
.message-poll{display:grid;gap:8px;width:min(460px,100%);margin-top:8px;padding:13px;border:1px solid var(--line2);border-radius:10px;background:#2b2d31}.message-poll__question{font-size:14px;overflow-wrap:anywhere}.message-poll__answer{display:grid;gap:4px;padding:7px 9px;border:1px solid var(--line2);border-radius:7px;background:#313338}.message-poll__answer.is-selected{border-color:rgba(88,101,242,.75);background:rgba(88,101,242,.11)}.message-poll__label{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px}.message-poll__label span:not(.message-poll__emoji){min-width:0;overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}.message-poll__label b{color:var(--muted);font-size:10px}.message-poll__emoji{flex:0 0 auto;width:18px;height:18px;object-fit:contain}.message-poll__progress{display:block;width:100%;height:4px;overflow:hidden;border-radius:3px;background:#1e1f22}.message-poll__progress:before{content:"";display:block;width:var(--poll-value,0%);height:100%;border-radius:inherit;background:var(--accent2)}.message-poll__footer{color:var(--dim);font-size:9px}
.message-components,.message-reactions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.message-component-label{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 9px;border:1px solid var(--line2);border-radius:5px;background:#4e5058;color:var(--soft);font-size:10px;font-weight:650}.message-component-label.is-disabled{opacity:.5}.message-component-emoji,.message-reaction__emoji{width:17px;height:17px;object-fit:contain}.message-reaction{display:inline-flex;align-items:center;gap:5px;min-width:39px;height:26px;padding:2px 7px;border:1px solid transparent;border-radius:7px;background:#2b2d31;color:var(--muted);font-size:11px}.message-reaction.is-mine{border-color:#5865f2;background:rgba(88,101,242,.16);color:#c9cdfb}.message-reaction b{font-size:10px}

@media(max-width:1180px){
  .app-shell{grid-template-columns:var(--side-w) minmax(0,1fr)}
  .chat-panel{grid-column:2}
  .member-panel-toggle{display:grid}
  .member-sidebar{position:fixed;z-index:42;top:0;right:0;bottom:0;width:min(var(--members-w),calc(100vw - 24px));box-shadow:-18px 0 42px rgba(0,0,0,.48);transform:translateX(105%);transition:transform .18s ease}
  .member-sidebar.is-open{transform:none}.member-panel-close{display:grid}
}
@media(max-width:760px){
  .app-shell{grid-template-columns:minmax(0,1fr)}.chat-panel{grid-column:1}
  .member-sidebar{width:min(var(--members-w),calc(100vw - 24px))}
}
@media(max-width:540px){
  .member-panel-toggle{width:34px}.header-online-count{right:-1px}.member-sidebar{width:min(292px,calc(100vw - 18px))}.rich-embed__field.is-inline{grid-column:1/-1}.message-sticker,.message-sticker img{width:120px;height:120px}
}

/* Honest unknown-presence state and interactive member profiles */
.member-item{width:100%;border:0;background:transparent;text-align:left;appearance:none}
.member-item:focus-visible,.voice-participant:focus-visible{outline:2px solid var(--accent2);outline-offset:-2px;background:rgba(79,80,89,.38)}
.presence-dot.is-unknown{background:#2b2d31;box-shadow:inset 0 0 0 1.5px #80848e}
.member-summary.is-unavailable{color:var(--yellow)}
.header-online-count.is-unavailable{background:#4e5058;color:#dbdee1}
.voice-participant{width:100%;border:0;background:transparent;text-align:left;appearance:none}

.member-profile{position:fixed;z-index:240;inset:auto;width:min(340px,calc(100vw - 16px));max-width:none;max-height:min(640px,calc(100dvh - 16px));margin:0;padding:0;overflow:hidden;border:0;border-radius:8px;background:#232428;color:var(--text);box-shadow:0 12px 34px rgba(0,0,0,.56)}
.member-profile[open]{animation:member-profile-in .12s ease-out}.member-profile::backdrop{background:transparent;backdrop-filter:none}@keyframes member-profile-in{from{opacity:0}}
.member-profile.is-full{left:50%!important;top:50%!important;width:min(600px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));border-radius:12px;transform:translate(-50%,-50%);box-shadow:0 24px 72px rgba(0,0,0,.7)}
.member-profile-card{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr);max-height:min(640px,calc(100dvh - 16px));overflow:hidden;background:#232428}.member-profile.is-full .member-profile-card{max-height:min(760px,calc(100dvh - 24px))}
.member-profile-actions{position:absolute;z-index:4;top:8px;right:8px;display:flex;gap:6px}.member-profile-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(17,18,20,.78);color:#b5bac1;font-size:20px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.24)}.member-profile-close:hover{background:#111214;color:#fff}
.member-profile-banner{--profile-color:#5865f2;height:60px;background-color:var(--profile-color);background-repeat:no-repeat;background-position:center;background-size:cover}.member-profile-banner.has-image{background-color:#111214}.member-profile.is-full .member-profile-banner{height:120px}
.member-profile-header{position:relative;display:block;min-height:120px;padding:52px 16px 12px;background:#232428}.member-profile-avatar-button{position:absolute;z-index:3;top:-44px;left:14px;display:block;width:88px;height:88px;padding:0;border:0;border-radius:50%;outline-offset:2px;background:transparent}.member-profile-avatar-button:hover .member-profile-avatar:after{content:"Полный профиль";position:absolute;z-index:4;inset:0;display:grid;place-items:center;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:10px;font-weight:750;text-align:center}.member-profile.is-full .member-profile-avatar-button:hover .member-profile-avatar:after{content:"Назад"}
.member-profile-avatar{position:relative;display:grid;place-items:center;width:88px;height:88px;border:6px solid #232428;border-radius:50%;overflow:visible;background:linear-gradient(145deg,#5865f2,#8b5cf6);color:#fff;font-size:23px;font-weight:850}.member-profile-avatar>img:not(.avatar-decoration){width:100%;height:100%;border-radius:inherit;object-fit:cover}.member-profile-avatar .avatar-decoration{position:absolute;z-index:2;inset:-9px;width:calc(100% + 18px);height:calc(100% + 18px);max-width:none;border-radius:0;object-fit:contain;pointer-events:none}.member-profile-avatar .presence-dot{right:1px;bottom:1px;width:17px;height:17px;border-width:4px;border-color:#232428}
.member-profile-heading{display:grid;min-width:0;gap:2px}.member-profile-title-line{display:flex;align-items:center;min-width:0;gap:7px}.member-profile-title-line h2{min-width:0;overflow:hidden;margin:0;color:#f2f3f5;font-size:20px;line-height:24px;font-weight:700;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}.member-profile-bot{padding:1px 4px;border-radius:3px;background:var(--accent);color:#fff;font-size:8px;font-weight:850}.member-profile-username{overflow:hidden;color:#dbdee1;font-size:14px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.member-profile-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.member-profile-badges{position:absolute;top:10px;right:16px;display:flex;align-items:center;gap:4px;min-height:24px;padding:3px 5px;border-radius:7px;background:#111214}.member-profile-badges:empty{display:none}.member-profile-badge{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;color:#b8c0ff;font-size:12px;font-weight:850}.member-profile-badge.is-boost{color:#ff73fa}
.member-profile-body{display:grid;min-height:0;gap:12px;overflow:auto;padding:0 16px 16px;scrollbar-color:#111214 transparent;scrollbar-width:thin}.member-profile-body::-webkit-scrollbar{width:8px}.member-profile-body::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#111214;background-clip:padding-box}
.member-profile-context{display:flex;align-items:center;gap:7px;min-width:0;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);color:#b5bac1;font-size:12px}.member-profile-guild-tag{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;padding:2px 5px;border-radius:4px;background:#3f4147;color:#f2f3f5;font-size:10px;font-weight:800}.member-profile-guild-tag img{width:14px;height:14px;object-fit:contain}.member-profile-server-context{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-profile-custom-status{display:flex;align-items:flex-start;gap:6px;color:#dbdee1;font-size:13px;line-height:18px;overflow-wrap:anywhere}.member-profile-custom-emoji{flex:0 0 auto}
.member-profile-section{display:grid;gap:8px;margin:0;padding:12px 0 0;border:0;border-top:1px solid rgba(255,255,255,.08);border-radius:0;background:transparent}.member-profile-section h3{margin:0;color:#dbdee1;font-size:12px;line-height:16px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}.member-profile-empty{margin:0;color:#80848e;font-size:12px;line-height:17px}
.member-profile-activity{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:10px;border-radius:8px;background:#2b2d31}.member-profile-activity-artwork{width:54px;height:54px;border-radius:8px;object-fit:cover}.member-profile-activity-copy{display:grid;min-width:0;gap:1px}.member-profile-activity b{color:#b5bac1;font-size:10px;line-height:14px;letter-spacing:.04em;text-transform:uppercase}.member-profile-activity strong{overflow:hidden;color:#f2f3f5;font-size:13px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.member-profile-activity span{overflow:hidden;color:#b5bac1;font-size:12px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}.member-profile-activity a{width:max-content;color:#00a8fc;font-size:11px;line-height:16px;text-decoration:none}.member-profile-activity a:hover{text-decoration:underline}
.member-profile-roles{display:flex;flex-wrap:wrap;gap:5px}.member-profile-role{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:22px;padding:2px 6px;border:1px solid rgba(255,255,255,.11);border-radius:4px;background:#2b2d31;color:#dbdee1;font-size:12px;line-height:16px}.member-profile-role i{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--role-color,#b5bac1)}.member-profile-role-icon{flex:0 0 auto;width:14px;height:14px;object-fit:contain}.member-profile-role-emoji{flex:0 0 auto;font-size:12px}.member-profile-role>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-profile-role.is-more{color:#b5bac1}
.member-profile-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.member-profile-flag{display:flex;align-items:center;gap:6px;min-width:0;padding:6px 7px;border-radius:6px;background:#313338;color:#80848e;font-size:10px}.member-profile-flag i{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#5c6069}.member-profile-flag.is-on{color:#dbdee1}.member-profile-flag.is-on i{background:var(--green)}.member-profile-flag.is-video.is-on i{background:#ed4245}.member-profile-flag.is-stream.is-on i{background:#a970ff}
.member-profile-field{display:grid;grid-template-columns:minmax(118px,.8fr) minmax(0,1.2fr);align-items:start;gap:12px}.member-profile-field>span{color:#80848e;font-size:11px}.member-profile-field>strong{min-width:0;color:#dbdee1;font-size:12px;font-weight:650;overflow-wrap:anywhere;text-align:right}.member-profile-field.is-id{align-items:center}.member-profile-id{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:7px}.member-profile-id code{min-width:0;overflow:hidden;color:#d9dcff;font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.member-profile-copy{flex:0 0 auto;min-height:27px;padding:0 8px;border-radius:6px;background:#404249;color:#dbdee1;font-size:9px;font-weight:700}.member-profile-copy:hover{background:var(--accent);color:#fff}.member-profile-copy:disabled{opacity:.45}
.member-profile.is-full .member-profile-header{min-height:132px;padding:58px 20px 14px}.member-profile.is-full .member-profile-avatar-button{top:-50px;left:18px;width:100px;height:100px}.member-profile.is-full .member-profile-avatar{width:100px;height:100px}.member-profile.is-full .member-profile-body{gap:12px;padding:0 18px 18px}.member-profile.is-full .member-profile-section.is-full-details{padding:13px 14px;border:0;border-radius:8px;background:#2b2d31}

@media(max-width:760px){.member-profile:not(.is-full){left:50%!important;top:50%!important;width:min(340px,calc(100vw - 14px));max-height:calc(100dvh - 14px);transform:translate(-50%,-50%)}.member-profile-card{max-height:calc(100dvh - 14px)}}
@media(max-width:540px){.member-profile.is-full{width:calc(100vw - 14px);max-height:calc(100dvh - 14px)}.member-profile.is-full .member-profile-card{max-height:calc(100dvh - 14px)}.member-profile-flags{grid-template-columns:1fr}.member-profile-id{flex-wrap:wrap}.member-profile-field{grid-template-columns:minmax(96px,.75fr) minmax(0,1.25fr);gap:8px}}

/* Discord Desktop Dark ("Ash") palette and message geometry. */
:root{--rail:#1e1f22;--sidebar:#2b2d31;--main:#313338;--deep:#232428;--surface:#383a40;--active:#404249;--line:rgba(78,80,88,.36);--line2:rgba(78,80,88,.6);--text:#f2f3f5;--soft:#dbdee1;--muted:#b5bac1;--dim:#949ba4;--font:"gg sans","Noto Sans","Helvetica Neue",Helvetica,Arial,sans-serif;--head-h:48px;--side-w:240px;--members-w:240px}
html,body,.chat-panel,.messages,.chat-header{background:#313338}
.channel-sidebar,.server-header{background:#2b2d31}.sidebar-footer{background:#232428}
.member-sidebar,.member-header{background:#2b2d31}.member-footer{background:#232428}
.composer-wrap{background:#313338}.composer{background:#383a40}
.messages{padding-bottom:16px}
.message-group{position:relative;display:block;min-height:44px;margin-top:17px;padding:2px 48px 2px 72px;border-radius:0}
.message-group:hover{background:#2e3035}
.message-group.is-compact{min-height:22px;margin-top:0;padding-top:0;padding-bottom:0}
.date-divider+.message-group,.channel-intro+.message-group,.history-loader+.message-group{margin-top:0}
.message-avatar{align-self:start;width:40px;height:40px;margin-top:0;font-size:12px;font-weight:600}
.message-group.has-reply>.message-avatar{margin-top:20px}
.message-group.is-compact .message-avatar{position:relative;width:40px;height:22px;margin-top:0;overflow:visible;background:transparent!important;color:transparent}
.compact-time{position:absolute;top:3px;right:auto;left:-2px;width:44px;color:#949ba4;font-size:10px;font-weight:400;line-height:16px;text-align:center}
.message-body{min-width:0;padding-top:0}
.message-meta{display:flex;align-items:baseline;gap:4px;min-height:22px;line-height:22px}
.message-author{max-width:min(420px,48vw);color:var(--message-author-color,#f2f3f5);font-size:16px;font-weight:500;line-height:22px}
.message-meta time{margin-left:2px;color:#949ba4;font-size:12px;font-weight:400;line-height:16px}
.message-content{overflow-wrap:anywhere;color:#fbfbfb;font-size:16px;font-weight:400;line-height:22px;white-space:pre-wrap}
.message-edited{color:#949ba4;font-size:10px;line-height:22px;white-space:nowrap}
.message-bot-tag{height:15px;padding:0 4px;border-radius:3px;background:#5865f2;color:#fff;font-size:10px;font-weight:600;line-height:15px}
.message-primary-guild{height:18px;padding:0 4px;gap:3px;border-radius:4px;background:#333338;color:#fbfbfb;font-size:10px;font-weight:600;line-height:16px}
.message-primary-guild img{width:14px;height:14px}
.message-role-icon{width:18px;height:18px}.message-role-emoji{width:18px;height:18px;font-size:15px}
.message-state{font-size:10px;line-height:16px}

/* Discord reply context: jump affordance, @author, server tag, quoted text. */
.message-reply{position:relative;display:flex;align-items:center;gap:4px;min-width:0;height:18px;margin-bottom:2px;color:#b5bac1;font-size:14px;font-weight:400;line-height:18px}
.message-reply:before{content:none}
.message-reply-jump{position:absolute;top:0;left:-36px;width:36px;height:18px;padding:0;background:transparent;color:#4e5058}
.message-reply-jump:before{content:"";position:absolute;top:8px;right:0;width:32px;height:10px;border-top:2px solid currentColor;border-left:2px solid currentColor;border-radius:6px 0 0}
.message-reply-jump:hover{color:#b5bac1}
.message-reply-author{flex:0 1 auto;max-width:180px;overflow:hidden;padding:0;border:0;background:transparent;color:var(--reply-author-color,#b5bac1);font-size:14px;font-weight:500;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.message-reply-author:hover{color:var(--reply-author-color,#dbdee1);text-decoration:underline}
.message-reply>.message-primary-guild{flex:0 0 auto;height:16px;padding:0 3px;font-size:9px;line-height:14px}
.message-reply>.message-primary-guild img{width:12px;height:12px}
.message-reply-content{min-width:0;overflow:hidden;flex:1;padding:0;border:0;background:transparent;color:#b5bac1;font-size:14px;font-weight:400;line-height:18px;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.message-reply-content:hover{color:#dbdee1;text-decoration:underline}
.message-reply.is-deleted{color:#80848e}.message-reply.is-deleted .message-reply-content{color:#80848e;font-style:italic;text-decoration:none}

.date-divider{margin:24px 16px 8px;color:#949ba4;font-size:12px;font-weight:600;line-height:13px}
.date-divider span{padding:0 8px;background:#1a1a1e}
.message-group.is-reply-target{animation:discord-reply-target 1.6s ease-out;scroll-margin-block:96px}
@keyframes discord-reply-target{0%,18%{background:rgba(88,101,242,.24)}100%{background:transparent}}

@media(max-width:760px){
  .message-group{padding-right:16px;padding-left:12px;grid-template-columns:40px minmax(0,1fr);column-gap:12px}
  .date-divider{margin-right:12px;margin-left:12px}
}
@media(max-width:540px){
  .message-group{grid-template-columns:36px minmax(0,1fr);column-gap:10px;padding-right:10px;padding-left:10px}
  .message-avatar{width:36px;height:36px}.message-group.is-compact .message-avatar{width:36px}
  .message-author,.message-content{font-size:15px}.message-content{line-height:21px}
  .message-reply{font-size:13px}.message-reply-content,.message-reply-author{font-size:13px}
  .message-reply-jump{left:-32px;width:32px}.message-reply-jump:before{width:28px}
}

/* Discord forum navigation: the forum remains a channel; its posts are not
   flattened into the surrounding category. */
.channel-button.is-forum{font-weight:570}
.channel-button.is-forum.is-active,.channel-button.is-forum.has-open-thread{color:#f2f3f5}
/* Forum channels use the same SVG renderer as the other channel types. */
.channel-button__icon.is-forum-icon{font-size:0}
.channel-symbol.is-forum-icon{font-size:0}
.forum-thread-list{position:relative;margin:0 0 2px 20px;padding-left:9px}
.forum-thread-list:before{content:"";position:absolute;top:0;bottom:8px;left:0;width:1px;background:#35363c}
.forum-thread-link.channel-button{position:relative;min-height:32px;padding:0 8px 0 14px;color:#80848e;font-size:13px;font-weight:500}
.forum-thread-link.channel-button:hover,.forum-thread-link.channel-button.is-active{color:#f2f3f5}
.forum-thread-link__branch{position:absolute;top:0;left:-9px;width:13px;height:17px;border-bottom:1px solid #35363c;border-left:1px solid #35363c;border-radius:0 0 0 6px}
.forum-thread-link .channel-button__name{line-height:18px}
.forum-thread-link .channel-button__unread{margin-left:auto}

/* Compact forum list. Values follow the supplied desktop reference, not dashboard cards. */
.chat-panel.is-forum-view{grid-template-rows:var(--head-h) minmax(0,1fr)}
.chat-panel.is-forum-view .composer-wrap,.chat-panel.is-forum-view .jump-bottom{display:none}
.messages.is-forum-index{padding:0;background:#1a1a1e;scroll-behavior:auto;scrollbar-gutter:stable;scrollbar-width:auto}
.forum-view{width:100%;min-height:100%;padding:20px 16px 28px;color:#f9f9fa}
.forum-view [hidden]{display:none!important}
.forum-toolbar{display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 8px 8px 12px;border:1px solid #2e2e33;border-radius:12px;background:#17171a}
.forum-search{display:flex;min-width:0;flex:1;align-items:center;gap:10px;color:#abacb2}
.forum-search__icon{display:block;flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.forum-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:#f9f9fa;font:500 20px/26px var(--font)}
.forum-search input::placeholder{color:#6d6f78;opacity:1}
.forum-search:focus-within{color:#f9f9fa}
.forum-toolbar:focus-within{border-color:#5865f2}
.forum-create{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 12px;border-radius:8px;background:#5865f2;color:#fff;font-size:14px;font-weight:600;line-height:20px}
.forum-create__icon{flex:0 0 16px;width:16px;height:16px}
.forum-create:hover{background:#4752c4}.forum-create:disabled{opacity:.5;background:#4a4d55}
.forum-create:focus-visible,.forum-sort:focus-visible{outline:2px solid #c7d2ff;outline-offset:2px}
.forum-controls{display:flex;align-items:flex-start;min-height:68px;padding:16px 0 20px}
.forum-sort{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:5px 12px;border:1px solid #35353b;border-radius:20px;background:#29292d;color:#b5bac1;font-size:14px;font-weight:500;line-height:20px}
.forum-sort__icon{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.forum-sort__chevron{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.forum-sort:hover{background:#333338;color:#f9f9fa}
.forum-post-list{display:grid;gap:16px}
.forum-post-list__item{min-width:0}
.forum-post-card{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-height:104px;gap:12px;padding:12px 10px;border:1px solid #303035;border-radius:12px;background:#202024;color:#f9f9fa;text-align:left;transition:border-color .12s,background .12s}
.forum-post-card.has-thumbnail{grid-template-columns:minmax(0,1fr) 72px}
.forum-post-card:hover{border-color:#45454d;background:#242429}
.forum-post-card:focus-visible{outline:2px solid #c7d2ff;outline-offset:2px}
.forum-post-card__body{display:flex;min-width:0;flex-direction:column;gap:4px}
.forum-post-card__heading{display:flex;align-items:center;min-width:0;gap:8px}
.forum-post-card__title{min-width:0;overflow:hidden;margin:0;color:#f9f9fa;font-size:20px;font-weight:600;line-height:24px;text-overflow:ellipsis;white-space:nowrap}
.forum-post-card__new{flex:0 0 auto;padding:1px 8px;border-radius:12px;background:#c7d2ff;color:#4752c4;font-size:12px;font-weight:700;line-height:18px;white-space:nowrap}
.forum-post-card__summary{display:block;min-width:0;overflow:hidden;margin:0;color:#f2f3f5;font-size:14px;font-weight:500;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.forum-post-card__author{color:var(--forum-author-color,#f2f3f5);font-weight:600}
.forum-post-card__placeholder{color:#94959c}
.forum-post-card__tags{display:flex;flex-wrap:wrap;gap:5px;min-height:20px;margin-top:1px}
.forum-post-card__tags.is-empty{display:none}
.forum-tag{max-width:190px;overflow:hidden;padding:2px 8px;border-radius:12px;background:#303136;color:#dbdee1;font-size:12px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
.forum-post-card__footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:24px;margin-top:auto;padding-top:2px;color:#f2f3f5;font-size:14px;font-weight:400;line-height:20px}
.forum-post-card__replies{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.forum-post-card__replies b{font-weight:400}
.forum-post-card__reply-icon{display:block;flex:0 0 14px;width:14px;height:14px;fill:currentColor}
.forum-post-card__dot{color:#4e5058;font-style:normal}.forum-post-card__age{font-weight:400;white-space:nowrap}
.forum-post-card__reactions{display:inline-flex;flex-wrap:wrap;gap:4px}
.forum-post-card__reaction{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:1px 6px;border:1px solid transparent;border-radius:8px;background:#2e2e34;color:#b5bac1;line-height:20px}
.forum-post-card__emoji{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;object-fit:contain;font:20px/20px 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}
.forum-post-card__media{align-self:center;width:72px;height:72px;overflow:hidden;border-radius:8px;background:#17171a}
.forum-post-card__thumbnail{display:block;width:100%;height:100%;object-fit:cover}
.forum-empty{display:grid;place-items:center;gap:5px;min-height:220px;padding:30px;color:#94959c;text-align:center}
.forum-empty strong{color:#f9f9fa;font-size:16px}.forum-empty span{font-size:14px}
.forum-composer{width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:hidden;border:0;border-radius:12px;background:#232428;color:#f2f3f5;box-shadow:0 24px 72px rgba(0,0,0,.72)}
.forum-composer::backdrop{background:rgba(0,0,0,.72)}
.forum-composer__card{display:grid;max-height:calc(100dvh - 24px);gap:17px;padding:20px;overflow-y:auto;background:#232428}
.forum-composer__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.forum-composer__header span{color:#949ba4;font-size:10px;font-weight:750;letter-spacing:.06em}.forum-composer__header h2{margin:2px 0 0;font-size:20px;line-height:25px}.forum-composer__header button{width:30px;height:30px;border-radius:50%;background:#111214;color:#b5bac1;font-size:21px;line-height:1}.forum-composer__header button:hover{color:#fff}
.forum-composer__field{display:grid;gap:7px}.forum-composer__field>span{color:#b5bac1;font-size:11px;font-weight:700;text-transform:uppercase}.forum-composer__field input,.forum-composer__field textarea{width:100%;border:1px solid #3f4147;border-radius:7px;outline:0;background:#1e1f22;color:#f2f3f5;font:400 15px/21px var(--font)}.forum-composer__field input{height:42px;padding:0 11px}.forum-composer__field textarea{min-height:142px;resize:vertical;padding:10px 11px}.forum-composer__field input:focus,.forum-composer__field textarea:focus{border-color:#5865f2}.forum-composer__field input::placeholder,.forum-composer__field textarea::placeholder{color:#6d6f78}
.forum-attachment-dropzone{position:relative;display:grid;gap:8px;padding:10px;border:1px dashed #4e5058;border-radius:8px;background:#1e1f22;transition:border-color .14s,background .14s}.forum-attachment-dropzone.is-dragging{border-color:#7b83f5;background:rgba(88,101,242,.14);box-shadow:0 0 0 3px rgba(88,101,242,.1)}.forum-attachment-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:5px 10px;border-radius:6px;background:transparent;color:#dbdee1;text-align:left}.forum-attachment-button:hover{background:rgba(255,255,255,.045)}.forum-attachment-button svg{flex:0 0 auto;width:22px;color:#b5bac1}.forum-attachment-button>span{display:grid}.forum-attachment-button strong{font-size:12px}.forum-attachment-button small,.forum-attachment-limit{color:#80848e;font-size:10px}.forum-attachment-strip{display:flex;gap:8px;overflow-x:auto;padding:2px}.forum-attachment-strip .attachment-chip{background:#2b2d31}.forum-attachment-limit{justify-self:end}
.forum-composer__mentions{display:flex;align-items:center;gap:9px;color:#b5bac1;font-size:12px}.forum-composer__mentions input{accent-color:#5865f2}
.forum-composer__footer{display:flex;justify-content:flex-end;gap:9px}.forum-composer__cancel,.forum-composer__submit{height:38px;padding:0 14px;border-radius:6px;font-size:13px;font-weight:650}.forum-composer__cancel{background:transparent;color:#dbdee1}.forum-composer__cancel:hover{text-decoration:underline}.forum-composer__submit{background:#5865f2;color:#fff}.forum-composer__submit:hover{background:#4752c4}.forum-composer__submit:disabled{opacity:.6}

@media(max-width:760px){
  .forum-view{padding:16px 12px 24px}.forum-toolbar{min-height:50px;padding:7px 8px 7px 12px;border-radius:10px}
  .forum-search input{font-size:16px}.forum-create{width:36px;min-height:36px;padding:0}.forum-create__label{display:none}
  .forum-controls{min-height:64px;padding:14px 0 18px}.forum-post-list{gap:12px}.forum-post-card{min-height:104px;gap:8px;border-radius:10px}.forum-post-card.has-thumbnail{grid-template-columns:minmax(0,1fr) 56px}.forum-post-card__media{width:56px;height:56px}
  .forum-post-card__title{font-size:18px;line-height:24px}.forum-post-card__summary{font-size:14px;line-height:20px}.forum-post-card__heading{gap:6px}.forum-post-card__new{padding:1px 6px;font-size:11px}
  .forum-composer__card{padding:16px}.forum-composer__footer{display:grid;grid-template-columns:1fr 1fr}.forum-composer__cancel,.forum-composer__submit{width:100%}
}

/* Fast sender picker: one shared mirror, many write identities. */
.composer-meta{justify-content:flex-start;overflow:visible;min-height:38px;padding:0 2px 5px}
.account-switcher{position:relative;z-index:124;flex:0 0 auto;min-width:0}
.sender-trigger{display:flex;align-items:center;gap:8px;min-width:184px;max-width:min(290px,42vw);min-height:34px;padding:3px 8px 3px 4px;border:1px solid #3f4147;border-radius:8px;background:#2b2d31;color:#dbdee1;text-align:left;transition:background .12s,border-color .12s}
.sender-trigger:hover{border-color:#555862;background:#34363c}.sender-trigger[aria-expanded="true"]{border-color:#5865f2;background:#34363c;box-shadow:0 0 0 2px rgba(88,101,242,.14)}.sender-trigger:disabled{cursor:default;opacity:.58}
.sender-avatar{position:relative;display:grid;flex:0 0 auto;place-items:center;width:27px;height:27px;overflow:hidden;border-radius:50%;background:#5865f2;color:#fff;font-size:9px;font-weight:750}.sender-avatar>img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.sender-avatar>.avatar-decoration{position:absolute;inset:-3px;width:calc(100% + 6px);height:calc(100% + 6px);max-width:none;border-radius:0;object-fit:contain;pointer-events:none}
.sender-trigger__copy{display:grid;min-width:0;flex:1;gap:0}.sender-trigger__copy small{color:#80848e;font-size:7px;font-weight:750;letter-spacing:.06em;line-height:10px}.sender-trigger__copy strong{overflow:hidden;color:#f2f3f5;font-size:11px;font-weight:650;line-height:15px;text-overflow:ellipsis;white-space:nowrap}
.sender-presence{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#80848e;box-shadow:0 0 0 2px #2b2d31}.sender-presence.is-online{background:#23a55a}.sender-presence.is-idle{background:#f0b232}.sender-presence.is-dnd{background:#f23f43}.sender-presence.is-unavailable{background:#80848e}.sender-trigger__chevron{flex:0 0 auto;width:13px;height:13px;color:#b5bac1;transition:transform .12s}.sender-trigger[aria-expanded="true"] .sender-trigger__chevron{transform:rotate(180deg)}
.channel-destination{flex:0 1 auto}.draft-status{margin-left:auto}
.account-switcher-scrim{position:fixed;z-index:121;inset:0;border:0;background:transparent}
.account-switcher-popover{position:absolute;z-index:123;bottom:calc(100% + 9px);left:0;display:grid;width:min(490px,calc(100vw - 28px));max-height:min(650px,76dvh);grid-template-rows:auto auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #3f4147;border-radius:12px;background:#232428;color:#f2f3f5;box-shadow:0 18px 52px rgba(0,0,0,.62);transform-origin:bottom left;animation:sender-picker-in .11s ease-out}
@keyframes sender-picker-in{from{opacity:0;transform:translateY(5px) scale(.99)}}
.account-switcher__header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:59px;padding:10px 12px 9px 14px;border-bottom:1px solid rgba(255,255,255,.08)}.account-switcher__header>div{display:grid;gap:2px}.account-switcher__header strong{font-size:14px;line-height:19px}.account-switcher__header span{color:#949ba4;font-size:10px}.account-switcher__header span b{color:#dbdee1}.account-switcher__header button{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#111214;color:#b5bac1;font-size:21px;line-height:1}.account-switcher__header button:hover{color:#fff}
.account-folder-bar{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 10px 1px}.account-folder-tabs{display:flex;flex:1;align-items:center;gap:6px;min-width:0;overflow-x:auto;padding:1px 0 5px;scrollbar-width:none;overscroll-behavior-x:contain}.account-folder-tabs::-webkit-scrollbar{display:none}.account-folder-chip{display:flex;flex:0 0 auto;align-items:center;overflow:hidden;border:1px solid #3b3d44;border-radius:999px;background:#2b2d31;transition:border-color .12s,background .12s}.account-folder-chip:has(.account-folder-tab[aria-selected="true"]){border-color:rgba(88,101,242,.8);background:rgba(88,101,242,.2);box-shadow:0 0 0 2px rgba(88,101,242,.08)}.account-folder-tab{display:flex;align-items:center;gap:6px;min-height:31px;padding:0 10px;background:transparent;color:#b5bac1;font-size:11px;font-weight:700;white-space:nowrap}.account-folder-tab:hover,.account-folder-tab[aria-selected="true"]{color:#fff}.account-folder-tab b{display:grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border-radius:9px;background:#1e1f22;color:#949ba4;font-size:9px}.account-folder-tab[aria-selected="true"] b{background:#5865f2;color:#fff}.account-folder-manage{width:28px;height:31px;padding:0 7px 2px 2px;background:transparent;color:#80848e;font-size:10px;font-weight:900;letter-spacing:-1px}.account-folder-manage:hover{color:#fff}.account-folder-create{display:grid;flex:0 0 auto;width:32px;height:32px;place-items:center;border:1px dashed #555862;border-radius:50%;background:#2b2d31;color:#c8ccff;font-size:19px;line-height:1}.account-folder-create:hover{border-color:#7b83f5;background:rgba(88,101,242,.2);color:#fff}.account-folder-tab:focus-visible,.account-folder-manage:focus-visible,.account-folder-create:focus-visible{outline:2px solid #aeb4ff;outline-offset:1px}
.account-search{position:relative;display:flex;align-items:center;margin:10px 10px 7px}.account-search>svg{position:absolute;left:10px;width:17px;height:17px;color:#949ba4;pointer-events:none}.account-search>input{width:100%;height:40px;padding:0 48px 0 36px;border:1px solid transparent;border-radius:7px;outline:0;background:#111214;color:#f2f3f5;font-size:13px}.account-search>input:focus{border-color:#5865f2}.account-search>input::placeholder{color:#6d6f78}.account-search>kbd{position:absolute;right:9px;padding:2px 5px;border:1px solid #3f4147;border-radius:4px;background:#2b2d31;color:#80848e;font:9px/13px var(--font);pointer-events:none}
.account-switcher-list {
  min-height:90px;
  max-height:min(465px,55dvh);
  overflow-y:auto;
  padding:2px 7px 9px;
  overscroll-behavior:contain;
  scrollbar-color:#111214 transparent;
  scrollbar-width:thin;
}
.account-switcher-list::-webkit-scrollbar{width:9px}.account-switcher-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#111214;background-clip:padding-box}
.sender-section{display:grid;gap:1px;margin-top:7px}.sender-section:first-child{margin-top:2px}.sender-section>h3{margin:0;padding:6px 8px 4px;color:#949ba4;font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.sender-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,auto);align-items:center;border-radius:6px}.sender-row.is-bulk-mode{grid-template-columns:auto minmax(0,1fr) repeat(3,auto)}.sender-row:hover{background:#35373c}.sender-row.is-selected{background:rgba(88,101,242,.16)}.sender-row.is-bulk-selected{background:rgba(88,101,242,.24);box-shadow:inset 0 0 0 1px rgba(123,131,245,.42)}.sender-row.is-unavailable{opacity:.46;filter:saturate(.2)}.sender-row.is-unavailable .account-option{cursor:not-allowed}.sender-row.is-unavailable .sender-row__presence{background:#6d6f78}
.account-option {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:4px 7px;
  border-radius:6px;
  background:transparent;
  color:#dbdee1;
  text-align:left;
}
.account-option:hover,.account-option.is-keyboard-focus{background:#404249}.account-option:disabled{cursor:default}.account-option.is-active,.account-option[aria-current="true"]{background:rgba(88,101,242,.22);color:#fff}.account-option:focus-visible{outline:2px solid #5865f2;outline-offset:-2px}
.sender-row__avatar{width:36px;height:36px;font-size:11px}.sender-row__presence{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border:3px solid #232428;border-radius:50%;background:#80848e}.sender-row__presence.is-online{background:#23a55a}.sender-row__presence.is-idle{background:#f0b232}.sender-row__presence.is-dnd{background:#f23f43}.sender-row__presence.is-unavailable{background:#80848e}
.sender-row__copy{display:grid;min-width:0;flex:1;gap:0}.sender-row__copy strong,.sender-row__copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sender-row__copy strong{color:inherit;font-size:13px;font-weight:600;line-height:18px}.sender-row__copy small{color:#949ba4;font-size:10px;line-height:15px}.sender-row__selected{display:grid;flex:0 0 auto;place-items:center;width:19px;height:19px;border-radius:50%;color:#aeb4ff;font-size:12px;font-weight:800}
.sender-favorite{display:grid;place-items:center;width:34px;height:34px;margin-right:2px;border-radius:6px;background:transparent;color:#6d6f78;font-size:18px;line-height:1}.sender-favorite:hover{background:rgba(255,255,255,.07);color:#f0b232}.sender-favorite.is-active{color:#f0b232}
.sender-folders{position:relative;display:grid;width:34px;height:34px;place-items:center;border-radius:6px;background:transparent;color:#80848e}.sender-folders:hover{background:rgba(88,101,242,.13);color:#c8ccff}.sender-folders.is-active{color:#aeb4ff}.sender-folders__icon{font-size:19px;line-height:1;transform:rotate(-2deg)}.sender-folders>b{position:absolute;right:0;bottom:0;display:grid;min-width:15px;height:15px;place-items:center;padding:0 3px;border:2px solid #35373c;border-radius:8px;background:#5865f2;color:#fff;font-size:8px}.sender-folders:focus-visible,.sender-favorite:focus-visible,.sender-manage:focus-visible{outline:2px solid #aeb4ff;outline-offset:-2px}
.sender-bulk-check{display:grid;width:25px;height:25px;margin-left:7px;place-items:center;border:1px solid #555862;border-radius:7px;background:#1e1f22;color:transparent;font-size:13px;font-weight:900}.sender-bulk-check:hover{border-color:#7b83f5}.sender-bulk-check.is-active{border-color:#5865f2;background:#5865f2;color:#fff}.sender-bulk-check:focus-visible{outline:2px solid #aeb4ff;outline-offset:2px}
.sender-empty{display:grid;place-items:center;align-content:center;gap:4px;min-height:150px;padding:22px;color:#80848e;text-align:center}.sender-empty strong{color:#b5bac1;font-size:13px}.sender-empty span{font-size:11px}
.account-switcher__footer{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;min-height:39px;padding:7px 12px;border-top:1px solid rgba(255,255,255,.08);color:#80848e;font-size:9px}.account-switcher__footer span{display:flex;align-items:center;gap:3px}.account-switcher__footer kbd{padding:1px 4px;border:1px solid #3f4147;border-radius:3px;background:#2b2d31;color:#b5bac1;font:9px/14px var(--font)}
.sender-bulk-toggle{height:27px;padding:0 9px;border:1px solid #4a4d57;border-radius:5px;background:#2b2d31;color:#dbdee1;font-size:10px;font-weight:750}.sender-bulk-toggle:hover{border-color:#7b83f5;background:rgba(88,101,242,.18);color:#fff}.sender-bulk-actions{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:7px;min-width:245px}.sender-bulk-actions>span{margin-right:auto;color:#b5bac1;font-size:10px}.sender-bulk-actions>span b{color:#fff}.sender-bulk-actions>button{height:29px;padding:0 10px;border-radius:5px;background:#35373c;color:#dbdee1;font-size:10px;font-weight:750}.sender-bulk-actions>button:first-of-type{background:#5865f2;color:#fff}.sender-bulk-actions>button:hover{filter:brightness(1.13)}.sender-bulk-actions>button:disabled{cursor:default;opacity:.45}.account-switcher-popover.is-bulk-mode .account-switcher__footer>span{display:none}

@media (max-width: 760px) {
  .composer-meta{min-height:42px}.sender-trigger{max-width:min(270px,70vw)}
  .account-switcher-scrim{background:rgba(0,0,0,.64);backdrop-filter:blur(1px)}
  .account-switcher-popover {
    position:fixed;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-height:85dvh;
    padding-bottom:env(safe-area-inset-bottom);
    border-width:1px 0 0;
    border-radius:16px 16px 0 0;
    transform-origin:bottom center;
  }
  .account-switcher__header{min-height:62px;padding-left:16px}.account-folder-bar{padding:9px 10px 0}.account-folder-tab{min-height:35px;font-size:12px}.account-folder-manage{height:35px}.account-folder-create{width:36px;height:36px}.account-search{position:sticky;z-index:2;top:0;margin:7px 10px 6px;background:#232428}.account-search>input{height:44px}
  .account-switcher-list{max-height:none;padding-bottom:12px}.account-option{min-height:52px;padding-right:9px;padding-left:9px}.sender-row__avatar{width:38px;height:38px}.sender-row__copy strong{font-size:14px}.sender-favorite{width:42px;height:42px}
  .account-switcher__footer{display:none}
}
@media(max-width:540px){.channel-destination{display:none}.sender-trigger{min-width:0;max-width:calc(100vw - 54px)}.sender-trigger__copy strong{max-width:175px}.draft-status{font-size:8px}}

/* Invite-authenticated private sender management. */
.account-add-button{height:27px;padding:0 9px;border:1px solid rgba(88,101,242,.48);border-radius:5px;background:rgba(88,101,242,.13);color:#c8ccff;font-size:10px;font-weight:750}.account-add-button:hover{background:rgba(88,101,242,.24);color:#fff}
.sender-manage{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:transparent;color:#80848e;font-size:15px}.sender-manage:hover{background:rgba(242,63,67,.14);color:#fa777c}
.sender-scope{display:inline-flex;align-items:center;margin-right:5px;padding:1px 5px;border-radius:9px;background:rgba(88,101,242,.16);color:#c8ccff;font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.private-account-dialog{width:min(520px,calc(100vw - 24px));max-width:none;margin:auto;padding:0;border:0;border-radius:13px;background:#232428;color:#f2f3f5;box-shadow:0 24px 72px rgba(0,0,0,.72)}
.private-account-dialog::backdrop{background:rgba(0,0,0,.72)}
.private-account-card{display:grid;gap:15px;padding:21px;background:#232428}
.private-account-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.private-account-header span{color:#949ba4;font-size:10px;font-weight:750;letter-spacing:.07em}.private-account-header h2{margin:2px 0 0;font-size:20px;line-height:25px}.private-account-header button{width:30px;height:30px;border-radius:50%;background:#111214;color:#b5bac1;font-size:21px;line-height:1}.private-account-header button:hover{color:#fff}
.private-account-copy{margin:0;padding:10px 11px;border:1px solid rgba(88,101,242,.23);border-radius:7px;background:rgba(88,101,242,.08);color:#b5bac1;font-size:12px;line-height:17px}
.private-account-field{display:grid;gap:7px}.private-account-field>span{color:#b5bac1;font-size:11px;font-weight:700;text-transform:uppercase}.private-account-field input{width:100%;height:42px;padding:0 11px;border:1px solid #3f4147;border-radius:7px;outline:0;background:#1e1f22;color:#f2f3f5;font:400 14px/20px var(--font)}.private-account-field input:focus{border-color:#5865f2;box-shadow:0 0 0 3px rgba(88,101,242,.13)}.private-account-field input::placeholder{color:#6d6f78}
.private-account-field>span>small,.private-account-field>legend>small{margin-left:5px;color:#80848e;font-size:9px;font-weight:650;letter-spacing:.02em}.proxy-field{min-width:0;margin:0;padding:0;border:0}.proxy-field>legend{display:block;width:100%;margin:0 0 7px;padding:0;color:#b5bac1;font-size:11px;font-weight:700;text-transform:uppercase}.private-account-field>.proxy-entry{display:grid;grid-template-columns:162px minmax(0,1fr);gap:8px;color:inherit;font-size:inherit;font-weight:inherit;text-transform:none}.private-account-field select{width:100%;height:42px;padding:0 31px 0 10px;border:1px solid #3f4147;border-radius:7px;outline:0;background:#1e1f22;color:#f2f3f5;font:600 12px/20px var(--font);color-scheme:dark}.private-account-field select:focus{border-color:#5865f2;box-shadow:0 0 0 3px rgba(88,101,242,.13)}.proxy-examples,.proxy-format-hint{display:block;color:#80848e;font-size:10px;line-height:15px}.proxy-examples code{padding:1px 4px;border-radius:4px;background:#1e1f22;color:#b5bac1;font:9px/14px ui-monospace,SFMono-Regular,Consolas,monospace}.proxy-format-hint{min-height:16px;padding-left:17px;position:relative;color:#b5bac1}.proxy-format-hint::before{position:absolute;left:1px;content:"i";display:grid;width:12px;height:12px;place-items:center;border:1px solid #5865f2;border-radius:50%;color:#aeb4ff;font:bold 8px/1 var(--font)}.proxy-format-hint.is-ready{color:#8bd6a6}.proxy-format-hint.is-ready::before{content:"✓";border-color:#23a55a;color:#8bd6a6}.proxy-format-hint.is-warning{color:#f5c96b}.proxy-format-hint.is-warning::before{content:"!";border-color:#f0b232;color:#f5c96b}
.private-account-footer{display:flex;justify-content:flex-end;gap:9px}.private-account-footer button{height:38px;padding:0 15px;border-radius:6px;font-size:13px;font-weight:700}.private-account-footer button:first-child{background:transparent;color:#dbdee1}.private-account-footer button:first-child:hover{text-decoration:underline}.private-account-footer button:last-child{background:#5865f2;color:#fff}.private-account-footer button:last-child:hover{background:#4752c4}.private-account-footer button:disabled{opacity:.58}
@media(max-width:760px){.account-switcher__footer{display:flex}.account-switcher__footer>span{display:none}.account-add-button,.sender-bulk-toggle{flex:1 1 160px;height:35px}.sender-bulk-actions{width:100%;min-width:0}.sender-bulk-actions>span{display:flex}.sender-bulk-actions>button{height:35px}.private-account-card{padding:16px}.private-account-footer{display:grid;grid-template-columns:1fr 1fr}.private-account-footer button{width:100%}}

/* Per-user sender folders. */
.account-folder-dialog,.sender-folder-dialog{width:min(460px,calc(100vw - 24px));max-width:none;margin:auto;padding:0;border:0;border-radius:14px;background:#232428;color:#f2f3f5;box-shadow:0 24px 72px rgba(0,0,0,.72)}.account-folder-dialog::backdrop,.sender-folder-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}.account-folder-card,.sender-folder-card{display:grid;gap:16px;padding:20px;background:linear-gradient(160deg,rgba(88,101,242,.07),transparent 42%),#232428}.account-folder-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.account-folder-dialog__header>div{display:grid;gap:2px}.account-folder-dialog__header span{color:#949ba4;font-size:9px;font-weight:800;letter-spacing:.08em}.account-folder-dialog__header h2{margin:0;font-size:20px;line-height:26px}.account-folder-dialog__header>button{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#111214;color:#b5bac1;font-size:21px}.account-folder-dialog__header>button:hover{color:#fff}.account-folder-dialog__footer,.sender-folder-dialog__footer{display:flex;align-items:center;gap:9px}.account-folder-dialog__footer>span{flex:1}.account-folder-dialog__footer button,.sender-folder-dialog__footer button{height:38px;padding:0 14px;border-radius:7px;font-size:12px;font-weight:750}.account-folder-dialog__footer button:not(.folder-delete-button),.sender-folder-dialog__footer button{background:#2b2d31;color:#dbdee1}.account-folder-dialog__footer button:last-child,.sender-folder-dialog__footer button:last-child{background:#5865f2;color:#fff}.account-folder-dialog__footer button:hover,.sender-folder-dialog__footer button:hover{filter:brightness(1.13)}.account-folder-dialog__footer button:disabled{opacity:.55}.folder-delete-button{background:rgba(242,63,67,.13);color:#fa777c}.sender-folder-dialog__copy{margin:0;color:#b5bac1;font-size:12px;line-height:18px}.sender-folder-memberships{display:grid;gap:7px;max-height:min(360px,48dvh);overflow:auto}.sender-folder-membership{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;min-height:52px;padding:7px 11px;border:1px solid #3f4147;border-radius:9px;background:#1e1f22;cursor:pointer}.sender-folder-membership:hover{border-color:#555862;background:#25262b}.sender-folder-membership>input{position:absolute;width:1px;height:1px;opacity:0}.sender-folder-membership__check{display:grid;width:21px;height:21px;place-items:center;border:1px solid #555862;border-radius:6px;color:transparent;font-size:12px;font-weight:900}.sender-folder-membership>input:checked+.sender-folder-membership__check{border-color:#5865f2;background:#5865f2;color:#fff}.sender-folder-membership>input:focus-visible+.sender-folder-membership__check{outline:2px solid #aeb4ff;outline-offset:2px}.sender-folder-membership>input:disabled~*{opacity:.55}.sender-folder-membership__copy{display:grid;min-width:0}.sender-folder-membership__copy strong{overflow:hidden;color:#f2f3f5;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.sender-folder-membership__copy small{color:#80848e;font-size:10px}.sender-folder-empty{display:grid;min-height:118px;place-content:center;gap:5px;padding:20px;border:1px dashed #3f4147;border-radius:10px;color:#80848e;text-align:center}.sender-folder-empty strong{color:#dbdee1;font-size:13px}.sender-folder-empty span{font-size:11px}.sender-folder-dialog__footer{justify-content:space-between}.sender-folder-dialog__footer button:first-child{color:#c8ccff}
@media(max-width:560px){.private-account-field>.proxy-entry{grid-template-columns:1fr}.private-account-field select{font-size:14px}.proxy-examples{display:none}.account-folder-card,.sender-folder-card{padding:16px}.account-folder-dialog__footer{display:grid;grid-template-columns:1fr 1fr}.account-folder-dialog__footer>span{display:none}.account-folder-dialog__footer .folder-delete-button{grid-column:1/-1}.account-folder-dialog__footer button{width:100%}.sender-row{grid-template-columns:minmax(0,1fr) repeat(3,38px)}.sender-folders,.sender-favorite,.sender-manage{width:38px}}

/* Permanent per-user credentials and invite registration. */
.login-card{max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-color:#1e1f22 transparent;scrollbar-width:thin}
.auth-form{display:grid;gap:14px;margin-top:23px}.auth-form.is-hidden{display:none}.auth-field{display:grid;gap:7px}.auth-field .field-label{margin:0}.auth-field>input,.auth-field .password-field>input{width:100%;height:48px;padding:0 14px;border:1px solid transparent;border-radius:8px;outline:0;background:#1e1f22;color:#f2f3f5}.auth-field .password-field>input{padding-right:48px}.auth-field>input:focus,.auth-field .password-field>input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(88,101,242,.18)}.auth-field>input::placeholder,.auth-field .password-field>input::placeholder{color:#6d6f78}.auth-field input:invalid:not(:placeholder-shown){border-color:rgba(242,63,67,.6)}.auth-switch{justify-self:center;padding:3px 5px;background:transparent;color:#aeb4ff;font-size:12px;font-weight:650}.auth-switch:hover{color:#fff;text-decoration:underline}.auth-form .form-error{margin:0}.credential-setup-copy{margin:0;padding:11px 12px;border:1px solid rgba(88,101,242,.25);border-radius:8px;background:rgba(88,101,242,.09);color:#c6c9d0;font-size:12px;line-height:18px}
@media(max-width:540px){.login-screen{padding:16px}.login-card{max-height:calc(100dvh - 24px);padding:26px 22px}.login-card .brand-mark{margin-bottom:20px}.login-card h1{font-size:25px}.auth-form{margin-top:19px;gap:12px}}

/* Interactive message actions: reply, edit, reactions and GIF delivery. */
.message-body{position:relative}
.message-actions{position:absolute;z-index:8;top:-10px;right:0;display:flex;overflow:visible;border:1px solid #3f4147;border-radius:6px;background:#2b2d31;box-shadow:0 4px 12px rgba(0,0,0,.35);opacity:0;transform:translateY(2px);pointer-events:none;transition:opacity .1s,transform .1s}
.message-group:hover .message-actions,.message-group:focus-within .message-actions{opacity:1;transform:none;pointer-events:auto}
.message-action{display:grid;width:32px;height:30px;place-items:center;border-radius:4px;background:transparent;color:#b5bac1;font-size:17px;line-height:1}.message-action:hover{background:#3f4147;color:#fff}.message-reaction-action{position:relative}
.message-reaction-picker{position:fixed;z-index:120;display:grid;width:228px;max-height:340px;gap:9px;overflow-y:auto;padding:9px;border:1px solid #3f4147;border-radius:8px;background:#111214;box-shadow:0 9px 28px rgba(0,0,0,.55);scrollbar-color:#4e5058 transparent;scrollbar-width:thin}.message-reaction-section{display:grid;gap:5px;min-width:0}.message-reaction-section+.message-reaction-section{padding-top:8px;border-top:1px solid #2e3035}.message-reaction-section__title{overflow:hidden;color:#949ba4;font-size:9px;font-weight:800;letter-spacing:.035em;text-overflow:ellipsis;white-space:nowrap}.message-reaction-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.message-reaction-section__empty{padding:5px 2px;color:#6d6f78;font-size:9px;line-height:14px}.message-reaction-option{display:grid;width:30px;height:30px;place-items:center;border-radius:4px;background:transparent;font-size:18px}.message-reaction-option:hover{background:#35373c;transform:scale(1.08)}.message-reaction-option__emoji{display:grid;width:22px;height:22px;place-items:center;object-fit:contain}.message-reaction-option.is-custom .message-reaction-option__emoji{border-radius:3px}
.message-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.message-reaction{display:inline-flex;min-width:40px;height:24px;align-items:center;justify-content:center;gap:5px;padding:0 7px;border:1px solid transparent;border-radius:8px;background:#2b2d31;color:#b5bac1}.message-reaction:hover{border-color:#5865f2;background:#35373c}.message-reaction.is-mine{border-color:#5865f2;background:rgba(88,101,242,.18);color:#c8ccff}.message-reaction b{font-size:10px}.message-reaction__emoji{width:16px;height:16px;object-fit:contain}
.message-edit-form{display:grid;gap:5px;margin:3px 0 2px}.message-edit-input{width:100%;min-height:52px;max-height:190px;padding:9px 10px;resize:vertical;border:1px solid #5865f2;border-radius:7px;outline:0;background:#1e1f22;color:#f2f3f5;font:400 14px/20px var(--font);box-shadow:0 0 0 3px rgba(88,101,242,.1)}.message-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.message-edit-actions small{margin-right:auto;color:#80848e;font-size:9px}.message-edit-actions button{height:26px;padding:0 9px;border-radius:5px;font-size:10px;font-weight:700}.message-edit-cancel{background:transparent;color:#b5bac1}.message-edit-save{background:#5865f2;color:#fff}.message-edit-actions button:disabled{opacity:.55}
.composer-reply{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;margin:0 0 5px;padding:7px 9px;border-left:3px solid #5865f2;border-radius:6px;background:#232428;color:#dbdee1}.composer-reply__icon{color:#aeb4ff;font-size:17px}.composer-reply__copy{display:flex;min-width:0;align-items:baseline;gap:5px;font-size:11px}.composer-reply__copy strong{color:#aeb4ff}.composer-reply__copy small{min-width:0;overflow:hidden;color:#80848e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.composer-reply>button{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#111214;color:#b5bac1;font-size:17px}.composer-reply>button:hover{color:#fff}
.gif-button{width:36px!important}.gif-button b{font-size:9px;font-weight:900;letter-spacing:-.03em}.gif-popover{position:absolute;z-index:120;right:10px;bottom:calc(100% + 9px);display:grid;width:min(390px,calc(100vw - 28px));gap:9px;padding:11px;border:1px solid #3f4147;border-radius:10px;background:#111214;box-shadow:0 16px 42px rgba(0,0,0,.62)}.gif-popover>header{display:flex;align-items:center;justify-content:space-between;color:#f2f3f5;font-size:13px}.gif-popover>header button{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#232428;color:#b5bac1;font-size:18px}.gif-popover>small{color:#80848e;font-size:9px}.gif-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gif-preset{position:relative;min-width:0;aspect-ratio:1.45;overflow:hidden;border-radius:6px;background:#232428}.gif-preset img{width:100%;height:100%;object-fit:cover}.gif-preset span{position:absolute;right:0;bottom:0;left:0;padding:13px 5px 4px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff;font-size:9px;font-weight:700;text-align:left}.gif-preset:hover{outline:2px solid #5865f2}.gif-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.gif-form input{min-width:0;height:36px;padding:0 9px;border:1px solid #3f4147;border-radius:6px;outline:0;background:#1e1f22;color:#f2f3f5;font-size:11px}.gif-form input:focus{border-color:#5865f2}.gif-form button{height:36px;padding:0 11px;border-radius:6px;background:#5865f2;color:#fff;font-size:11px;font-weight:700}
@media(max-width:760px){.message-actions{position:static;width:max-content;margin-top:4px;opacity:1;transform:none;pointer-events:auto;box-shadow:none}.message-group{padding-right:12px}.message-edit-actions small{display:none}.gif-popover{position:fixed;right:8px;bottom:calc(env(safe-area-inset-bottom) + 8px);left:8px;width:auto}.gif-presets{grid-template-columns:repeat(3,1fr)}.composer-reply__copy{display:grid;gap:0}}

/* Account picker visual refresh. Flat utility styling replaces decorative cards. */
.sender-trigger{
  min-height:34px;
  padding:3px 8px 3px 4px;
  border:1px solid #3f4147;
  border-radius:6px;
  background:#25262a;
  color:#dbdee1;
  transition:none;
}
.sender-trigger:hover,.sender-trigger[aria-expanded="true"]{border-color:#565960;background:#2b2d31;box-shadow:none}
.sender-trigger__copy{display:block}
.sender-trigger__copy small{display:none}
.sender-trigger__copy strong{font-size:12px;font-weight:600;line-height:18px}
.sender-avatar{width:27px;height:27px;background:#5865f2}
.sender-presence{box-shadow:0 0 0 2px #25262a}
.sender-trigger__chevron{color:#949ba4;transition:none}

.account-switcher-scrim{pointer-events:none;background:transparent;backdrop-filter:none}
body.sender-picker-open .composer-wrap{z-index:180}
body.sender-picker-open .composer-wrap.is-disabled{opacity:1}
.account-switcher-popover{
  --picker-bg:#1e1f22;
  --picker-raised:#25262a;
  --picker-hover:#2b2d31;
  --picker-selected:#303238;
  --picker-border:#3f4147;
  --picker-text:#f2f3f5;
  --picker-muted:#b5bac1;
  --picker-dim:#80848e;
  --picker-accent:#5865f2;
  --picker-radius-panel:10px;
  --picker-radius-control:6px;
  --picker-radius-compact:4px;
  width:min(560px,calc(100vw - 24px));
  height:min(680px,var(--sender-picker-available-height,calc(100dvh - 220px)));
  max-height:min(680px,var(--sender-picker-available-height,calc(100dvh - 220px)));
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid var(--picker-border);
  border-radius:var(--picker-radius-panel);
  background:var(--picker-bg);
  color:var(--picker-text);
  box-shadow:0 8px 24px rgba(0,0,0,.45);
  animation:none;
}
.account-switcher__header{
  min-height:54px;
  padding:9px 10px 9px 12px;
  border-bottom:1px solid #2d2f34;
  background:var(--picker-bg);
}
.account-switcher__header>.account-switcher__heading{display:flex;min-width:0;align-items:baseline;gap:8px}
.account-switcher__heading>small{display:none}
.account-switcher__heading>strong{overflow:hidden;color:var(--picker-text);font-size:15px;font-weight:600;letter-spacing:0;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
.account-switcher__heading>span{color:var(--picker-dim);font-size:11px;font-weight:400;line-height:16px;white-space:nowrap}
.account-switcher__heading>span b{color:var(--picker-muted);font-weight:600}
.account-switcher__header>button{
  width:30px;
  height:30px;
  border:0;
  border-radius:var(--picker-radius-compact);
  background:transparent;
  color:#949ba4;
  transition:none;
}
.account-switcher__header>button svg{width:16px;height:16px}
.account-switcher__header>button:hover{border:0;background:var(--picker-hover);color:#fff}
.account-switcher__header>button:active{transform:none}

.account-folder-bar{min-width:0;gap:6px;padding:6px 8px 0}
.account-folder-tabs{
  flex:1 1 auto;
  min-width:0;
  gap:2px;
  overflow-x:auto;
  padding:0 0 5px;
  scroll-padding-inline:4px;
  scrollbar-color:#45484f transparent;
  scrollbar-width:thin;
}
.account-folder-tabs::-webkit-scrollbar{display:block;height:3px}
.account-folder-tabs::-webkit-scrollbar-button{display:none;width:0;height:0}
.account-folder-tabs::-webkit-scrollbar-track{background:transparent}
.account-folder-tabs::-webkit-scrollbar-thumb{border-radius:3px;background:#45484f}
.account-folder-tabs::after{content:"";width:96px;flex:0 0 96px;height:1px}
.account-folder-chip{
  min-width:0;
  max-width:min(210px,100%);
  min-height:34px;
  scroll-margin-inline:4px;
  border:1px solid transparent;
  border-radius:var(--picker-radius-control);
  background:transparent;
  box-shadow:none;
  transition:none;
}
.account-folder-chip:hover{border-color:transparent;background:var(--picker-hover)}
.account-folder-chip:has(.account-folder-tab[aria-selected="true"]){
  border-color:#45484f;
  background:var(--picker-selected);
  box-shadow:none;
}
.account-folder-tab{
  min-width:0;
  max-width:100%;
  min-height:32px;
  flex:1 1 auto;
  gap:6px;
  padding:0 8px;
  color:var(--picker-muted);
  font-size:12px;
  font-weight:500;
}
.account-folder-tab:hover,.account-folder-tab[aria-selected="true"]{color:var(--picker-text)}
.account-folder-tab>span{display:block;min-width:0;max-width:126px;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:16px}
.account-folder-tab b{
  display:block;
  min-width:auto;
  height:auto;
  flex:0 0 auto;
  padding:0;
  border-radius:var(--picker-radius-compact);
  background:transparent;
  color:var(--picker-dim);
  font-size:11px;
  font-weight:500;
  line-height:16px;
  font-variant-numeric:tabular-nums;
}
.account-folder-tab[aria-selected="true"] b{background:transparent;color:var(--picker-muted)}
.account-folder-manage{width:28px;height:32px;flex:0 0 auto;padding:0;border-left:1px solid #3b3e44;border-radius:0;color:#7f848d}
.account-folder-manage svg{width:15px;height:15px;margin:auto}
.account-folder-manage:hover{background:#37393f;color:#fff}
.account-folder-create{
  display:flex;
  width:auto;
  min-width:106px;
  height:34px;
  flex:0 0 auto;
  justify-content:center;
  gap:6px;
  padding:0 9px;
  border:1px solid #45484f;
  border-radius:var(--picker-radius-control);
  background:transparent;
  color:var(--picker-muted);
  font-size:11px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  transition:none;
}
.account-folder-create svg{width:16px;height:16px;stroke-width:1.8}
.account-folder-create:hover{border-color:#5b5f68;background:var(--picker-hover);color:#fff}
.account-folder-create:active{transform:none}
.account-folder-tab:focus-visible,.account-folder-manage:focus-visible,.account-folder-create:focus-visible{outline:1px solid var(--picker-accent);outline-offset:-2px}

.account-search{margin:7px 8px}
.account-search>svg{left:11px;width:16px;height:16px;color:#777c85;transition:none}
.account-search>input{
  height:38px;
  padding:0 34px;
  border:1px solid #303238;
  border-radius:var(--picker-radius-control);
  background:#111214;
  color:var(--picker-text);
  font-size:13px;
  transition:none;
}
.account-search>input:hover{border-color:#40434a;background:#111214}
.account-search>input:focus{border-color:var(--picker-accent);box-shadow:none}
.account-search:focus-within>svg{color:#aeb4ff}
.account-search>input::placeholder{color:#6f747d}
.account-search>kbd{display:none}

.account-switcher-list{min-height:0;max-height:none;overflow-y:auto;padding:0 6px 6px;scrollbar-color:#3b3e44 transparent;scrollbar-width:thin}
.account-switcher-list::-webkit-scrollbar{width:8px}
.account-switcher-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:4px;background:#3b3e44;background-clip:padding-box}
.sender-section{gap:0;margin-top:6px}
.sender-section:first-child{margin-top:0}
.sender-section>h3{min-width:0;overflow:hidden;margin:0;padding:7px 8px 4px;color:var(--picker-dim);font-size:11px;font-weight:600;letter-spacing:0;line-height:16px;text-overflow:ellipsis;text-transform:none;white-space:nowrap}
.sender-row{
  grid-template-columns:minmax(0,1fr) repeat(3,auto);
  column-gap:2px;
  min-height:52px;
  margin:0;
  border:1px solid transparent;
  border-radius:var(--picker-radius-control);
  background:transparent;
  box-shadow:none;
  transition:none;
}
.sender-row.is-bulk-mode{grid-template-columns:auto minmax(0,1fr) repeat(3,auto)}
.sender-row:hover{background:var(--picker-hover)}
.sender-row.is-selected{border:1px solid var(--picker-border);background:var(--picker-selected)}
.sender-row.is-selected:hover{background:var(--picker-selected)}
.sender-row.is-bulk-selected{border:1px solid #555961;background:var(--picker-selected);box-shadow:none}
.account-option{min-height:50px;gap:9px;padding:5px 7px;border-radius:var(--picker-radius-control)}
.account-option:hover,.account-option.is-active,.account-option[aria-current="true"]{background:transparent}
.account-option.is-keyboard-focus{background:transparent;outline:1px solid var(--picker-accent);outline-offset:-1px;box-shadow:none}
.account-option:focus-visible{border-radius:var(--picker-radius-control);outline:1px solid var(--picker-accent);outline-offset:-1px}
.sender-row__avatar{width:36px;height:36px;font-size:11px;box-shadow:none}
.sender-row__presence{right:-1px;bottom:-1px;width:12px;height:12px;border-color:var(--picker-bg)}
.sender-row:hover .sender-row__presence{border-color:var(--picker-hover)}
.sender-row.is-selected .sender-row__presence{border-color:var(--picker-selected)}
.sender-row__copy{gap:0}
.sender-row__title{gap:6px}
.sender-row__title>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sender-row__copy strong{font-size:13px;font-weight:600;line-height:18px}
.sender-row__copy small{color:#949ba4;font-size:11px;font-weight:400;line-height:15px}
.sender-row__current{display:none;flex:0 0 auto;padding:0;border:0;border-radius:var(--picker-radius-compact);background:transparent;color:var(--picker-dim);font-size:9px;font-weight:500;letter-spacing:0;line-height:14px;text-transform:none}
.sender-row__selected{width:20px;height:20px;border:0;color:#aeb4ff}
.sender-row__selected svg{width:15px;height:15px;stroke-width:2.3}

.sender-folders{
  display:flex;
  width:auto;
  min-width:78px;
  height:32px;
  justify-content:center;
  gap:5px;
  padding:0 7px;
  border:1px solid transparent;
  border-radius:var(--picker-radius-compact);
  background:transparent;
  color:#949ba4;
  font-size:10px;
  font-weight:500;
  white-space:nowrap;
  transition:none;
}
.sender-folders:hover{border-color:transparent;background:#37393f;color:#f2f3f5}
.sender-folders.is-active{border-color:#45484f;background:transparent;color:#c3c6cc}
.sender-folders.is-active:hover{border-color:#45484f;background:#37393f;color:#fff}
.sender-folders:active{transform:none}
.sender-folders__icon{width:17px;height:17px;flex:0 0 auto;stroke-width:1.8}
.sender-folders__label{line-height:1}
.sender-folders>b{position:static;right:auto;bottom:auto;min-width:auto;height:auto;padding:0;border:0;border-radius:var(--picker-radius-compact);background:transparent;color:#aeb0b7;font-size:10px;font-weight:600}
.sender-favorite,.sender-manage{width:32px;height:32px;margin:0;border:0;border-radius:var(--picker-radius-compact);color:#7e838c;transition:none}
.sender-favorite svg{width:17px;height:17px;stroke-width:1.8}
.sender-favorite:hover{border:0;background:#37393f;color:#d9a441}
.sender-favorite.is-active{color:#d9a441}
.sender-favorite.is-active svg{fill:currentColor}
.sender-favorite:active{transform:none}
.sender-manage:hover{border:0;background:#37393f;color:#f06a6d}
.sender-bulk-check{width:24px;height:24px;margin-left:7px;border-radius:var(--picker-radius-compact);background:#111214}

.account-switcher__footer{display:flex;min-height:48px;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid #2d2f34;background:var(--picker-bg)}
.account-switcher__footer-main{display:flex;min-width:0;flex:1;align-items:center;gap:6px}
.account-add-button,.sender-bulk-toggle{
  display:inline-flex;
  height:32px;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 9px;
  border:1px solid #45484f;
  border-radius:var(--picker-radius-compact);
  background:#2b2d31;
  color:#dbdee1;
  font-size:11px;
  font-weight:600;
  transition:none;
}
.account-add-button{border-color:#4b4e56;background:#303238;color:#f2f3f5}
.account-add-button svg,.sender-bulk-toggle svg{width:15px;height:15px;stroke-width:1.8}
.account-add-button:hover,.sender-bulk-toggle:hover{border-color:#5c6069;background:#37393f;color:#fff}
.account-add-button:active,.sender-bulk-toggle:active{transform:none}
.sender-bulk-actions{min-width:0;margin-left:auto;gap:6px}
.sender-bulk-actions>span{font-size:11px}
.sender-bulk-actions>button{height:32px;padding:0 10px;border-radius:var(--picker-radius-compact);font-size:11px}
.account-switcher__shortcuts{display:none}
.sender-empty{height:100%;min-height:140px;padding:24px}
.sender-empty strong{color:#d4d6dc;font-size:13px;font-weight:600}
.sender-empty span{color:#858b96;font-size:11px}

/* Keep the folder-management workflow in the same flat visual language. */
.account-folder-dialog,.sender-folder-dialog,.private-account-dialog{border-radius:10px;background:#232428;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.account-folder-dialog::backdrop,.sender-folder-dialog::backdrop,.private-account-dialog::backdrop{background:rgba(0,0,0,.68);backdrop-filter:none}
.account-folder-card,.sender-folder-card{background:#232428}
.account-folder-dialog__header>div>span,.private-account-header>div>span{display:none}
.account-folder-dialog__header h2,.private-account-header h2{margin:0;font-size:18px;font-weight:600;line-height:24px}
.account-folder-dialog__header>button,.private-account-header button{border-radius:4px;background:transparent}
.account-folder-dialog__header>button:hover,.private-account-header button:hover{background:#35373c}
.account-folder-dialog__footer button,.sender-folder-dialog__footer button,.private-account-footer button{border-radius:6px;font-weight:600}
.account-folder-dialog__footer button:hover,.sender-folder-dialog__footer button:hover{filter:none}
.private-account-copy{padding:0;border:0;background:transparent;color:#949ba4}
.private-account-field>span,.proxy-field>legend{text-transform:none;letter-spacing:0}
.private-account-field input:focus,.private-account-field select:focus{box-shadow:none}
.sender-folder-membership{border-radius:6px;background:#1e1f22}
.sender-folder-empty{border-style:solid;border-radius:6px}

@media(max-width:760px){
  .account-switcher-scrim{background:rgba(0,0,0,.55);backdrop-filter:none}
  .account-switcher-popover{position:fixed;right:0;bottom:0;left:0;width:100%;height:min(680px,88dvh);max-height:88dvh;padding-bottom:env(safe-area-inset-bottom);border-radius:10px 10px 0 0}
  .account-switcher__header{min-height:54px;padding:9px 10px 9px 12px}
  .account-switcher__heading>strong{font-size:15px}
  .account-folder-bar{padding:6px 8px 0}
  .account-folder-create{min-width:106px;width:auto;padding:0 9px}
  .account-folder-create>span{display:inline}
  .account-folder-tab{min-height:34px;font-size:12px}
  .account-folder-manage{height:34px}
  .account-search{position:relative;z-index:auto;top:auto;margin:7px 8px;background:var(--picker-bg)}
  .account-search>input{height:42px;font-size:16px}
  .account-switcher-list{max-height:none;padding:0 6px 8px}
  .account-switcher__footer{display:grid;padding:8px 10px max(8px,env(safe-area-inset-bottom))}
  .account-switcher__footer-main{display:flex;flex-wrap:wrap}
  .account-add-button,.sender-bulk-toggle{height:44px;flex:1 1 170px}
  .sender-bulk-actions{width:100%;margin-left:0}
  .sender-bulk-actions>button{height:40px}
}
@media(max-width:560px){
  .account-folder-tab>span{max-width:112px}
  .sender-row{grid-template-columns:minmax(0,1fr) repeat(3,auto);column-gap:1px;min-height:56px}
  .sender-row.is-bulk-mode{grid-template-columns:auto minmax(0,1fr) repeat(3,auto)}
  .account-option{min-height:54px;gap:8px;padding-right:4px;padding-left:6px}
  .sender-row__avatar{width:36px;height:36px}
  .sender-row__copy strong{font-size:13px}
  .sender-folders{position:relative;width:76px;min-width:76px;height:36px;padding:0 7px}
  .sender-folders__label{display:inline}
  .sender-folders>b{position:absolute;right:-2px;bottom:-2px;display:grid;min-width:16px;height:16px;place-items:center;padding:0 3px;border:2px solid var(--picker-bg);border-radius:var(--picker-radius-compact);background:#4b4f58;color:#fff;font-size:8px}
  .sender-favorite,.sender-manage{width:36px;height:36px}
  .account-add-button,.sender-bulk-toggle{flex-basis:135px}
}
@media(min-width:761px) and (max-height:800px){
  .account-switcher__header{min-height:50px;padding-top:7px;padding-bottom:7px}
  .account-folder-bar{padding-top:5px}
  .account-search{margin-top:6px;margin-bottom:6px}
  .account-search>input{height:36px}
  .sender-row{min-height:48px}
  .account-option{min-height:46px}
  .sender-row__avatar{width:34px;height:34px}
  .account-switcher__footer{min-height:44px;padding-top:6px;padding-bottom:6px}
}
@media(prefers-reduced-motion:reduce){
  .account-switcher-popover{animation:none}
}

/* Composer emoji catalogue: standard emoji first, current guild emoji second. */
.emoji-popover{
  width:min(252px,calc(100vw - 24px));
  max-height:min(370px,calc(100vh - 110px));
  grid-template-columns:1fr;
  gap:9px;
  overflow-y:auto;
  scrollbar-color:#4e5058 transparent;
  scrollbar-width:thin;
}
.emoji-popover__section{display:grid;min-width:0;gap:5px}
.emoji-popover__section+.emoji-popover__section{padding-top:8px;border-top:1px solid #2e3035}
.emoji-popover__title{overflow:hidden;color:#949ba4;font-size:9px;font-weight:800;letter-spacing:.035em;text-overflow:ellipsis;white-space:nowrap}
.emoji-popover__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.emoji-popover__empty{padding:5px 2px;color:#6d6f78;font-size:9px;line-height:14px}
.emoji-option__image{width:25px;height:25px;border-radius:3px;object-fit:contain}
.message-reaction-option.is-locked,.emoji-option.is-locked{opacity:.32;filter:grayscale(1);cursor:not-allowed}
.message-reaction-option.is-locked:hover,.emoji-option.is-locked:hover{background:transparent;transform:none}

/* Admin statistics: compact, flat and visible only for the configured owner. */
.header-admin-button{display:inline-flex;height:34px;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid #44474f;border-radius:6px;background:#25262a;color:#cfd2d8;font-size:11px;font-weight:650;white-space:nowrap}.header-admin-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-admin-button:hover{border-color:#5b5f68;background:#303238;color:#fff}.header-admin-button:focus-visible{outline:2px solid #5865f2;outline-offset:2px}
.admin-panel-dialog{width:min(680px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:hidden;border:1px solid #41444c;border-radius:10px;background:#1e1f22;color:#f2f3f5;box-shadow:0 18px 56px rgba(0,0,0,.62)}.admin-panel-dialog::backdrop{background:rgba(0,0,0,.7)}
.admin-panel-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 24px);background:#1e1f22}.admin-panel-header{display:flex;min-height:78px;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 18px 14px;border-bottom:1px solid #303238}.admin-panel-header>div{display:grid;min-width:0;gap:2px}.admin-panel-header span{color:#858a94;font-size:9px;font-weight:750;letter-spacing:.08em}.admin-panel-header h2{margin:0;color:#f2f3f5;font-size:20px;font-weight:650;line-height:26px}.admin-panel-header p{margin:0;color:#9ba0aa;font-size:11px;line-height:17px}.admin-panel-header>button{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:5px;background:transparent;color:#a5aab3;font-size:23px;line-height:1}.admin-panel-header>button:hover{background:#303238;color:#fff}.admin-panel-header>button:focus-visible{outline:2px solid #5865f2;outline-offset:2px}
.admin-panel-content{min-height:0;overflow-y:auto;padding:16px 18px;scrollbar-color:#41444c transparent;scrollbar-width:thin}.admin-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.admin-stat{display:grid;grid-column:span 2;min-width:0;min-height:108px;align-content:space-between;padding:12px;border:1px solid #34373e;border-radius:7px;background:#25262a}.admin-stat--wide{grid-column:span 3}.admin-stat>span{overflow:hidden;color:#aeb2ba;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.admin-stat>strong{margin:6px 0;color:#fff;font-size:29px;font-weight:650;line-height:32px;font-variant-numeric:tabular-nums}.admin-stat>small{color:#797e88;font-size:9px;line-height:14px}.admin-invite-breakdown{display:grid;margin:14px 0 0;border:1px solid #34373e;border-radius:7px;background:#202125}.admin-invite-breakdown>div{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:14px;padding:0 12px}.admin-invite-breakdown>div+div{border-top:1px solid #303238}.admin-invite-breakdown dt{color:#a9adb6;font-size:11px}.admin-invite-breakdown dd{margin:0;color:#f2f3f5;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.admin-panel-error{margin:12px 0 0;padding:9px 10px;border:1px solid rgba(242,63,67,.36);border-radius:6px;background:rgba(242,63,67,.09);color:#ffb4b7;font-size:11px;line-height:16px}.admin-panel-footer{display:flex;min-height:56px;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid #303238;background:#202125}.admin-panel-footer small{overflow:hidden;color:#7f848e;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.admin-panel-footer button{display:inline-flex;height:34px;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:1px solid #494c55;border-radius:6px;background:#2b2d31;color:#e0e2e6;font-size:11px;font-weight:650}.admin-panel-footer button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.admin-panel-footer button:hover{border-color:#626670;background:#35373c;color:#fff}.admin-panel-footer button:disabled{cursor:wait;opacity:.55}.admin-panel-content[aria-busy="true"] .admin-stat strong,.admin-panel-content[aria-busy="true"] .admin-invite-breakdown dd{color:#777c85}
@media(max-width:620px){.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-stat,.admin-stat--wide{grid-column:span 1}.admin-stat{min-height:100px}.admin-stat:last-child{grid-column:1/-1}.admin-panel-header{padding-right:12px;padding-left:14px}.admin-panel-content{padding:12px 14px}.admin-panel-footer{padding-right:14px;padding-left:14px}}

/* Mobile workspace: one useful column, touch-sized controls, no viewport leaks. */
@media(max-width:760px){
  :root{--head-h:54px}
  html,body{overscroll-behavior:none;background:var(--main)}
  button,input,textarea,select{-webkit-tap-highlight-color:transparent}
  input,textarea,select{font-size:16px!important}
  .app-shell{width:100%;height:100svh;height:100dvh;grid-template-columns:minmax(0,1fr)}
  .chat-panel{grid-column:1;grid-template-rows:calc(var(--head-h) + env(safe-area-inset-top)) minmax(0,1fr) auto}
  .chat-header{height:calc(var(--head-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-right:max(6px,env(safe-area-inset-right));padding-left:max(4px,env(safe-area-inset-left))}
  .chat-header .icon-button,.mobile-only{width:44px;height:44px;flex:0 0 auto}
  .channel-heading{overflow:hidden}.channel-heading strong{font-size:15px;line-height:20px}
  .header-actions{min-width:0;gap:0;margin-left:2px}
  .sync-status{max-width:70px;overflow:hidden}
  .channel-sidebar{top:0;bottom:0;left:0;width:min(86vw,320px);height:100dvh;grid-template-rows:calc(var(--head-h) + env(safe-area-inset-top)) auto minmax(0,1fr) auto;padding-left:env(safe-area-inset-left);transform:translateX(-105%)}
  .channel-sidebar .server-header{height:calc(var(--head-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .channel-search-wrap{height:52px;margin:6px 10px 2px}.channel-search-wrap input{height:42px}.channel-search-wrap kbd{display:none}
  .channel-button{min-height:44px;padding-right:11px;padding-left:11px;font-size:15px}
  .category-label{min-height:34px}.sidebar-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .mobile-scrim,.mobile-member-scrim{inset:0;background:rgba(8,9,12,.68);touch-action:none}
  .member-sidebar{top:0;right:0;bottom:0;width:min(88vw,320px);height:100dvh;grid-template-rows:calc(var(--head-h) + env(safe-area-inset-top)) auto minmax(0,1fr) auto;padding-right:env(safe-area-inset-right)}
  .member-header{height:calc(var(--head-h) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .member-search-wrap{height:52px}.member-search-wrap input{height:42px}.member-item{min-height:48px}.member-panel-close{width:44px;height:44px}
  .member-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .messages{padding-bottom:12px;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
  .channel-intro{padding:32px 13px 14px}.channel-intro__icon{width:52px;height:52px;font-size:29px}.channel-intro h2{font-size:23px}
  .message-group{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:5px 11px}.message-group.is-compact{padding-top:2px;padding-bottom:2px}
  .message-avatar{width:36px;height:36px}.message-group.is-compact .message-avatar{width:38px}
  .message-meta{min-width:0;flex-wrap:wrap;gap:3px 5px}.message-author{max-width:min(58vw,260px)}.message-content{font-size:15px;line-height:1.45}
  .message-reply:before{width:17px;margin-left:-25px}.message-image-button,.message-image-button img{max-height:55dvh}.message-video{max-height:55dvh}
  .rich-embed,.message-poll,.message-audio,.file-card{width:100%;max-width:100%}.rich-embed__field.is-inline{grid-column:1/-1}
  .message-actions{gap:2px}.message-action{width:38px;height:36px}.message-reaction{min-height:30px}
  .message-reaction-picker{right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:8px!important;top:auto!important;width:auto;max-height:min(58dvh,430px);padding:10px}
  .message-reaction-options{grid-template-columns:repeat(7,minmax(0,1fr))}.message-reaction-option{width:100%;height:38px}
  .composer-wrap{padding:5px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .composer-meta{min-width:0;min-height:40px;padding-bottom:4px}.sender-trigger{min-width:0;max-width:min(72vw,285px);min-height:40px}.sender-avatar{width:31px;height:31px}
  .composer{min-height:52px;border-radius:10px}.composer>.composer-icon-button{width:42px;height:42px;margin:4px 0 4px 3px}
  .composer textarea{min-height:50px;max-height:min(34dvh,180px);padding:13px 5px 10px;line-height:1.35}
  .composer-tools{gap:0;margin:4px 4px 4px 0}.composer-tools .composer-icon-button{width:40px;height:42px}.send-button{width:42px;height:42px;margin-left:1px}
  .composer-tools #mention-toggle,.composer-tools #gif-button,.character-count,.composer-hint{display:none}
  .composer-tools #emoji-button{display:grid}
  .jump-bottom{right:max(10px,env(safe-area-inset-right));bottom:calc(108px + env(safe-area-inset-bottom));min-height:38px}
  .emoji-popover{position:fixed;right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;width:auto;max-height:min(60dvh,440px);padding:11px;border-radius:12px}
  .emoji-popover__grid{grid-template-columns:repeat(7,minmax(0,1fr))}.emoji-option{width:100%;height:40px}.emoji-option__image{width:28px;height:28px}
  .gif-popover{max-height:calc(100dvh - 16px);overflow-y:auto}.gif-form{grid-template-columns:minmax(0,1fr)}.gif-form button{height:42px}
  .account-switcher-popover{height:min(720px,92dvh);max-height:92dvh;border-radius:14px 14px 0 0}
  .account-switcher__header{min-height:56px;padding-right:max(10px,env(safe-area-inset-right));padding-left:max(12px,env(safe-area-inset-left))}.account-switcher__header button{width:42px;height:42px}
  .account-folder-tabs{scroll-snap-type:x proximity}.account-folder-chip{scroll-snap-align:start}.account-folder-tab{min-height:40px}.account-folder-manage,.account-folder-create{height:40px}
  .account-search{margin:6px 8px}.account-search>input{height:44px}.account-switcher-list{padding-right:5px;padding-left:5px}
  .sender-row{min-height:58px}.account-option{min-height:56px}.sender-favorite,.sender-manage{width:42px;height:42px}
  .account-switcher__footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}.account-add-button,.sender-bulk-toggle{min-height:44px}
  .forum-composer,.private-account-dialog,.account-folder-dialog,.sender-folder-dialog,.admin-panel-dialog{width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top));margin:auto 0 0;border-radius:14px 14px 0 0}
  .forum-composer__card,.private-account-card,.account-folder-card,.sender-folder-card{max-height:calc(100dvh - env(safe-area-inset-top));padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto}
  .admin-panel-card{max-height:calc(100dvh - env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom)}.admin-panel-header{padding-top:15px}.admin-panel-header>button{width:42px;height:42px}.admin-panel-footer button{height:42px}.header-admin-button{width:44px;height:44px;padding:0}.header-admin-button>span{display:none}.header-admin-button svg{width:18px;height:18px}
  .forum-composer__header button,.private-account-header button,.account-folder-dialog__header>button{width:42px;height:42px}
  .forum-composer__field input,.private-account-field input,.private-account-field select{height:46px}.forum-composer__footer,.private-account-footer{position:sticky;bottom:0;padding-top:8px;background:#232428}
  .image-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;padding:calc(52px + env(safe-area-inset-top)) 8px calc(48px + env(safe-area-inset-bottom));border-radius:0}.viewer-close{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:40px;height:40px}
  .toast-stack{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));width:auto}.toast{min-height:60px}
}
@media(max-width:420px){
  .login-screen{place-items:center;overflow:hidden;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
  .login-card{width:100%;max-height:calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));margin:0;padding:24px 20px;border-radius:14px}.login-card .brand-mark{width:54px;height:54px;margin-bottom:18px;border-radius:16px}.login-card h1{font-size:24px}.login-subtitle{font-size:13px;line-height:19px}
  .sync-status,#refresh-messages{display:none}.channel-heading strong{font-size:14px}
  .draft-status,.channel-destination{display:none}.sender-trigger{max-width:calc(100vw - 18px)}
  .message-group{grid-template-columns:34px minmax(0,1fr);gap:8px;padding-right:8px;padding-left:8px}.message-avatar{width:32px;height:32px}.message-group.is-compact .message-avatar{width:34px}.message-author{max-width:55vw}
  .message-reaction-options,.emoji-popover__grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .sender-row{grid-template-columns:minmax(0,1fr) repeat(3,40px);overflow:hidden}.sender-folders{width:68px;min-width:68px}.sender-folders>b{right:1px;bottom:1px}
  .account-switcher__footer-main{display:grid;grid-template-columns:1fr 1fr;width:100%}.account-add-button,.sender-bulk-toggle{min-width:0;padding:0 7px;font-size:10px}.sender-bulk-actions{grid-column:1/-1}
  .forum-composer__footer,.private-account-footer{grid-template-columns:1fr 1fr}.forum-composer__cancel,.forum-composer__submit,.private-account-footer button{width:100%;height:44px}
  .admin-stat-grid{grid-template-columns:1fr}.admin-stat,.admin-stat--wide,.admin-stat:last-child{grid-column:1}.admin-stat{min-height:90px}.admin-stat>strong{font-size:26px}.admin-panel-footer{align-items:flex-start;flex-direction:column}.admin-panel-footer button{width:100%}
}
@media(max-width:360px){
  .chat-header .icon-button,.mobile-only{width:40px}.member-panel-toggle{width:40px}.channel-heading strong{font-size:13px}
  .message-meta time{width:100%}.message-author{max-width:62vw}
  .sender-row__avatar{width:34px;height:34px}.sender-row__copy small{font-size:10px}.sender-folders{width:42px;min-width:42px;padding:0}.sender-folders__label{display:none}.sender-favorite,.sender-manage{width:40px}
  .account-folder-create{min-width:42px}.account-folder-create>span{display:none}
}
@media(max-height:520px) and (max-width:760px){
  .login-screen{place-items:start center;overflow:hidden}.login-card{margin:8px auto;max-height:calc(100dvh - 16px);overflow-y:auto}
  .account-switcher-popover{height:100dvh;max-height:100dvh;border-radius:0}.account-switcher__header{padding-top:max(6px,env(safe-area-inset-top))}
  .forum-composer,.private-account-dialog,.account-folder-dialog,.sender-folder-dialog,.admin-panel-dialog{height:100dvh;max-height:100dvh;border-radius:0}
  .admin-panel-card{height:100dvh;max-height:100dvh}
}

/* Sender status indicators reflect live account availability. */
.sender-row__presence,.sender-presence{display:block}
