:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;color:#e8eef9;background:#0b1120;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}#root{min-height:100dvh}.chat-layout{color:#e8eef9;background:#0b1120;grid-template-columns:280px minmax(0,1fr);height:100dvh;min-height:460px;display:grid}.chat-sidebar{background:#111b2e;border-right:1px solid #283852;flex-direction:column;min-width:0;display:flex}.brand{border-bottom:1px solid #283852;align-items:center;gap:14px;padding:24px 20px;display:flex}.brand-icon{background:#2563eb;border-radius:14px;flex-shrink:0;place-items:center;width:46px;height:46px;font-size:26px;font-weight:800;display:grid}.brand h1{margin:0;font-size:20px}.brand p{color:#9baecb;margin:4px 0 0;font-size:12px}.sidebar-content{flex:1;min-height:0;padding:22px 12px;overflow-y:auto}.sidebar-heading{letter-spacing:1.4px;color:#94a7c4;margin:0 10px 12px;font-size:11px;font-weight:700}.room-list{gap:7px;display:grid}.room-item{text-align:left;color:#d6e3f9;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:12px;width:100%;padding:12px;display:flex}.room-item:hover{background:#1a2942}.room-item.selected{background:#1c3455;border-color:#315784}.room-icon{color:#b7d5ff;background:#284669;border-radius:9px;flex-shrink:0;place-items:center;width:36px;height:36px;font-size:22px;display:grid}.room-item strong,.room-item small{display:block}.room-item strong{font-size:14px}.room-item small{color:#91a8c8;margin-top:4px;font-size:11px}.online-panel{border-top:1px solid #29394f;margin-top:25px;padding-top:22px}.online-user{overflow-wrap:anywhere;align-items:center;gap:10px;padding:9px 12px;font-size:13px;display:flex}.online-dot{background:#34d399;border-radius:50%;flex-shrink:0;width:9px;height:9px}.offline-dot{background:#f87171}.sidebar-muted{color:#92a6c2;margin:6px 10px;font-size:12px}.sidebar-footer{color:#aabbd3;border-top:1px solid #283852;align-items:center;gap:10px;padding:18px;font-size:12px;display:flex}.chat-main{flex-direction:column;min-width:0;min-height:0;display:flex}.chat-header{background:#101a2c;border-bottom:1px solid #26354c;justify-content:space-between;align-items:center;gap:16px;padding:20px 28px;display:flex}.chat-header h2{margin:0;font-size:20px}.chat-header p{color:#9baecb;margin:6px 0 0;font-size:13px}.connection-badge{white-space:nowrap;border-radius:18px;padding:8px 12px;font-size:12px}.connection-badge.online{color:#86efac;background:#12362e}.connection-badge.offline{color:#fda4af;background:#3b2026}.message-area{flex-direction:column;flex:1;gap:20px;min-height:0;padding:28px;display:flex;overflow-y:auto}.empty-chat,.join-panel{text-align:center;max-width:360px;margin:auto}.empty-icon{margin-bottom:10px;font-size:42px}.empty-chat h3,.join-panel h3{margin-bottom:8px;font-size:21px}.empty-chat p,.join-panel p{color:#a3b4cb;line-height:1.7}.join-form{text-align:left;gap:12px;margin:20px 0 0;display:grid}.join-form label{color:#a8bad2;font-size:13px}.join-form input{color:#fff;background:#0b1425;border:1px solid #354763;border-radius:10px;width:100%;padding:13px 15px}.join-form button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:13px}.join-form button:disabled{opacity:.5;cursor:not-allowed}.message-row{align-items:flex-end;gap:12px;max-width:75%;display:flex}.message-row.mine{align-self:flex-end}.message-row.other{align-self:flex-start}.message-avatar{color:#c8ddff;background:#334d72;border-radius:50%;flex-shrink:0;place-items:center;width:38px;height:38px;font-size:12px;font-weight:700;display:grid}.message-content{min-width:0}.message-info{color:#d5e3fb;align-items:center;gap:12px;margin-bottom:7px;font-size:12px;display:flex}.message-info time{color:#91a3bd;font-size:11px}.message-bubble{overflow-wrap:anywhere;white-space:pre-wrap;background:#1e314d;border:1px solid #2e4867;border-radius:15px 15px 15px 4px;padding:13px 17px;font-size:14px;line-height:1.65}.mine .message-info{justify-content:flex-end}.mine .message-bubble{color:#fff;background:#2563eb;border-color:#3b82f6;border-radius:15px 15px 4px}.chat-composer{background:#101a2c;border-top:1px solid #26354c;padding:12px 28px 20px}.typing-line{color:#93c5fd;height:22px;font-size:12px}.message-input-row{gap:10px;display:flex}.message-input-row input{color:#fff;background:#0b1425;border:1px solid #354763;border-radius:10px;flex:1;min-width:0;padding:13px 15px}.message-input-row button{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:10px;padding:0 22px;font-weight:600}.message-input-row button:hover:not(:disabled){background:#3b82f6}.message-input-row button:disabled{opacity:.5;cursor:not-allowed}.composer-footer{color:#aec0da;justify-content:space-between;gap:10px;margin-top:9px;font-size:12px;display:flex}.composer-hint{text-align:right;color:#8193b0;margin:11px 0 0;font-size:11px}.connection-error{color:#fda4af;font-size:13px}button:focus-visible,input:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}@media (width<=760px){.chat-layout{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.chat-sidebar{border-bottom:1px solid #283852;border-right:0}.brand{padding:10px 16px}.brand-icon{border-radius:9px;width:34px;height:34px;font-size:20px}.brand h1{font-size:16px}.brand p{display:none}.sidebar-content{flex:none;padding:6px 9px 10px;overflow:visible}.sidebar-heading,.online-panel,.sidebar-footer{display:none}.room-list{display:flex;overflow-x:auto}.room-item{flex:none;width:auto;padding:8px 11px}.room-icon{width:28px;height:28px;font-size:16px}.room-item small{display:none}.chat-header{padding:13px 16px}.chat-header h2{font-size:17px}.chat-header p{font-size:11px}.connection-badge{padding:7px;font-size:11px}.message-area{padding:16px}.message-row{max-width:91%}.chat-composer{padding:9px 14px 15px}.message-input-row button{padding:0 14px}.composer-hint{text-align:left}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.auth-page{color:#e8eef9;background:#0b1120;place-items:center;min-height:100dvh;padding:24px;display:grid}.auth-card{background:#111b2e;border:1px solid #2b3b55;border-radius:22px;width:min(100%,430px);padding:32px;box-shadow:0 24px 70px #0005}.auth-mark{background:#2563eb;border-radius:15px;place-items:center;width:52px;height:52px;font-size:28px;font-weight:800;display:grid}.auth-card h1{margin:16px 0 6px;font-size:30px}.auth-subtitle,.auth-help,.auth-footnote{color:#9cadc6}.auth-subtitle{margin:0 0 24px}.auth-switch{background:#0b1425;border-radius:12px;gap:6px;margin-bottom:24px;padding:5px;display:flex}.auth-switch button{color:#aabbce;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;padding:11px;font-weight:700}.auth-switch button[aria-pressed=true]{color:#fff;background:#234b83}.auth-form{flex-direction:column;gap:10px;display:flex}.auth-form label{color:#d5e4fa;font-size:13px;font-weight:600}.auth-form input{color:#fff;background:#0b1425;border:1px solid #354763;border-radius:10px;outline:none;width:100%;margin-bottom:8px;padding:14px}.auth-form input:focus{border-color:#60a5fa}.auth-help{margin:0 0 10px;font-size:12px;line-height:1.5}.auth-error{color:#fda4af;font-size:13px;line-height:1.5}.auth-submit{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;margin-top:6px;padding:14px;font-weight:700}.auth-submit:disabled{opacity:.6;cursor:default}.auth-footnote{text-align:center;margin-top:22px;font-size:11px}.account-footer{gap:8px}.account-label{overflow-wrap:anywhere;flex:1;min-width:0}.account-footer button{color:#e8eef9;cursor:pointer;background:#1b304d;border:1px solid #405678;border-radius:8px;padding:8px 10px;font-size:12px}.account-footer button:disabled{opacity:.5}@media (width<=420px){.auth-card{padding:22px}.account-footer{flex-wrap:wrap}}.auth-notice{color:#c2e3ff;background:#152f4d;border:1px solid #315d88;border-radius:10px;padding:11px 12px;font-size:13px;line-height:1.55}.auth-recovery{background:#162b46;border:1px solid #3a608e;border-radius:12px;margin-top:16px;padding:16px}.auth-recovery strong{color:#eaf2ff;font-size:14px}.auth-recovery p{color:#b1c6e1;margin:8px 0 14px;font-size:13px;line-height:1.5}.auth-recovery button{color:#fff;cursor:pointer;background:#214b80;border:1px solid #7bb5ff;border-radius:9px;width:100%;padding:12px;font-weight:700}.auth-recovery button:disabled{opacity:.6;cursor:wait}.auth-recovery button:focus-visible{outline-offset:3px;outline:2px solid #bfdbfe}.profile-avatar{color:#fff;letter-spacing:.02em;background:#335b94;border-radius:50%;flex:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;font-weight:750;display:inline-flex;position:relative;overflow:hidden}.profile-avatar img{object-fit:cover;border-radius:inherit;width:100%;height:100%;position:absolute;inset:0}.message-avatar.profile-avatar{width:36px;height:36px}.online-avatar.profile-avatar{width:26px;height:26px;font-size:10px}.account-avatar.profile-avatar{width:36px;height:36px}.account-label{flex-direction:column;gap:2px;display:flex}.account-label strong{font-size:13px;line-height:1.2}.account-label small{color:#90a8c8;font-size:11px}.settings-overlay{z-index:20;background:#030814bb;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.settings-panel{color:#ebf3ff;background:#111b2e;border:1px solid #39527a;border-radius:20px;width:min(100%,470px);max-height:min(92dvh,750px);padding:24px;overflow-y:auto;box-shadow:0 25px 100px #0008}.settings-top{justify-content:space-between;align-items:start;gap:12px;display:flex}.settings-top h2{margin:0;font-size:23px}.settings-top p{color:#a3b8d8;margin:7px 0 0;font-size:13px}.settings-close{color:#fff;cursor:pointer;background:#1b304d;border:1px solid #3b5476;border-radius:9px;width:34px;height:34px;font-size:24px}.settings-preview{align-items:center;gap:16px;margin:25px 0;display:flex}.settings-preview strong{overflow-wrap:anywhere;font-size:18px;display:block}.settings-preview small{color:#9fb5d5;margin-top:5px;font-size:12px;display:block}.settings-photo{object-fit:cover;color:#fff;background:#30578a;border-radius:50%;flex-shrink:0;width:80px;height:80px;font-size:24px;display:inline-flex}.settings-form{flex-direction:column;gap:9px;display:flex}.settings-form label{color:#d5e5fa;font-size:13px;font-weight:700}.settings-form input[type=text],.settings-form input:not([type]){color:#fff;background:#0b1425;border:1px solid #3c5375;border-radius:9px;width:100%;padding:12px}.settings-form input[type=file]{color:#cbd9f1;max-width:100%;font-size:12px}.settings-help{color:#9fb1d0;margin:0 0 12px;font-size:12px;line-height:1.5}.settings-actions{flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:12px;display:flex}.settings-actions button{color:#fff;cursor:pointer;border:1px solid #4b6791;border-radius:9px;padding:11px 14px;font-weight:700}.settings-remove{background:#273245}.settings-save{background:#2563eb}.settings-actions button:disabled{opacity:.5;cursor:default}.settings-panel button:focus-visible,.settings-panel input:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}@media (width<=450px){.settings-panel{padding:18px}.account-footer{flex-wrap:wrap}}.password-settings{border-top:1px solid #354b6c;margin-top:26px;padding-top:22px}.password-settings h3{color:#eaf3ff;margin:0 0 8px;font-size:17px}.password-settings .settings-form input[type=password]{color:#fff;background:#0b1425;border:1px solid #3c5375;border-radius:9px;width:100%;padding:12px}.password-settings .settings-actions{justify-content:flex-end}.password-settings .settings-help{margin-top:3px}.room-unread{color:#fff;background:#2563eb;border-radius:999px;flex:none;place-items:center;min-width:23px;height:23px;margin-left:auto;padding:0 5px;font-size:11px;font-weight:800;display:inline-grid}.message-actions{flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px;display:flex}.message-actions button,.message-edit-form button{color:#d9e7ff;cursor:pointer;font:inherit;background:#172a46;border:1px solid #3c5478;border-radius:8px;padding:5px 8px;font-size:11px}.message-actions button:hover:not(:disabled),.message-edit-form button:hover:not(:disabled){background:#28456d}.message-actions button:focus-visible,.message-edit-form button:focus-visible,.message-edit-form input:focus-visible{outline-offset:2px;outline:2px solid #93c5fd}.message-actions button:disabled,.message-edit-form button:disabled{opacity:.5;cursor:default}.message-actions .reaction-button.selected{color:#fff;background:#1d4c81;border-color:#60a5fa}.message-edited{opacity:.7;white-space:nowrap;font-size:11px;font-style:italic}.message-deleted{opacity:.68;font-style:italic}.message-edit-form{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.message-edit-form input{color:#fff;background:#09192e;border:1px solid #5076a8;border-radius:7px;flex:1;min-width:120px;padding:8px}@media (width<=450px){.message-actions{gap:4px}.message-actions button{padding:5px 6px}}.message-actions .reaction-trigger{border-radius:9px;justify-content:center;align-items:center;gap:1px;min-width:38px;height:30px;padding:3px 7px;font-size:19px;line-height:1;display:inline-flex}.reaction-add-plus{align-self:flex-start;font-size:12px;font-weight:800}.message-actions .reaction-button{border-radius:999px;align-items:center;gap:5px;min-height:30px;padding:5px 10px;font-size:14px;line-height:1;display:inline-flex}.message-actions .reaction-button span{font-size:11px;font-weight:700}.reaction-picker-popover{z-index:1000;color:#edf4ff;background:#111e33;border:1px solid #415a7e;border-radius:14px;flex-direction:column;height:min(310px,100dvh - 24px);display:flex;position:fixed;overflow:hidden;box-shadow:0 18px 50px #00000073}.reaction-picker-header{border-bottom:1px solid #304663;flex:none;justify-content:space-between;align-items:center;padding:11px 14px;font-size:13px;display:flex}.reaction-picker-header button{color:#bacbe6;cursor:pointer;background:0 0;border:0;border-radius:6px;min-width:28px;min-height:28px;font-size:22px;line-height:1}.reaction-picker-scroll{flex:1;min-height:0;padding:8px 12px 12px;overflow-y:auto}.reaction-picker-category{margin-bottom:10px}.reaction-picker-category-title{color:#a7bfde;text-transform:uppercase;letter-spacing:.06em;padding:6px 2px;font-size:11px;font-weight:800}.reaction-picker-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;display:grid}.reaction-picker-emoji{cursor:pointer;background:0 0;border:0;border-radius:9px;place-items:center;min-width:0;height:38px;font-size:23px;display:grid}.reaction-picker-emoji:hover:not(:disabled),.reaction-picker-header button:hover{background:#2b476c}.reaction-picker-emoji:disabled{opacity:.45;cursor:default}.reaction-picker-emoji:focus-visible,.reaction-picker-header button:focus-visible{outline-offset:-2px;outline:2px solid #93c5fd}.reaction-picker-popover{z-index:9999;visibility:visible;opacity:1}.direct-panel{margin-top:22px}.direct-user-search{box-sizing:border-box;color:#eef4ff;width:100%;font:inherit;outline-offset:3px;background:#0d1728;border:1px solid #334865;border-radius:10px;padding:10px 12px}.direct-user-search:focus{border-color:#568eff}.direct-search-results{background:#131f32;border:1px solid #344768;border-radius:10px;max-height:230px;margin-top:6px;padding:5px;overflow-y:auto}.direct-result,.direct-entry{color:#f0f5ff;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;min-width:0;padding:9px 8px;display:flex}.direct-result:hover,.direct-entry:hover,.direct-entry.selected{background:#223b62}.direct-entry.selected{outline:1px solid #3666b7}.direct-result .profile-avatar,.direct-entry .profile-avatar,.direct-chat-heading .profile-avatar{flex:0 0 34px;width:34px;height:34px}.direct-result span:not(.profile-avatar),.direct-entry-label{flex:1;min-width:0}.direct-result strong,.direct-entry strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;display:block;overflow:hidden}.direct-result small,.direct-entry small{color:#a1b7d7;white-space:nowrap;text-overflow:ellipsis;font-size:11px;display:block;overflow:hidden}.direct-list{max-height:320px;margin:7px 0 0;overflow-y:auto}.direct-chat-heading{align-items:center;gap:12px;min-width:0;display:flex}.direct-chat-heading h2{margin:0}.direct-chat-heading p{margin:3px 0 0}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.dm-reply-quote{background:#6495ed1a;border-left:3px solid #72a8fa;border-radius:7px;flex-direction:column;gap:3px;max-width:100%;margin:4px 0 6px;padding:7px 10px;display:flex;overflow:hidden}.dm-reply-quote strong{color:#a9cdff;font-size:11px}.dm-reply-quote span{color:#c5d5e7;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.dm-reply-composer{background:#172640;border-left:3px solid #72a8fa;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px;padding:9px 12px;display:flex}.dm-reply-composer div{flex-direction:column;gap:4px;min-width:0;display:flex}.dm-reply-composer strong{color:#c8ddff;font-size:12px}.dm-reply-composer span{color:#a6b9d5;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.dm-reply-composer button{color:#dceafa;cursor:pointer;background:0 0;border:0;padding:4px 9px;font-size:20px}.dm-reply-composer button:hover{background:#294263;border-radius:6px}.dm-avatar-wrapper{flex:0 0 34px;height:34px;display:inline-flex;position:relative}.dm-presence-dot{background:#71849a;border:2px solid #152239;border-radius:50%;width:11px;height:11px;position:absolute;bottom:-1px;right:-1px}.dm-presence-dot.online{background:#34d399}.dm-status-online{color:#56e3aa}.dm-receipt{color:#99b7dc;text-align:right;margin:4px 3px 2px;font-size:11px;display:block}.dm-privacy-choice{color:#ddeaff;cursor:pointer;align-items:center;gap:9px;padding:12px 0;font-size:13px;display:flex}.dm-privacy-choice input{accent-color:#72a8fa;flex:0 0 16px;width:16px;height:16px}.dm-privacy-choice:has(input:disabled){opacity:.6;cursor:wait}.image-upload-control{cursor:pointer;-webkit-user-select:none;user-select:none;background:#ffffff0e;border:1px solid #91a5c859;border-radius:12px;justify-content:center;align-items:center;width:44px;min-width:44px;height:43px;font-size:20px;display:inline-flex;position:relative}.image-upload-control:hover{background:#91a5c829}.image-upload-control.disabled{opacity:.45;cursor:not-allowed}.image-upload-control:focus-within{outline-offset:2px;outline:2px solid #72a5ff}.image-upload-control input{opacity:0;cursor:pointer;width:100%;height:100%;font-size:0;position:absolute;inset:0}.image-upload-control input:disabled{cursor:not-allowed}.shared-image-button{cursor:zoom-in;background:0 0;border:none;border-radius:12px;max-width:min(100%,320px);padding:0;display:block;overflow:hidden}.shared-image-button img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:320px;display:block}.shared-image-button:hover{filter:brightness(1.06)}.shared-image-button:focus-visible{outline-offset:3px;outline:2px solid #8bb8ff}.image-preview-overlay{z-index:10050;background:#040914ed;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.image-preview-dialog{max-width:min(95vw,1200px);max-height:92vh;position:relative}.image-preview-dialog img{object-fit:contain;border-radius:8px;width:auto;max-width:95vw;height:auto;max-height:88vh;display:block}.image-preview-close{color:#fff;cursor:pointer;background:#26334a;border:1px solid #728198;border-radius:9px;min-width:36px;height:36px;font-size:26px;position:absolute;top:-42px;right:0}.shared-file-card{color:#eaf1ff;background:#283a5ca1;border:1px solid #91a5c866;border-radius:12px;align-items:center;gap:12px;width:min(100%,360px);min-width:0;padding:12px;text-decoration:none;display:flex}.shared-file-card:hover{background:#3f5680a6;border-color:#84b4ff}.shared-file-card:focus-visible{outline-offset:2px;outline:2px solid #8bb8ff}.shared-file-symbol{flex-shrink:0;font-size:26px}.shared-file-details{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.shared-file-details strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.shared-file-details small{color:#b6c6e2;font-size:11px}.shared-file-download{color:#bdd7ff;flex-shrink:0;font-size:22px;line-height:1}.chat-header-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.gallery-open-button{color:#e5f0ff;cursor:pointer;white-space:nowrap;background:#1c3659;border:1px solid #90b1e07a;border-radius:10px;padding:9px 13px;font-size:13px;font-weight:700}.gallery-open-button:hover:not(:disabled){background:#2b4e7b;border-color:#8ab8ff}.gallery-open-button:disabled{opacity:.52;cursor:default}.gallery-open-button:focus-visible,.gallery-refresh:focus-visible,.gallery-close:focus-visible,.gallery-filters button:focus-visible,.gallery-more button:focus-visible,.gallery-photo-button:focus-visible{outline-offset:3px;outline:2px solid #bfdbfe}.gallery-overlay{z-index:10020;background:#020812d1;justify-content:center;align-items:center;padding:22px;display:flex;position:fixed;inset:0}.gallery-dialog{color:#eaf2ff;background:#111f33;border:1px solid #3b5172;border-radius:18px;flex-direction:column;width:min(860px,100%);min-width:0;min-height:260px;max-height:min(90dvh,870px);display:flex;overflow:hidden;box-shadow:0 22px 90px #0009}.gallery-top{justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 24px 15px;display:flex}.gallery-top h2{margin:0 0 5px;font-size:22px}.gallery-top p{color:#afc5e2;margin:0;font-size:13px}.gallery-close{color:#eaf2ff;cursor:pointer;background:#233953;border:1px solid #56749c;border-radius:9px;padding:5px 11px;font-size:24px;line-height:1}.gallery-toolbar{border-bottom:1px solid #344863;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:0 24px 18px;display:flex}.gallery-filters{background:#0c1728;border-radius:10px;flex-wrap:wrap;gap:5px;padding:4px;display:flex}.gallery-filters button,.gallery-refresh{color:#b4c8e6;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:8px 13px;font-size:13px;font-weight:650}.gallery-filters button.selected,.gallery-filters button[aria-pressed=true]{color:#fff;background:#285b9b}.gallery-refresh{color:#d8e8ff;border:1px solid #435c7d}.gallery-refresh:hover:not(:disabled){background:#263f64}.gallery-refresh:disabled{opacity:.5;cursor:wait}.gallery-content{min-height:200px;padding:20px 24px 26px;overflow-y:auto}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:15px;margin:0;padding:0;list-style:none;display:grid}.gallery-entry{background:#1a2b45;border:1px solid #304664;border-radius:12px;flex-direction:column;min-width:0;padding:0;display:flex;overflow:hidden}.gallery-photo-button{cursor:zoom-in;aspect-ratio:1;background:#0d1627;border:0;width:100%;padding:0;display:block}.gallery-photo-button:hover{filter:brightness(1.1)}.gallery-photo-button img{object-fit:cover;width:100%;height:100%;display:block}.gallery-document{justify-content:space-between}.gallery-document .shared-file-card{text-align:center;background:0 0;border:none;border-radius:0;flex-direction:column;justify-content:center;width:100%;min-height:145px;padding:12px}.gallery-document .shared-file-details{flex:none;width:100%}.gallery-document .shared-file-details strong{white-space:normal;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.gallery-document .shared-file-download{font-size:16px}.gallery-item-meta{color:#c6d6ef;border-top:1px solid #a4c1ec1c;flex-direction:column;gap:3px;padding:10px 12px 12px;font-size:12px;display:flex}.gallery-item-meta span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.gallery-item-meta time{color:#91a8ca;font-size:11px}.gallery-state{color:#c8d7ec;text-align:center;padding:24px 0;font-size:13px}.gallery-state button,.gallery-more button{color:#fff;cursor:pointer;background:#24518a;border:1px solid #6f9ce3;border-radius:9px;padding:10px 20px;font-weight:700}.gallery-state button:hover,.gallery-more button:hover{background:#336baa}.gallery-empty{text-align:center;padding:35px 10px}.gallery-empty span{color:#7094c8;font-size:44px}.gallery-empty h3{margin:12px 0 6px}.gallery-empty p{color:#a4b8d3;margin:0;font-size:13px}.gallery-more{justify-content:center;padding:26px 0 8px;display:flex}@media (width<=620px){.gallery-overlay{padding:8px}.gallery-dialog{border-radius:13px;max-height:96dvh}.gallery-top{padding:15px 16px 12px}.gallery-toolbar{padding:0 16px 14px}.gallery-content{padding:14px 12px 20px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-top h2{font-size:19px}.gallery-open-button{padding:8px 10px}.gallery-filters button{padding:8px 9px}.gallery-photo-button{aspect-ratio:1}}.notification-choice{color:#d5e5fa;cursor:pointer;align-items:center;gap:12px;padding:9px 0;font-size:13px;display:flex}.notification-choice input[type=checkbox]{accent-color:#60a5fa;cursor:pointer;flex:none;width:17px;height:17px}.notification-choice:has(input:disabled){opacity:.58;cursor:not-allowed}.notification-choice input:disabled{cursor:not-allowed}.search-overlay{z-index:9900;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#050a15c2;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.search-dialog{color:#edf4ff;background:#111b2d;border:1px solid #7e9dc94d;border-radius:18px;flex-direction:column;gap:14px;width:min(680px,100%);max-height:min(760px,92vh);padding:20px;display:flex;box-shadow:0 28px 70px #00000080}.search-titlebar{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.search-titlebar h2{margin:0;font-size:1.25rem}.search-titlebar p{color:#9fb1ca;margin:5px 0 0;font-size:.86rem}.search-titlebar>button{color:#fff;cursor:pointer;background:#233552;border:0;border-radius:9px;padding:3px 11px;font-size:1.5rem}.message-search-form{gap:8px;display:grid}.message-search-form>label{color:#c8d7f1;font-size:.85rem;font-weight:650}.message-search-controls{gap:8px;display:flex}.message-search-controls input{color:#fff;min-width:0;font:inherit;background:#0b1424;border:1px solid #3b5377;border-radius:10px;flex:1;padding:11px 12px}.message-search-controls button,.search-load-more{color:#fff;cursor:pointer;background:#244d8d;border:1px solid #4275c6;border-radius:10px;padding:10px 16px;font-weight:650}.message-search-controls button:disabled{opacity:.5;cursor:not-allowed}.message-search-scope{flex-wrap:wrap;gap:8px;display:flex}.message-search-scope button{color:#afc4e4;cursor:pointer;background:#1a2b45;border:1px solid #3d5578;border-radius:999px;padding:7px 13px}.message-search-scope button.selected{color:#fff;background:#2d5bb2;border-color:#7398e9}.message-search-results{flex-direction:column;gap:8px;min-height:105px;display:flex;overflow-y:auto}.search-count-label{color:#a6bbd6;margin:0 0 2px;font-size:.83rem}.message-search-result{text-align:left;cursor:pointer;color:#eaf1fb;background:#192940;border:1px solid #324766;border-radius:12px;gap:7px;width:100%;padding:12px;display:grid}.message-search-result:hover,.message-search-result:focus-visible{background:#223858;border-color:#75a6ec}.message-search-result:disabled{opacity:.65;cursor:wait}.search-result-heading{flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:.84rem;display:flex}.search-result-heading>span{color:#89b5ef}.search-result-heading time{color:#97a9c3;margin-left:auto}.search-result-snippet{overflow-wrap:anywhere;font-size:.9rem;line-height:1.5}.search-result-snippet mark{color:#19253e;background:#f1ce56;border-radius:3px;padding:0 2px}.search-result-action{color:#82b8ff;font-size:.8rem;font-weight:650}.search-message{color:#aebfda;text-align:center;padding:18px 5px}.search-error{color:#ffb6b6}.search-load-more{align-self:center;margin:4px 0}.search-context-notice{color:#dceaff;background:#1a3054;border-bottom:1px solid #3a6198;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 14px;font-size:.85rem;display:flex}.search-context-notice button{color:#fff;cursor:pointer;background:#26549a;border:1px solid #5c92e7;border-radius:8px;padding:7px 10px}.search-target-message{outline-offset:-2px;background:#d5a2331f;border-radius:12px;outline:2px solid #e8bd57}@media (width<=540px){.search-overlay{align-items:stretch;padding:8px}.search-dialog{border-radius:12px;max-height:100%;padding:13px}.search-result-heading time{margin-left:0}}.dm-sort-help{color:#93a9c7;margin:6px 10px 4px;font-size:10px;line-height:1.4}.direct-entry-row{border-radius:10px;align-items:center;gap:2px;min-width:0;display:flex}.direct-entry-row.pinned{background:#32538926}.direct-entry-row .direct-entry{flex:1;width:auto;min-width:0}.direct-pin-toggle{color:#9fb2ce;cursor:pointer;filter:grayscale();opacity:.55;background:0 0;border:1px solid #0000;border-radius:9px;flex:0 0 30px;place-items:center;width:30px;height:34px;padding:0;font-size:15px;display:grid}.direct-pin-toggle:hover,.direct-pin-toggle:focus-visible,.direct-pin-toggle.active{opacity:1;filter:none;background:#263b59}.direct-pin-toggle.active{border-color:#4d75a8}.direct-pin-toggle:focus-visible{outline-offset:1px;outline:2px solid #93c5fd}.jump-latest-bar{background:linear-gradient(#0000,#0b1120e6);flex-shrink:0;justify-content:center;margin-top:-2px;padding:6px 12px;display:flex}.jump-latest-bar button{color:#eef6ff;cursor:pointer;background:#254a7a;border:1px solid #618bd0;border-radius:30px;padding:8px 18px;font-size:12px;font-weight:750;box-shadow:0 5px 24px #0005}.jump-latest-bar button:hover{background:#3366a0}.jump-latest-bar button:focus-visible{outline-offset:3px;outline:2px solid #bfdbfe}@media (width<=760px){.dm-sort-help{margin-top:10px}.direct-pin-toggle{flex-basis:30px}.jump-latest-bar{padding:5px 10px}}.sidebar-footer.account-footer{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px 8px;min-width:0;display:grid}.sidebar-footer.account-footer .account-avatar{grid-area:1/1;justify-self:start}.sidebar-footer.account-footer .account-label{overflow-wrap:normal;grid-area:1/2/auto/4;min-width:0;overflow:hidden}.sidebar-footer.account-footer .account-label strong,.sidebar-footer.account-footer .account-label small{text-overflow:ellipsis;overflow-wrap:normal;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.sidebar-footer.account-footer button{box-sizing:border-box;white-space:nowrap;text-align:center;grid-row:2;width:100%;min-width:0;padding:9px 4px}.sidebar-footer.account-footer button:first-of-type{grid-column:1}.sidebar-footer.account-footer button:nth-of-type(2){grid-column:2}.sidebar-footer.account-footer button:nth-of-type(3){grid-column:3}.mod-status-banner{color:#ffe0e9;background:#302336;border-bottom:1px solid #7a4c63;flex-direction:column;gap:4px;padding:10px 16px;font-size:.86rem;display:flex}.mod-status-banner small{color:#d2b8cd}.mod-dismiss-notice{color:#ffe0e9;cursor:pointer;background:#593346;border:1px solid #9f7184;border-radius:6px;margin-left:8px;padding:2px 8px}.roles-overlay{z-index:30;background:#030814d6;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.roles-panel{color:#ecf4ff;background:#111b2e;border:1px solid #415a80;border-radius:20px;width:min(100%,680px);max-height:92dvh;padding:24px;overflow-y:auto;box-shadow:0 24px 90px #0009}.roles-heading,.roles-card-heading,.roles-member,.roles-members-heading,.roles-member-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.roles-heading{align-items:start}.roles-heading h2{margin:0;font-size:23px}.roles-heading p,.roles-intro,.roles-footnote{color:#a9bcd7;font-size:13px;line-height:1.55}.roles-close{color:#fff;cursor:pointer;background:#1b304d;border:1px solid #405a7a;border-radius:9px;width:36px;height:36px;font-size:24px}.roles-panel h3{margin:20px 0 10px;font-size:15px}.roles-your-status{background:#1b3046;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.community-role-badge,.roles-rank{white-space:nowrap;border:1px solid;border-radius:7px;align-items:center;gap:3px;padding:2px 6px;font-size:11px;font-weight:700;display:inline-flex}.roles-cards{gap:9px;display:grid}.roles-card{background:#16253b;border:1px solid #2a405f;border-radius:12px;padding:12px}.roles-card-heading small{color:#a5b8d3;text-align:right;max-width:55%;font-size:11px}.roles-edit-line{align-items:end;gap:9px;margin-top:10px;display:flex}.roles-edit-line label{color:#b9cce4;gap:4px;min-width:0;font-size:11px;display:grid}.roles-edit-line label:first-child{flex:1}.roles-edit-line input:not([type=color]),.roles-members-heading input,.roles-member select{color:#edf4ff;background:#0c1729;border:1px solid #425a7c;border-radius:8px;min-width:0;padding:8px}.roles-edit-line input[type=color]{cursor:pointer;background:#0c1729;border:1px solid #425a7c;border-radius:8px;width:44px;height:36px;padding:2px}.roles-edit-line button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;height:36px;padding:0 13px}.roles-edit-line button:disabled,.roles-member select:disabled{cursor:default;opacity:.5}.roles-members-heading input{width:min(45%,190px)}.roles-member-list{gap:6px;max-height:260px;display:grid;overflow-y:auto}.roles-member{background:#142238;border:1px solid #2a405f;border-radius:10px;padding:10px 12px}.roles-member-name{overflow-wrap:anywhere;gap:3px;min-width:0;display:grid}.roles-member-name strong{font-size:13px}.roles-member-name small{color:#9fb4d2;font-size:11px}.roles-member-actions{flex-wrap:wrap;justify-content:flex-end;font-size:12px}.roles-member-actions select{max-width:135px}.roles-error{color:#fda4af;font-size:13px}.roles-error button{color:#bfdbfe;cursor:pointer;background:0 0;border:0;text-decoration:underline}.roles-success{color:#86efac;font-size:13px}.roles-footnote{margin-bottom:0}.roles-chip-inline{vertical-align:middle;margin-left:6px}@media (width<=520px){.roles-panel{padding:16px}.roles-card-heading{flex-direction:column;align-items:start;gap:5px}.roles-card-heading small{text-align:left;max-width:none}.roles-member{align-items:start}.roles-member-actions{max-width:145px}}.room-manager-overlay{z-index:1200;background:#030815c7;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.room-manager{color:#e2e8f0;background:#121d30;border:1px solid #334968;border-radius:18px;width:min(100%,620px);max-height:min(90vh,760px);padding:22px;overflow-y:auto;box-shadow:0 20px 64px #00000059}.room-manager-header{justify-content:space-between;align-items:start;gap:12px;display:flex}.room-manager-header h2{margin:0;font-size:1.3rem}.room-manager-header p,.room-manager-note{color:#a9bbd2;font-size:.87rem;line-height:1.5}.room-manager-header button{color:#c8d7ea;cursor:pointer;background:0 0;border:0;font-size:1.8rem}.room-manager-list{gap:9px;margin:16px 0;display:grid}.room-manager-entry{background:#1a2a42;border:1px solid #2b415e;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;display:flex}.room-manager-info{overflow-wrap:anywhere;flex-direction:column;gap:4px;min-width:0;display:flex}.room-manager-info strong{font-size:.95rem}.room-manager-info small{color:#a9bbd2;font-size:.79rem}.room-manager-actions{flex-wrap:wrap;gap:8px;display:flex}.room-manager button{color:#eff6ff;cursor:pointer;background:#233d61;border:1px solid #466489;border-radius:9px;padding:7px 12px;font-weight:600}.room-manager button:hover:not(:disabled){background:#2c527d}.room-manager button:disabled{opacity:.5;cursor:not-allowed}.room-manager .room-manager-danger{color:#fecaca;border-color:#7b404c}.room-manager .room-manager-add{border-style:dashed;width:100%;padding:12px}.room-manager-form{gap:10px;width:100%;display:grid}.room-manager-form label{color:#c8d7ea;gap:5px;font-size:.81rem;display:grid}.room-manager-form input{color:#f1f5f9;background:#101a2d;border:1px solid #415878;border-radius:8px;width:100%;min-width:0;padding:9px}.room-manager-create{border:1px solid #314a6b;border-radius:12px;margin-top:14px;padding:13px}.room-manager-error,.room-manager-notice{border-radius:8px;padding:8px 10px;font-size:.85rem}.room-manager-error{color:#fecaca;background:#42212b}.room-manager-notice{color:#a7f3d0;background:#123d37}.chat-sidebar .room-manage-button{text-align:left;color:#cfe5ff;cursor:pointer;background:#192d49;border:1px solid #365479;border-radius:9px;width:100%;margin:6px 0 10px;padding:7px 10px;font-size:.83rem}.chat-sidebar .room-manage-button:hover{background:#28466b}@media (width<=500px){.room-manager{padding:15px}.room-manager-entry{flex-direction:column;align-items:stretch}}.mod-overlay{z-index:1400;background:#030815d4;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0}.mod-panel{color:#e9f1ff;background:#111d31;border:1px solid #314b70;border-radius:16px;width:min(780px,100%);max-height:90vh;padding:20px;overflow-y:auto;box-shadow:0 20px 70px #0008}.mod-header{justify-content:space-between;align-items:start;gap:12px;display:flex}.mod-header h2,.mod-panel h3{margin:0 0 7px}.mod-header p,.mod-muted,.mod-footer{color:#a8bbd5;font-size:.88rem;line-height:1.45}.mod-header button{color:#dbeafe;cursor:pointer;background:0 0;border:0;font-size:1.7rem}.mod-columns{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;margin:16px 0 22px;display:grid}.mod-member-list{flex-direction:column;gap:7px;min-width:0;max-height:330px;display:flex;overflow-y:auto}.mod-member-list label,.mod-action-area label{color:#d4e5ff;gap:5px;font-size:.83rem;display:grid}.mod-panel input,.mod-panel textarea,.mod-panel select{color:#e8f3ff;width:100%;min-width:0;font:inherit;background:#0c182b;border:1px solid #47638a;border-radius:9px;padding:9px}.mod-member{text-align:left;color:#e8f3ff;cursor:pointer;overflow-wrap:anywhere;background:#1a2c45;border:1px solid #304b70;border-radius:10px;flex-direction:column;align-items:start;gap:2px;min-width:0;padding:9px 11px;display:flex}.mod-member small{color:#b6c8df}.mod-member.selected{background:#22406b;border-color:#6aa9ff}.mod-danger-text{color:#fecaca!important}.mod-action-area{background:#182840;border:1px solid #2b4465;border-radius:12px;padding:14px}.mod-action-area form{gap:12px;display:grid}.mod-apply{color:#fff;cursor:pointer;background:#245eac;border:1px solid #5197ec;border-radius:9px;padding:10px 13px;font-weight:700}.mod-apply:disabled{opacity:.5;cursor:not-allowed}.mod-log-list{gap:8px;max-height:200px;margin-top:10px;display:grid;overflow-y:auto}.mod-log{background:#1b2d46;border:1px solid #2d4667;border-radius:9px;padding:9px 11px;font-size:.83rem}.mod-log strong{color:#d6eaff}.mod-log span{margin-left:7px}.mod-log small{color:#9cb3d3;float:right}.mod-log p{color:#c3d2e7;overflow-wrap:anywhere;margin:5px 0 0}.mod-error,.mod-notice{border-radius:9px;margin-top:12px;padding:10px 12px;font-size:.88rem}.mod-error{color:#fecaca;background:#4b1d2a}.mod-notice{color:#a7f3d0;background:#133c37}.mod-footer{border-top:1px solid #314761;margin-top:16px;padding-top:12px}@media (width<=600px){.mod-panel{padding:14px}.mod-columns{grid-template-columns:1fr}.mod-member-list{max-height:220px}.mod-log small{float:none;margin-top:4px;display:block}}.polpol-gif-overlay{z-index:11000;background:#040b17bf;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.polpol-gif-dialog{box-sizing:border-box;color:#e6efff;background:#15243a;border:1px solid #3b506b;border-radius:16px;flex-direction:column;gap:12px;width:min(100%,430px);max-height:min(82vh,670px);padding:16px;display:flex;box-shadow:0 20px 70px #00000073}.polpol-gif-header{justify-content:space-between;align-items:start;gap:12px;display:flex}.polpol-gif-header h2{margin:0 0 5px;font-size:18px;font-weight:700}.polpol-gif-header p{color:#9babc2;margin:0;font-size:13px}.polpol-gif-close{color:#e6efff;cursor:pointer;background:#253952;border:1px solid #465c74;border-radius:9px;padding:4px 10px;font-size:27px;line-height:1}.polpol-gif-search-label{color:#bac8dc;font-size:12px;font-weight:700}.polpol-gif-search{box-sizing:border-box;color:#fff;width:100%;font:inherit;outline-offset:2px;background:#0c1728;border:1px solid #465c74;border-radius:9px;padding:10px 12px}.polpol-gif-search:focus-visible{outline:2px solid #75a9ff}.polpol-gif-results{min-height:180px;max-height:390px;padding:0 2px 2px;overflow-y:auto}.polpol-gif-section-title{color:#b3c4da;margin:0 0 9px;font-size:12px;font-weight:650}.polpol-gif-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.polpol-gif-choice{aspect-ratio:1.2;cursor:pointer;background:#20344d;border:2px solid #0000;border-radius:9px;min-width:0;padding:0;overflow:hidden}.polpol-gif-choice img{object-fit:cover;width:100%;height:100%;display:block}.polpol-gif-choice:hover{border-color:#6eaaff;transform:translateY(-1px)}.polpol-gif-choice:focus-visible{outline:3px solid #8cb9ff}.polpol-gif-choice:disabled{opacity:.55;cursor:wait}.polpol-gif-note,.polpol-gif-error{color:#bdcfe6;background:#1c2f47;border-radius:9px;margin:0;padding:12px;font-size:13px;line-height:1.5}.polpol-gif-error{color:#ffb4bd;background:#3c2534}.polpol-gif-footer{color:#a9bbd1;border-top:1px solid #32465d;justify-content:space-between;align-items:center;gap:8px;padding-top:10px;font-size:12px;display:flex}.polpol-gif-footer a{color:#e2edff;font-size:12px;text-decoration:none}.polpol-gif-footer a:hover{text-decoration:underline}.polpol-gif-trigger{color:#e7f0ff;letter-spacing:.02em;cursor:pointer;background:#213650;border:1px solid #516886;border-radius:9px;flex:none;min-height:39px;padding:10px 9px;font-size:12px;font-weight:800}.polpol-gif-trigger:focus-visible{outline-offset:2px;outline:2px solid #75a9ff}.polpol-gif-trigger:disabled{opacity:.45;cursor:not-allowed}.polpol-gif-message{background:#192d44;border-radius:12px;flex-direction:column;gap:3px;max-width:300px;padding:5px;display:flex}.polpol-gif-message img{object-fit:contain;border-radius:9px;width:auto;min-width:95px;max-width:100%;height:auto;max-height:280px;display:block}.polpol-gif-message a{color:#a7c8ff;align-self:flex-end;padding:2px 6px;font-size:10px;text-decoration:none}.polpol-gif-message a:hover{text-decoration:underline}.polpol-gif-unavailable{color:#d3ddee;padding:8px;font-size:12px}@media (width<=480px){.polpol-gif-dialog{max-height:87vh;padding:12px}.polpol-gif-grid{gap:5px}.polpol-gif-trigger{min-height:36px;padding:8px}}@media (prefers-reduced-motion:reduce){.polpol-gif-choice:hover{transform:none}}
