.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(6px);background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--surface-1);box-shadow:var(--shadow);border:1px solid var(--color-border,#e0e0e0);border-radius:16px;width:90%;max-width:420px}.create-channel-modal{overflow:hidden}.create-channel-modal .modal__header{border-radius:16px 16px 0 0}.create-channel-modal .modal__body{border-radius:0 0 16px 16px}.create-server-modal{background:0 0;position:relative;overflow:hidden}.create-server-modal__bg-video{object-fit:cover;z-index:0;opacity:.35;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.create-server-modal__content{z-index:1;position:relative}.create-server-modal .modal__header{-webkit-backdrop-filter:blur(10px);background:#f1f4f8c7}.create-server-modal .modal__body{-webkit-backdrop-filter:blur(10px);background:#ffffffb8;border-radius:0 0 16px 16px}.create-server-modal .modal__field input{background:#ffffffeb}.create-server-modal__choice{flex-direction:column;gap:.75rem;display:flex}.create-server-modal__choice-btn{border:1px solid var(--color-border,#e0e0e0);width:100%;color:var(--color-dark,#333);cursor:pointer;text-align:left;background:#ffffffe6;border-radius:12px;padding:.75rem .9rem;font-weight:600;transition:background .15s,border-color .15s}.create-server-modal__choice-btn:hover{background:#fff;border-color:#3498db80}.create-server-modal__icon-preview-wrap{justify-content:flex-start;display:flex}.create-server-modal__icon-preview{object-fit:cover;border:1px solid var(--color-border,#e0e0e0);border-radius:14px;width:64px;height:64px}.modal__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal__title{margin:0;font-size:1.1rem;font-weight:700;line-height:1.2}.modal__close{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;font-size:1.5rem;line-height:1;display:flex}.modal__close:hover{color:#333;background:#ffffff14}.modal__body{padding:1.25rem}.modal__field{margin-bottom:1rem;display:block}.modal__field span{color:var(--color-muted,#666);margin-bottom:.35rem;font-size:.85rem;display:block}.modal__field input{border:1px solid var(--color-border,#e0e0e0);box-sizing:border-box;border-radius:8px;width:100%;padding:.5rem .75rem;font-size:1rem}.modal__field input:focus{border-color:var(--color-primary,#3498db);outline:none}.modal__actions{justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}.create-channel-modal__error{color:#c0392b;margin-bottom:1rem;font-size:.9rem}.settings-fullscreen-modal{flex-direction:column;height:min(860px,94vh);display:flex;width:min(1180px,96vw)!important;max-width:none!important}.settings-fullscreen-modal .modal__body{color:#ebeef2f5;background:linear-gradient(#22242efa,#1e202afa);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.settings-fullscreen-modal .modal__header{flex-shrink:0}.settings-layout{flex:1;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:.9rem;min-height:0;display:grid}.settings-layout__sidebar{border-right:1px solid #ffffff14;padding-right:.75rem;overflow:auto}.settings-layout__sidebar-title{letter-spacing:.08em;color:#a0a9b7e6;text-transform:uppercase;margin:.15rem 0 .55rem;font-size:.72rem;font-weight:800}.settings-layout__nav-item{text-align:left;color:#e1e7eff0;cursor:pointer;background:0 0;border:none;border-radius:8px;width:100%;padding:.5rem .6rem;font-size:.98rem;font-weight:650}.settings-layout__nav-item:hover{background:#ffffff0f}.settings-layout__nav-item--active{color:#f8fafcfa;background:#ffffff1f}.settings-layout__content{min-width:0;min-height:0;padding-right:.25rem;overflow:auto}.settings-layout__section{background:#ffffff08;border:1px solid #ffffff0f;border-radius:10px;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding:.7rem;display:flex}.settings-layout__label{color:#b0b8c4f2;letter-spacing:.01em;font-size:.85rem;font-weight:800}.settings-fullscreen-modal .modal__field span{color:#b0b8c4f2;font-weight:700}.settings-fullscreen-modal .modal__field input{color:#f0f3f7f5;background:#14161ee0;border:1px solid #ffffff24}.settings-layout__hint{color:#a5adbaeb;font-size:.85rem}.settings-fullscreen-modal .modal__actions{margin-top:auto;padding-top:.8rem}@media (max-width:860px){.settings-fullscreen-modal{height:92vh;width:96vw!important}.settings-layout{grid-template-columns:1fr}.settings-layout__sidebar{border-bottom:1px solid #ffffff14;border-right:none;padding-bottom:.6rem;padding-right:0}}
.crop-modal-overlay{z-index:2000;-webkit-backdrop-filter:blur(6px);background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.crop-modal{background:var(--surface-1);border:1px solid var(--color-border,#e0e0e0);width:min(560px,96vw);box-shadow:var(--shadow);border-radius:16px;overflow:hidden}.crop-modal__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.9rem 1rem;display:flex}.crop-modal__title{margin:0;font-size:1rem;font-weight:700}.crop-modal__close{color:var(--color-muted,#666);cursor:pointer;background:0 0;border:none;border-radius:10px;width:32px;height:32px;font-size:1.4rem;line-height:1}.crop-modal__close:hover{background:#3498db1f}.crop-modal__body{padding:1rem}.crop-modal__error{color:#c0392b;margin-bottom:.7rem;font-size:.9rem}.crop-stage{border:1px solid var(--color-border,#e0e0e0);background:#0c141e29;border-radius:14px;width:320px;height:320px;margin:0 auto;position:relative;overflow:hidden}.crop-stage__image{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;max-width:none;position:absolute;top:50%;left:50%}.crop-stage__frame{pointer-events:none;border:2px solid #3498dba6;border-radius:14px;position:absolute;inset:0}.crop-controls{flex-direction:column;gap:.55rem;margin-top:.9rem;display:flex}.crop-controls__row{grid-template-columns:100px 1fr;align-items:center;gap:.65rem;display:grid}.crop-controls__row span{color:var(--color-muted,#666);font-size:.85rem;font-weight:600}.crop-controls__row input[type=range]{width:100%}.crop-modal__actions{justify-content:flex-end;gap:.7rem;padding:0 1rem 1rem;display:flex}
.server-settings-modal{flex-direction:column;height:min(860px,94vh);display:flex;width:min(1180px,96vw)!important;max-width:none!important}.server-settings-modal-overlay{z-index:140;border-radius:inherit;position:absolute;inset:0}.server-settings-page{z-index:140;border-radius:var(--radius-lg,18px);border:1px solid var(--color-border,#e0e0e0);box-shadow:var(--shadow);background:linear-gradient(#22242efa,#1e202afa);position:absolute;inset:0;overflow:hidden}.server-settings-modal .modal__header{flex-shrink:0}.server-settings-modal--page{border-radius:var(--radius-lg,18px);height:100%;box-shadow:none;border:none;width:100%!important}.server-settings-modal__body{color:#ebeef2f5;background:linear-gradient(#22242efa,#1e202afa);border-radius:0;flex-direction:column;flex:1;min-height:0;padding-top:1rem;display:flex;overflow:hidden}.server-settings-modal__layout{flex:1;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:.9rem;min-height:0;display:grid}.server-settings-modal__sidebar{border-right:1px solid #ffffff0f;padding:.15rem .75rem .15rem 0;overflow:auto}.server-settings-modal__sidebar-title{letter-spacing:.09em;color:#949caad1;text-transform:uppercase;margin:.12rem 0 .45rem;font-size:.7rem;font-weight:800}.server-settings-modal__sidebar-divider{background:#ffffff14;height:1px;margin:.55rem 0}.server-settings-modal__nav-item{text-align:left;color:#bbc2cdeb;cursor:pointer;background:0 0;border:none;border-radius:6px;width:100%;padding:.42rem .6rem;font-size:.99rem;font-weight:600;line-height:1.25;transition:background .12s,color .12s}.server-settings-modal__nav-item:hover{color:#eef2f7fa;background:#4f545c52}.server-settings-modal__nav-item--active{color:#f9fafcfc;background:#4f545c94}.server-settings-modal__nav-item--danger{color:#ff7878f2}.server-settings-modal__nav-item--danger:hover{color:#ffbebefc;background:#ed42453d}.server-settings-modal__nav-item--danger.server-settings-modal__nav-item--active{color:#ffcece;background:#ed424557}.server-settings-modal__content{min-width:0;min-height:0;padding-right:.25rem;overflow:auto}.server-settings-modal__section{background:#ffffff08;border:1px solid #ffffff0f;border-radius:10px;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding:.7rem;display:flex}.server-settings-modal__label{color:#b0b8c4f2;letter-spacing:.01em;font-size:.85rem;font-weight:800}.server-settings-modal__input{color:#f0f3f7f5;background:#14161ee0;border:1px solid #ffffff24;border-radius:10px;width:100%;padding:.55rem .75rem;font-size:1rem}.server-settings-modal__input:disabled{opacity:.7;cursor:not-allowed}.server-settings-modal__hint{color:#a5adbaeb;font-size:.85rem}.server-settings-modal__actions{justify-content:flex-end;gap:.75rem;margin-top:1.1rem;display:flex}.server-settings-modal__btn-danger{color:#c0392bf2;border-color:#c0392b8c}.server-settings-modal__destructive{flex-wrap:wrap;gap:.75rem;margin-top:.75rem;display:flex}.server-settings-modal__invite,.server-settings-modal__invite-code{margin-top:.25rem}.server-settings-modal__invite-code-input{letter-spacing:.7px;max-width:260px;font-weight:800}.server-settings-modal__invite-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.server-settings-modal__invite-input{flex:1;min-width:220px}.server-settings-modal__copy-btn{white-space:nowrap}.server-settings-modal__icon-row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.server-settings-modal__icon-preview,.server-settings-modal__icon-fallback{border:1px solid #ffffff1f;border-radius:14px;width:64px;height:64px}.server-settings-modal__icon-preview{object-fit:cover}.server-settings-modal__icon-fallback{color:#c6d2fffa;background:#5865f22e;justify-content:center;align-items:center;font-size:1.2rem;font-weight:700;display:inline-flex}.server-settings-modal__icon-upload-btn{color:#d2dbfffa;white-space:nowrap;cursor:pointer;background:#5865f22e;border:1px solid #5865f28c;border-radius:10px;width:fit-content;max-width:100%;margin-top:.15rem;padding:.5rem .75rem;font-weight:700}.server-settings-modal__icon-upload-btn:hover{background:#5865f247}.server-settings-modal__icon-upload-btn:disabled{opacity:.6;cursor:not-allowed}.server-settings-modal__members{flex-direction:column;gap:.45rem;display:flex}.server-settings-modal__member-item{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:8px;align-items:center;gap:.55rem;padding:.4rem .45rem;display:flex}.server-settings-modal__member-meta{min-width:0}.server-settings-modal__member-name{color:#f3f6fafa;white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.server-settings-modal__member-role{color:#b0bac8e6;font-size:.8rem}@media (max-width:860px){.server-settings-modal{height:92vh;width:96vw!important}.server-settings-modal__layout{grid-template-columns:1fr}.server-settings-modal__sidebar{border-bottom:1px solid #ffffff14;border-right:none;padding-bottom:.6rem;padding-right:0}}
.channel-members-panel{background:var(--surface-1);border-left:1px solid var(--color-border,#e0e0e0);flex-direction:column;flex-shrink:0;width:280px;max-height:100%;display:flex}.channel-members-panel__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.channel-members-panel__title{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.95rem;font-weight:600;overflow:hidden}.channel-members-panel__close{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;padding:0 .25rem;font-size:1.25rem}.channel-members-panel__error{color:#c0392b;padding:.5rem 1rem;font-size:.85rem}.channel-members-panel__loading{color:var(--color-muted,#666);padding:1rem;font-size:.9rem}.channel-members-panel__list{margin:0;padding:.5rem 0;list-style:none;overflow-y:auto}.channel-members-panel__item{align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;display:flex}.channel-members-panel__profile-hit{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;margin:0;padding:0;line-height:0}.channel-members-panel__name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.channel-members-panel__name--btn{font:inherit;text-align:left;cursor:pointer;color:inherit;background:0 0;border:none;padding:0}.channel-members-panel__name--btn:hover{text-decoration:underline}.channel-members-panel__role{color:var(--color-muted,#666);align-items:center;gap:.25rem;font-size:.8rem;display:flex}.channel-members-panel__role-btn{cursor:pointer;color:var(--color-muted,#666);background:0 0;border:none;padding:0 .2rem;font-size:.85rem}.channel-members-panel__role-btn:hover{color:var(--color-primary,#3498db)}.channel-members-panel__role-edit select{padding:.2rem .4rem;font-size:.8rem}.channel-members-panel__kick{color:#c0392b;cursor:pointer;background:0 0;border:none;padding:.2rem .5rem;font-size:.75rem}.channel-members-panel__kick:hover{text-decoration:underline}@media (max-width:768px){.channel-members-panel{z-index:100;width:100%;max-width:300px;position:fixed;top:0;bottom:0;right:0;box-shadow:-4px 0 16px #00000026}}
.user-profile-modal-overlay{z-index:12000;background:#000000a6;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.user-profile-modal{background:var(--chat-surface-elevated,#2b2d31);width:100%;max-width:420px;color:var(--chat-text,#f2f3f5);border-radius:12px;overflow:hidden;box-shadow:0 16px 48px #00000073}.user-profile-modal__banner{background:linear-gradient(135deg,#5865f2 0%,#9b59d6 50%,#eb459e 100%) 50%/cover;height:100px}.user-profile-modal__body-wrap{margin-top:-36px;padding:0 1.1rem 1.1rem}.user-profile-modal__avatar-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:.75rem;display:flex}.user-profile-modal__avatar{border:5px solid var(--chat-surface-elevated,#2b2d31);background:#1e1f22;border-radius:50%;flex-shrink:0;width:88px;height:88px;overflow:hidden}.user-profile-modal__avatar .avatar{width:100%;height:100%}.user-profile-modal__actions-top{align-items:center;gap:.5rem;margin-bottom:.25rem;display:flex}.user-profile-modal__title-block{margin-top:.5rem}.user-profile-modal__display-name{font-size:1.25rem;font-weight:700;line-height:1.2}.user-profile-modal__handle{color:var(--chat-text-muted,#b5bac1);margin-top:.15rem;font-size:.9rem}.user-profile-modal__since{color:var(--chat-text-muted,#949ba4);margin-top:.75rem;font-size:.8rem}.user-profile-modal__section{background:#0003;border-radius:8px;margin-top:1rem;padding:.65rem .75rem}.user-profile-modal__section-title{letter-spacing:.04em;text-transform:uppercase;color:var(--chat-text-muted,#949ba4);margin-bottom:.35rem;font-size:.7rem;font-weight:700}.user-profile-modal__about{white-space:pre-wrap;word-break:break-word;font-size:.9rem;line-height:1.45}.user-profile-modal__email{color:var(--chat-text-muted,#b5bac1);margin-top:.5rem;font-size:.85rem}.user-profile-modal__form label{color:var(--chat-text-muted,#949ba4);margin-bottom:.25rem;font-size:.75rem;font-weight:600;display:block}.user-profile-modal__form input,.user-profile-modal__form textarea{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#1e1f22;border:1px solid #ffffff1f;border-radius:6px;margin-bottom:.65rem;padding:.5rem .6rem}.user-profile-modal__form textarea{resize:vertical;min-height:88px}.user-profile-modal__error{color:#f23f42;margin-bottom:.5rem;font-size:.85rem}.user-profile-modal__btn-row{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.user-profile-modal__btn-row button{cursor:pointer;color:#fff;background:#5865f2;border:none;border-radius:6px;padding:.45rem .75rem;font-size:.85rem}.user-profile-modal__btn-row button[type=button].user-profile-modal__btn-secondary{background:#4e5058}.user-profile-modal__btn-row button[type=button].user-profile-modal__btn-ghost{color:inherit;background:0 0;border:1px solid #fff3}.user-profile-modal__actions-top button{cursor:pointer;color:#fff;background:#5865f2;border:none;border-radius:6px;padding:.45rem .75rem;font-size:.85rem}.user-profile-modal__actions-top button.user-profile-modal__btn-secondary{background:#4e5058}.user-profile-modal__actions-top button.user-profile-modal__btn-ghost{color:inherit;background:0 0;border:1px solid #fff3}.user-profile-modal__about--muted{opacity:.75;font-style:italic}.user-profile-modal__logout{border-top:1px solid #ffffff14;margin-top:1rem;padding-top:1rem}.user-profile-modal__logout-btn{box-sizing:border-box;color:#f23f42;width:100%;font:inherit;cursor:pointer;background:0 0;border:1px solid #f23f4273;border-radius:6px;padding:.5rem .75rem;font-size:.85rem;font-weight:600}.user-profile-modal__logout-btn:hover:not(:disabled){background:#f23f421f}.user-profile-modal__logout-btn:disabled{opacity:.55;cursor:not-allowed}.user-profile-modal__loading{text-align:center;color:var(--chat-text-muted,#949ba4);padding:2rem}.user-profile-modal__close{color:#fff;cursor:pointer;background:#00000059;border:none;border-radius:6px;width:32px;height:32px;font-size:1.25rem;line-height:1;position:absolute;top:.65rem;right:.65rem}.user-profile-modal{position:relative}
.chat-page{flex-direction:column;flex:1;gap:.75rem;width:100%;min-height:calc(100vh - 10px);padding:.8dvh .8dvw;display:flex}.chat-grid{flex:1;grid-template-columns:88px 1fr;align-items:stretch;gap:0 1.25rem;min-height:0;display:grid}.friends-rail{width:100%;position:relative}.friends-rail__inner{background:#152331;background:-webkit-linear-gradient(to right,#000,#152331);height:100%;min-height:0;box-shadow:var(--shadow);background:linear-gradient(90deg,#000,#152331);border:none;border-radius:20px;flex-direction:column;justify-content:flex-start;gap:.85rem;padding:1.1rem .9rem;display:flex}.friends-rail__item{color:#fffffff2;cursor:pointer;background:#ffffff1a;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;margin-inline:auto;font-size:1.1rem;font-weight:800;transition:transform 80ms,border-radius .15s,background .15s,box-shadow .15s;display:flex;position:relative}.friends-rail__item:hover{background:#3498dbd9;border-radius:14px;transform:translateY(-2px);box-shadow:0 8px 18px #1018282e}.friends-rail__letter{line-height:1}.friends-rail__tooltip{opacity:0;pointer-events:none;white-space:nowrap;text-overflow:ellipsis;letter-spacing:.2px;color:#fffffff2;z-index:5;background:#0f141ae0;border:1px solid #ffffff24;border-radius:10px;max-width:240px;padding:.35rem .55rem;font-size:.8rem;font-weight:700;transition:opacity .12s,transform .12s;position:absolute;top:50%;left:calc(100% + 10px);overflow:hidden;transform:translateY(-50%)translate(-2px);box-shadow:0 12px 34px #00000038}.friends-rail__item:hover .friends-rail__tooltip{opacity:1;transform:translateY(-50%)translate(0)}.friends-rail__me{cursor:pointer;background:#ffffff1a;border:none;border-radius:14px;justify-content:center;align-items:center;width:44px;height:44px;margin-inline:auto;padding:0;transition:background .15s,box-shadow .15s,transform 80ms;display:flex;overflow:hidden}.friends-rail__me:hover{background:#3498dbd9;transform:translateY(-2px);box-shadow:0 8px 18px #1018282e}.friends-rail__me--active{background:#3498dbd9;box-shadow:0 8px 18px #1018282e}.friends-rail__dm-hub{cursor:pointer;color:#fffffff2;background:#ffffff1a;border:none;border-radius:14px;justify-content:center;align-items:center;width:44px;height:44px;margin-inline:auto;padding:0;transition:background .15s,box-shadow .15s,transform 80ms;display:flex}.friends-rail__dm-hub:hover{background:#3498dbd9;transform:translateY(-2px);box-shadow:0 8px 18px #1018282e}.friends-rail__dm-hub--active{background:#3498dbd9;box-shadow:0 8px 18px #1018282e}.friends-rail__dm-hub-icon{flex-shrink:0;display:block}.friends-rail__me-avatar{object-fit:cover;display:block;border-radius:14px!important;width:100%!important;height:100%!important}.friends-rail__me-avatar.avatar-placeholder{border-radius:14px!important}.friends-rail__footer{flex-direction:column;flex-shrink:0;align-items:center;gap:.85rem;width:100%;margin-top:auto;display:flex}.friends-rail__search{justify-content:center;margin-top:0;display:flex}.friends-rail__search-btn{cursor:pointer;color:#fffffff2;background:#ffffff1a;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;transition:background .15s,transform 80ms,box-shadow .15s;display:flex}.friends-rail__search-btn:hover{background:#3498dbd9;transform:translateY(-2px);box-shadow:0 8px 18px #1018282e}.chat-grid-main{position:relative}.profile-page{border-radius:var(--radius-lg,18px);background:var(--surface-1);flex:1;min-height:0;padding:0;display:flex;position:relative;overflow:hidden}.profile-page:before{content:"";opacity:0;pointer-events:none;z-index:0;background:0 0;position:absolute;inset:0}.profile-page .profile-modal--page{z-index:1;position:relative}.profile-modal--page{flex-direction:column;flex:1;width:100%;max-height:none;display:flex;overflow:hidden}.profile-modal--page .profile-modal__body{flex:1;overflow:auto}.profile-modal-overlay{z-index:90;-webkit-backdrop-filter:blur(6px);background:#00000059;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.profile-modal{background:var(--surface-1);border:1px solid var(--color-border,#ffffff24);width:min(620px,92vw);max-height:80vh;box-shadow:var(--shadow);border-radius:18px;overflow:auto}.profile-modal.profile-modal--page{border-radius:var(--radius-lg,18px);background:0 0;border:1px solid #ffffff1f;width:100%;max-height:none;overflow:hidden}.profile-modal.profile-modal--page .profile-modal__header{z-index:5;background:var(--surface-2);-webkit-backdrop-filter:blur(8px);padding:8px 12px;position:sticky;top:0}.profile-modal.profile-modal--page .profile-modal__body{justify-content:center;align-items:center;max-width:none;margin:0;padding:2rem 1.25rem;position:relative}.profile-modal.profile-modal--page .profile-modal__body:before{content:"";opacity:0;pointer-events:none;z-index:0;background:0 0;position:absolute;inset:0}.profile-modal.profile-modal--page .profile-modal__body>*{z-index:1;position:relative}.profile-modal.profile-modal--page .profile-modal__title{color:var(--color-text);font-size:.95rem}.profile-modal.profile-modal--page .profile-modal__close{width:30px;height:30px;color:var(--color-text);border-radius:10px;font-size:1.25rem}.profile-modal.profile-modal--page .profile-modal__name{color:var(--color-text);font-size:1.15rem}.profile-modal.profile-modal--page .profile-modal__meta{color:var(--color-muted)}.profile-modal.profile-modal--page .profile-modal__info{text-align:center;align-items:center}.profile-modal.profile-modal--page .profile-modal__actions{justify-content:center;margin-top:.25rem}.profile-modal.profile-modal--page .profile-modal__avatar-btn{background:#3498db24;border:1px solid #3498db73;border-radius:28px;justify-content:center;align-items:center;width:120px;height:120px;transition:transform .12s,background .12s,border-color .12s;display:inline-flex}.profile-modal.profile-modal--page .profile-modal__avatar-btn:hover{background:#3498db33;border-color:#3498dba6;transform:translateY(-1px)scale(1.02)}.profile-modal__header{border-bottom:1px solid var(--color-border,#ffffff24);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.9rem 1rem;display:flex}.profile-modal__header-actions{align-items:center;gap:.6rem;display:flex}.profile-modal__exit{white-space:nowrap;padding:.35rem .65rem;font-size:.85rem}.profile-modal.profile-modal--page .profile-modal__header-actions .profile-modal__exit{background:var(--color-primary,#3498db);color:#fff;border-color:var(--color-primary,#3498db);z-index:6;position:relative}.profile-modal.profile-modal--page .profile-modal__header-actions .profile-modal__exit:hover{opacity:.92}.profile-modal__title{font-weight:900}.profile-modal__close{cursor:pointer;width:34px;height:34px;color:var(--color-muted);background:0 0;border:none;border-radius:12px;font-size:1.4rem;line-height:1}.profile-modal__close:hover{background:#3498db1f}.profile-modal__body{flex-direction:column;gap:1rem;padding:1rem;display:flex}.profile-modal__file{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.profile-modal__avatar-wrap{justify-content:center;display:flex}.profile-modal__avatar-btn{cursor:pointer;background:0 0;border:none;padding:0}.profile-modal__info{flex-direction:column;gap:.25rem;display:flex}.profile-modal__name{font-size:1.05rem;font-weight:900}.profile-modal__meta{color:var(--color-muted);font-size:.9rem}.profile-modal__actions{justify-content:flex-start;display:flex}.profile-modal__hint{color:var(--color-muted);text-align:center;margin-top:-.25rem;font-size:.85rem}.chat-grid-main{flex-direction:column;gap:.75rem;width:100%;display:flex}.content-container{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.content-container--chat{overflow:auto}.saved-content-page{background:var(--surface-1);border-radius:var(--radius-lg);min-height:0;box-shadow:var(--shadow);border:1px solid var(--color-border);flex-direction:column;flex:1;display:flex;overflow:hidden}.saved-content-page__header{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);justify-content:space-between;align-items:center;padding:.7rem 1rem;display:flex}.saved-content-page__title{font-size:.98rem;font-weight:700}.saved-content-page__body{flex-direction:column;flex:1;min-height:0;display:flex}.saved-content-page--dm{flex-direction:row;align-items:stretch;position:relative}.saved-content-page__dm-main{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.dm-conversations-sidebar{background:var(--surface-2);border-right:1px solid var(--color-border,#e0e0e0);flex-direction:column;flex-shrink:0;width:240px;min-height:0;display:flex}.dm-conversations-sidebar__head{border-bottom:1px solid var(--color-border,#e0e0e0);flex-shrink:0;padding:.65rem .75rem .45rem}.dm-conversations-sidebar__title{text-transform:uppercase;letter-spacing:.06em;color:var(--color-muted,#666);font-size:.75rem;font-weight:700}.dm-conversations-sidebar__list{flex-direction:column;flex:1;gap:.2rem;min-height:0;padding:.4rem .45rem .65rem;display:flex;overflow-y:auto}.dm-conversations-sidebar__row{text-align:left;cursor:pointer;width:100%;color:var(--color-text,#1a1a1a);background:0 0;border:none;border-radius:12px;align-items:center;gap:.55rem;padding:.45rem .5rem;transition:background .15s;display:flex}.dm-conversations-sidebar__row:hover{background:#3498db1a}.dm-conversations-sidebar__row--active{background:#3498db2e}.dm-conversations-sidebar__row--saved{margin-bottom:.15rem}.dm-conversations-sidebar__saved-star{background:#ffc10738;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.05rem;line-height:1;display:inline-flex}.dm-conversations-sidebar__avatar{flex-shrink:0;border-radius:12px!important;width:36px!important;height:36px!important}.dm-conversations-sidebar__row-text{flex-direction:column;gap:.12rem;min-width:0;display:flex}.dm-conversations-sidebar__row-name{text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:700;overflow:hidden}.dm-conversations-sidebar__row-preview{color:var(--color-muted,#666);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.25;overflow:hidden}.dm-conversations-sidebar__row-preview--muted{font-style:italic}.dm-conversations-sidebar__snippet-prefix{color:var(--color-muted,#666);-webkit-user-select:none;user-select:none;margin-right:.1em;font-weight:600}.dm-conversations-sidebar__backdrop,.dm-conversations-sidebar__toggle{display:none}.saved-content-page--dm .saved-content-page__header{align-items:center;gap:.5rem}.saved-content-page--dm .saved-content-page__title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.dashboard-page{border-radius:var(--radius-lg);border:1px solid var(--color-border);min-height:0;box-shadow:var(--shadow);background:radial-gradient(700px 420px at 50% 12%,#ffffff24,#0000 62%),linear-gradient(#ffffff08,#ffffff03),0 0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1.35rem;padding:clamp(1rem,2.2vw,1.8rem);display:flex;position:relative}.dashboard-page__clock-wrap{-webkit-backdrop-filter:blur(18px)saturate(1.12);background:linear-gradient(#0f141c66,#0f141c47);border:1px solid #ffffff38;border-radius:24px;flex-direction:column;align-items:center;gap:.5rem;padding:clamp(.8rem,1.5vw,1.2rem) clamp(1rem,2.5vw,1.8rem);display:flex;box-shadow:0 20px 48px #00000047,inset 0 1px #ffffff4d}.dashboard-page__date{text-transform:capitalize;color:#ffffffeb;letter-spacing:.01em;text-shadow:0 2px 10px #00000052;font-size:clamp(.95rem,1.3vw,1.08rem)}.dashboard-page__time{letter-spacing:-.035em;text-align:center;color:#fffffffa;text-shadow:0 14px 34px #00000061,0 2px #fff3;font-variant-numeric:tabular-nums;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,Arial,sans-serif;font-size:clamp(3.6rem,13vw,8.6rem);font-weight:600;line-height:.94}.dashboard-page__weather-block{flex-direction:column;align-items:center;gap:.2rem;padding:.35rem .6rem .1rem;display:flex}.dashboard-page__weather-place{color:#ffffffe6;text-shadow:0 2px 10px #0000004d}.dashboard-page__weather-temp{color:#fffffffa;text-shadow:0 8px 24px #00000057;font-size:clamp(1.9rem,4vw,2.35rem);font-weight:800;line-height:1}.dashboard-page__weather-desc{color:#fffffff2;text-shadow:0 2px 10px #0000004d;font-weight:700}.dashboard-page__weather-wind,.dashboard-page__hint{color:#ffffffd1;text-shadow:0 2px 8px #00000042}.dashboard-page__settings-toggle{color:#fffffffa;cursor:pointer;-webkit-backdrop-filter:blur(10px);z-index:3;background:linear-gradient(#0e1620d1,#0e1620a8);border:1px solid #ffffff8c;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.1rem;line-height:1;display:inline-flex;position:absolute;top:.8rem;right:.8rem;box-shadow:0 8px 20px #00000059,inset 0 1px #ffffff4d}.dashboard-page__settings-toggle:hover{background:linear-gradient(#141e2ce6,#141e2cb8);transform:translateY(-1px)}.dashboard-page__settings{-webkit-backdrop-filter:blur(16px)saturate(1.08);z-index:2;background:linear-gradient(#0c121a75,#0c121a57);border:1px solid #ffffff38;border-radius:18px;width:min(560px,100% - 1.6rem);padding:1rem;position:absolute;top:3.4rem;right:.8rem;box-shadow:0 16px 34px #00000047,inset 0 1px #ffffff40}.dashboard-page__settings-title{color:#fffffff5;text-shadow:0 2px 10px #0000004d;margin-bottom:.75rem;font-weight:800}.dashboard-page__settings-grid{grid-template-columns:repeat(2,minmax(220px,1fr));gap:.65rem .8rem;display:grid}.dashboard-page__settings-grid label{color:#ffffffe6;text-shadow:0 1px 6px #00000047;flex-direction:column;gap:.3rem;font-size:.9rem;display:flex}.dashboard-page__settings-grid select,.dashboard-page__settings-grid input{color:#fffffff5;background:#12182385;border:1px solid #fff6;border-radius:12px;width:100%;padding:.5rem .65rem}.dashboard-page__settings-grid select:disabled,.dashboard-page__settings-grid input:disabled{opacity:.65;cursor:not-allowed}.dashboard-page__city-field{grid-column:span 2}.chat-container{background:var(--surface-1);border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--color-border);flex-direction:row;flex:1;display:flex;position:relative;overflow:hidden}.chat-sidebars{flex-direction:row;flex-shrink:0;min-height:0;display:flex}.channels-stack{background:var(--surface-2);border-right:1px solid var(--color-border,#e0e0e0);flex-direction:column;flex-shrink:0;gap:0;width:240px;display:flex}.server-panel{background:var(--surface-2);border:none;border-bottom:1px solid var(--color-border,#e0e0e0);border-radius:0;flex-direction:column;gap:.4rem;padding:.65rem .75rem;display:flex;position:relative}.server-panel__title{text-overflow:ellipsis;white-space:nowrap;-webkit-backdrop-filter:blur(10px);cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:10px;align-self:flex-start;align-items:center;gap:.35rem;width:fit-content;padding:.35rem .6rem;font-size:.95rem;font-weight:800;display:inline-flex;overflow:hidden;box-shadow:0 8px 18px #0000002e}.server-panel__title:after{content:"▾";opacity:.65;transform-origin:50%;font-size:.8rem;line-height:1;transition:transform .15s}.server-panel--open .server-panel__title:after{transform:rotate(180deg)}.server-popover{-webkit-backdrop-filter:blur(10px);z-index:120;background:#181a1ff5;border:1px solid #ffffff1a;border-radius:10px;flex-direction:column;gap:.1rem;width:calc(100% - .1rem);min-width:190px;padding:.3rem 0;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 18px 45px #00000080}.server-popover__section{flex-direction:column;gap:.1rem;display:flex}.server-popover__section-title{letter-spacing:.2px;color:#ffffff8c;padding:.45rem .75rem .25rem;font-size:.75rem;font-weight:800}.server-popover__divider{background:#ffffff1f;height:1px;margin:.15rem 0}.server-popover .server-panel__btn:disabled{opacity:.55;cursor:not-allowed}.server-popover .server-panel__btn:disabled:hover{background:0 0}.server-popover:before{content:"";border-bottom:6px solid #181a1ff5;border-left:7px solid #0000;border-right:7px solid #0000;width:0;height:0;position:absolute;top:-6px;left:24px}.server-popover .server-panel__btn{width:100%;box-shadow:none;color:#fffffff2;background:0 0;border:none;border-radius:9px;justify-content:flex-start;align-items:center;padding:.5rem .75rem;font-size:.9rem;font-weight:650;display:flex}.server-popover .server-panel__btn:hover{background:#ffffff1a}.server-popover .server-panel__btn--danger:hover{background:#c0392b33}.server-panel__btn{cursor:pointer;border:1px solid var(--color-border,#e0e0e0);color:var(--color-text);background:#ffffff0a;border-radius:12px;padding:.35rem .6rem;font-size:.85rem;font-weight:700}.server-panel__btn:hover{background:#3498db1a}.server-panel__btn--danger{color:#c0392bf2;border-color:#c0392b59}.server-panel__btn--danger:hover{background:#c0392b1f}.chat-mobile-overlay{display:none}.chat-main{flex-direction:column;flex:1;min-width:0;display:flex}.chat-main__bar{border-bottom:1px solid var(--color-border,#e0e0e0);background:var(--surface-2);flex-shrink:0;justify-content:space-between;align-items:center;padding:.7rem 1rem;display:flex}.chat-main__channel-name{font-size:.95rem;font-weight:600}.chat-main__server-name{color:var(--color-muted,#666);-webkit-backdrop-filter:blur(10px);background:#ffffff0f;border:1px solid #ffffff1a;border-radius:999px;align-items:center;gap:.35rem;margin-right:.25rem;padding:.2rem .45rem;font-weight:500;display:inline-flex}.chat-main__bar-actions{align-items:center;gap:.5rem;display:flex}.chat-main__bar-btn{border:1px solid var(--color-border,#e0e0e0);cursor:pointer;color:var(--color-dark,#333);background:0 0;border-radius:12px;padding:.45rem .75rem;font-size:.85rem}.chat-main__bar-btn:hover{background:#3498db1a}.chat-main__bar-btn--nav{display:none}.chat-main__bar-btn--primary{background:var(--color-primary,#3498db);color:#fff;border-color:var(--color-primary,#3498db)}.chat-main__bar-btn--primary:hover{opacity:.9}.chat-main__content{flex-direction:column;flex:1;min-height:0;display:flex}.chat-main__empty{color:var(--color-muted,#666);flex:1;justify-content:center;align-items:center;padding:2rem;font-size:.95rem;display:flex}.user-search-modal{width:min(520px,94vw)}.user-search-modal__body{max-height:70vh;overflow:auto}.user-search-modal__results{flex-direction:column;gap:.5rem;margin-top:.25rem;display:flex}.user-search-modal__item{border:1px solid var(--color-border,#e0e0e0);background:#ffffff80;border-radius:12px;align-items:center;gap:.65rem;padding:.55rem .65rem;display:flex}.user-search-modal__actions{flex-wrap:wrap;justify-content:flex-end;gap:.4rem;margin-left:auto;display:flex}.user-search-modal__btn{padding:.38rem .6rem;font-size:.78rem}.user-search-modal__meta{min-width:0}.user-search-modal__name{font-weight:700;line-height:1.15}.user-search-modal__id{color:var(--color-muted,#666);margin-top:.1rem;font-size:.85rem}.user-search-modal__hint{color:var(--color-muted,#666);padding:.25rem .1rem;font-size:.92rem}@media (max-width:640px){.chat-page{padding:.5rem}.chat-grid{grid-template-columns:1fr;gap:.75rem}.friends-rail{display:none}.chat-container{border-radius:var(--radius)}.dashboard-page{border-radius:var(--radius);padding:.8rem}.dashboard-page__time{font-size:clamp(2.6rem,15vw,5.2rem)}.dashboard-page__settings-grid{grid-template-columns:1fr}.dashboard-page__city-field{grid-column:auto}.chat-sidebars{display:none}.chat-main__bar{gap:.5rem}.chat-main__channel-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.chat-main__bar-actions{flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.chat-main__bar-btn--nav{display:inline-flex}.chat-mobile-overlay{pointer-events:none;z-index:50;display:block;position:absolute;inset:0}.chat-mobile-overlay--open{pointer-events:auto}.chat-mobile-overlay__backdrop{-webkit-backdrop-filter:blur(4px);background:#00000059;border:none;position:absolute;inset:0}.chat-mobile-drawer{background:var(--surface-1);border-right:1px solid var(--color-border);width:min(320px,92vw);position:absolute;top:0;bottom:0;left:0;overflow:auto;box-shadow:12px 0 38px #0000002e}.chat-mobile-drawer .server-list{border-right:none;width:72px}.chat-mobile-drawer .channel-list{border-right:none;width:100%}.saved-content-page--dm{flex-direction:column}.dm-conversations-sidebar{z-index:55;border-radius:0 var(--radius,12px)var(--radius,12px)0;width:min(320px,92vw);max-width:100%;transition:transform .2s;position:absolute;top:0;bottom:0;left:0;transform:translate(-102%);box-shadow:12px 0 38px #0000002e}.dm-conversations-sidebar--open{transform:translate(0)}.dm-conversations-sidebar__backdrop{z-index:54;-webkit-backdrop-filter:blur(4px);cursor:pointer;background:#00000059;border:none;margin:0;padding:0;display:block;position:absolute;inset:0}.dm-conversations-sidebar__toggle{border:1px solid var(--color-border,#e0e0e0);background:var(--surface-2,#f5f5f5);color:var(--color-text,#1a1a1a);cursor:pointer;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;padding:.35rem .65rem;font-size:.85rem;font-weight:600;display:inline-flex}}
