:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6fb;
    color: #182033;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(100%, 440px);
    padding: 36px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 18px 55px rgba(31, 42, 68, 0.12);
}

h1 { margin: 0 0 10px; font-size: 28px; }
.subtitle { margin: 0 0 28px; color: #687086; line-height: 1.5; }
label { display: block; margin: 18px 0 8px; font-weight: 600; }

input {
    width: 100%;
    border: 1px solid #d8ddea;
    border-radius: 11px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

input:focus { border-color: #5167f6; box-shadow: 0 0 0 3px #5167f622; }

button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 11px;
    padding: 14px;
    background: #5167f6;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover { background: #4055df; }
button:disabled { opacity: .65; cursor: wait; }
.error { min-height: 22px; margin: 14px 0 0; color: #c53245; }
.email { padding: 15px; border-radius: 11px; background: #f0f3ff; font-weight: 700; }
.secondary { background: #edf0f7; color: #343d55; }
.secondary:hover { background: #e1e5ef; }
.auth-switch { margin: 22px 0 0; text-align: center; color: #687086; }
.auth-switch a { color: #5167f6; font-weight: 700; text-decoration: none; }
.chat-page { display: grid; height: 100vh; min-height: 0; overflow: hidden; padding: 24px; background: #eef1f8; }
.messenger { display: grid; grid-template-columns: 310px 1fr; width: min(1120px, 100%); height: min(780px, calc(100vh - 48px)); overflow: hidden; background: white; border-radius: 22px; box-shadow: 0 20px 65px rgba(31,42,68,.14); }
.sidebar { display: flex; min-height: 0; flex-direction: column; overflow: hidden; border-right: 1px solid #e7eaf2; background: #fbfcff; }
.profile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; border-bottom: 1px solid #e7eaf2; }
.profile strong { display:block; margin-top:4px; max-width:215px; overflow:hidden; text-overflow:ellipsis; }.muted,.status{color:#81899d;font-size:13px}
.profile-info{min-width:0;flex:1}.profile-avatar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0;padding:0;overflow:hidden;border-radius:50%;background:#7566ef;color:white;font-size:19px}.profile-avatar img,.avatar img{width:100%;height:100%;object-fit:cover}.change-avatar{width:auto;margin:5px 0 0;padding:0;background:transparent;color:#5167f6;font-size:11px;font-weight:700}.change-avatar:hover{background:transparent;color:#4055df}.conversation-header>.status{display:none}
.profile-link{margin-left:9px;color:#5167f6;font-size:11px;font-weight:700;text-decoration:none}
.profile small{display:block;max-width:205px;margin-top:2px;color:#81899d;overflow:hidden;text-overflow:ellipsis}.friend-search{display:flex;gap:6px;padding:14px 12px 4px}.friend-search input{min-width:0;padding:10px 11px;font-size:13px}.friend-search button{flex:0 0 40px;width:40px;margin:0;padding:0;font-size:22px}.search-results{margin:8px 10px;padding:8px;border:1px solid #e0e4f0;border-radius:12px;background:white;box-shadow:0 8px 24px rgba(31,42,68,.1)}.search-results>p{margin:8px;color:#81899d;font-size:13px}.search-result{display:flex;align-items:center;gap:8px;padding:7px}.search-result>span{min-width:0;flex:1;font-size:12px;overflow-wrap:anywhere}.search-result button{width:auto;margin:0;padding:7px 9px;font-size:11px}.user-identity{min-width:0;display:flex;flex:1;flex-direction:column}.user-identity strong,.user-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-identity small{margin-top:3px;color:#8991a3;font-size:11px;font-weight:400}
.presence-status.online,.recipient-status.online{color:#24a16f}.recipient-status{display:block;margin-top:4px;color:#8991a3;font-size:12px}
.icon-button{width:40px;height:40px;margin:0;padding:0;border-radius:50%;background:#eef1f8;color:#4d566e;font-size:20px}.contacts-title{padding:20px 22px 10px;color:#697187;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.users-list{min-height:0;overflow-y:auto;padding:4px 10px}
button.user-item{display:flex;align-items:center;gap:12px;width:100%;margin:2px 0;padding:11px 12px;border-radius:12px;background:transparent;color:#252d42;font-weight:600;text-align:left}button.user-item:hover,button.user-item.active{background:#e9edff;color:#4055df}.avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#6e80f9,#966be8);color:white;font-size:17px}.empty-state{margin:16px 22px;color:#81899d;font-size:14px;line-height:1.55}
.avatar{overflow:hidden;cursor:zoom-in}.avatar-dialog,.avatar-view-dialog{padding:24px;border:0;border-radius:18px;box-shadow:0 20px 70px rgba(20,28,48,.3)}.avatar-dialog::backdrop,.avatar-view-dialog::backdrop{background:rgba(15,20,34,.65)}.avatar-dialog h2{margin:0 0 16px}.avatar-dialog canvas{display:block;width:min(320px,75vw);height:min(320px,75vw);border-radius:50%;background:#eef1f8}.avatar-dialog>label{margin-top:14px}.avatar-dialog>input{padding:0}.dialog-close{position:absolute;right:12px;top:10px;width:34px;height:34px;margin:0;padding:0;border-radius:50%;background:#eef1f8;color:#3f475c;font-size:22px}.avatar-view-dialog{max-width:min(700px,90vw);padding:12px}.avatar-view-dialog img{display:block;max-width:80vw;max-height:80vh;border-radius:14px}
.unread-badge{display:grid;place-items:center;min-width:22px;height:22px;margin-left:auto;padding:0 6px;border-radius:11px;background:#5167f6;color:white;font-size:11px;font-weight:800}.unread-badge[hidden]{display:none}
.conversation{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#f7f8fc}.conversation-header{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:78px;padding:20px 26px;background:white;border-bottom:1px solid #e7eaf2}.messages{display:flex;min-height:0;flex-direction:column;gap:10px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:28px;scrollbar-gutter:stable}.welcome{margin:auto;max-width:360px;color:#7a8297;text-align:center}.welcome h1{color:#252d42}.welcome-icon{display:block;margin-bottom:14px;font-size:46px}.dialog-empty{margin:auto;color:#9299aa}
.message{align-self:flex-start;display:flex;align-items:flex-end;gap:10px;max-width:min(72%,560px);padding:12px 15px;border-radius:16px 16px 16px 4px;background:white;box-shadow:0 3px 12px rgba(32,42,67,.07);line-height:1.45;overflow-wrap:anywhere}.message.mine{align-self:flex-end;border-radius:16px 16px 4px 16px;background:#5167f6;color:white}.message time{flex:0 0 auto;color:#9ba2b2;font-size:11px}.message.mine time{color:#dfe3ff}.composer{position:relative;z-index:1;display:flex;flex:0 0 auto;align-items:center;gap:12px;padding:18px 22px;background:white;border-top:1px solid #e7eaf2}.composer input{margin:0}.composer button{width:auto;margin:0;padding-inline:22px}
.message-body{display:flex;flex-direction:column;gap:8px;min-width:0}.message-image{display:block;max-width:320px;max-height:300px;border-radius:10px;object-fit:contain;cursor:zoom-in}.message-image:focus-visible{outline:3px solid #9eabff;outline-offset:3px}.message-audio{display:block;width:min(320px,60vw);height:40px}.attachment-link{color:inherit;font-size:12px}.compose-content{flex:1;min-width:0}.attachment-name{display:block;margin:0 0 6px;color:#5167f6;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attach-button{display:grid;place-items:center;flex:0 0 42px;height:42px;margin:0;border-radius:50%;background:#eef1f8;color:#5167f6;font-size:28px;font-weight:400;cursor:pointer}.attach-button:hover{background:#e2e7ff}
.composer .bubu-send{position:relative;flex:0 0 58px;width:58px;height:58px;padding:0;overflow:visible;border-radius:0;background:transparent;box-shadow:none;transition:transform .18s ease}.composer .bubu-send:hover{background:transparent;transform:translateY(-2px) scale(1.04)}.bubu-send img{display:block;width:100%;height:100%;object-fit:contain;transform:scale(1.28);filter:drop-shadow(0 4px 5px rgba(108,65,72,.24));transition:filter .18s ease}.bubu-send:hover img{filter:drop-shadow(0 7px 6px rgba(108,65,72,.3))}.bubu-send::before,.bubu-send::after{position:absolute;z-index:2;content:"";pointer-events:none;opacity:0}.bubu-send::before{left:17px;top:29px;width:10px;height:8px;border-radius:50%;background:#fff}.bubu-send::after{left:18px;top:31px;width:8px;height:4px;border-top:2px solid #54271f;border-radius:50%}.bubu-send.is-winking{animation:bubu-bounce .62s ease}.bubu-send.is-winking::before,.bubu-send.is-winking::after{animation:bubu-wink .62s ease}.bubu-send:disabled{opacity:.8;cursor:wait}@keyframes bubu-bounce{0%,100%{transform:scale(1)}35%{transform:scale(.9) rotate(-4deg)}65%{transform:scale(1.08) rotate(3deg)}}@keyframes bubu-wink{0%,20%,82%,100%{opacity:0}35%,68%{opacity:1}}@media(prefers-reduced-motion:reduce){.bubu-send.is-winking{animation:none}.bubu-send.is-winking::before,.bubu-send.is-winking::after{animation:none}}
@media(max-width:720px){.chat-page{height:100dvh;padding:0}.messenger{grid-template-columns:82px 1fr;height:100dvh;border-radius:0}.profile{padding:14px 10px}.profile>div,.contacts-title,.user-item span:not(.avatar),.status{display:none}.users-list{padding:6px}button.user-item{justify-content:center;padding:8px}.messages{padding:16px}.message{max-width:88%}.composer{padding:12px}.composer button{padding-inline:12px}.composer .bubu-send{padding:0}}
.telemost-page{background:#eef1f8}.telemost-card{width:min(900px,100%);padding:34px;border-radius:22px;background:white;box-shadow:0 18px 55px rgba(31,42,68,.12)}.telemost-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.telemost-card h1{margin:5px 0}.telemost-card header p{margin:0;color:#788096}.telemost-card header a{color:#5167f6;font-weight:700;text-decoration:none}.room-label{color:#5167f6;font-size:11px;font-weight:800;letter-spacing:.1em}.room-panel{min-height:300px;margin-top:28px;padding:24px;border-radius:18px;background:#f5f7fc}.room-state{margin-bottom:20px;color:#697187;font-weight:700}.participants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.participant{display:grid;grid-template-columns:48px 1fr;align-items:center;padding:14px;border-radius:14px;background:white}.participant .room-avatar{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#7566ef;color:white;font-weight:800}.participant small{color:#24a16f}.room-controls{display:flex;gap:12px}.room-controls button{margin-top:16px}.room-controls .danger{background:#d74d62}.room-controls .danger:hover{background:#c43d52}@media(max-width:600px){.telemost-card{min-height:100vh;border-radius:0;padding:22px}.telemost-card header{flex-direction:column}.participants{grid-template-columns:1fr}.room-controls{flex-direction:column}.room-controls button{margin-top:4px}}
.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}.video-tile{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:14px;background:#1b2030}.video-tile video{display:block;width:100%;height:100%;object-fit:cover}.video-tile span{position:absolute;left:10px;bottom:9px;padding:4px 7px;border-radius:7px;background:rgba(0,0,0,.55);color:white;font-size:12px}@media(max-width:600px){.video-grid{grid-template-columns:1fr}}
.room-password{max-width:360px;margin-top:20px}.room-password label{margin-top:0}
.feed-page{display:block;height:100vh;min-height:0;overflow:hidden;padding:0;background:#f3f5fa}.feed-app{display:grid;grid-template-columns:250px minmax(0,1fr);height:100vh;min-height:0;overflow:hidden}.feed-sidebar{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;padding:28px 18px;border-right:1px solid #e3e7f0;background:#fff}.feed-brand{display:flex;align-items:center;gap:10px;padding:0 10px;color:#20283b;font-size:19px;font-weight:800;text-decoration:none}.feed-brand>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#5167f6;color:#fff}.feed-nav{display:flex;flex-direction:column;gap:7px;margin-top:38px}.feed-nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:12px;color:#646d82;font-weight:700;text-decoration:none}.feed-nav a:hover,.feed-nav a.active{background:#eef1ff;color:#4055df}.feed-profile{display:grid;grid-template-columns:42px minmax(0,1fr) 32px;align-items:center;gap:10px;margin-top:auto;padding:13px 8px;border-top:1px solid #edf0f5}.feed-profile>span:nth-child(2){display:flex;min-width:0;flex-direction:column}.feed-profile strong,.feed-profile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feed-profile small{margin-top:3px;color:#8b93a5;font-size:11px}.feed-profile button{width:32px;height:32px;margin:0;padding:0;border-radius:50%;background:#eef1f8;color:#596176}.feed-avatar{display:grid;place-items:center;width:42px;height:42px;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#6e80f9,#966be8);color:#fff;font-weight:800}.feed-avatar img{width:100%;height:100%;object-fit:cover}.feed-main{width:min(780px,calc(100% - 40px));height:100vh;margin:0 auto;padding:46px 0 70px;overflow-y:auto}.feed-header{display:flex;align-items:center;justify-content:space-between;gap:30px}.feed-header h1{margin:5px 0 4px;font-size:34px}.feed-header p{margin:0;color:#7c8497}.feed-eyebrow{color:#5167f6;font-size:11px;font-weight:800;letter-spacing:.12em}.feed-refresh{width:44px;height:44px;margin:0;padding:0;border-radius:50%;background:#fff;color:#5167f6;box-shadow:0 5px 18px rgba(31,42,68,.09);font-size:23px}.feed-tabs{display:flex;gap:8px;margin:28px 0 18px}.feed-tabs button{width:auto;margin:0;padding:10px 16px;border-radius:20px;background:#e8ebf3;color:#6c7488}.feed-tabs button.active{background:#5167f6;color:#fff}.feed-new-posts{position:sticky;z-index:2;top:12px;width:100%;margin:0 0 14px;padding:11px;background:#20283b;box-shadow:0 8px 24px rgba(22,30,49,.18)}.feed-posts{display:flex;flex-direction:column;gap:16px}.feed-card{overflow:hidden;padding:20px 22px;border:1px solid #e7eaf2;border-radius:18px;background:#fff;box-shadow:0 7px 26px rgba(31,42,68,.07)}.feed-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.feed-group-link{display:flex;min-width:0;align-items:center;gap:12px;color:inherit;text-decoration:none}.feed-group-link>span:last-child{display:flex;min-width:0;flex-direction:column}.feed-group-link strong{font-size:15px}.feed-group-link small{margin-top:3px;color:#8a92a4;font-size:12px}.feed-group-cover{display:grid;place-items:center;flex:0 0 46px;height:46px;overflow:hidden;border-radius:13px;background:linear-gradient(135deg,#6d7df6,#9a68e4);color:#fff;font-weight:800}.feed-group-cover img{width:100%;height:100%;object-fit:cover}.feed-card-content{margin:18px 0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.feed-media{display:block;width:100%;max-height:620px;margin-top:16px;border-radius:14px;object-fit:contain;background:#f4f5f8}.feed-audio{display:block;width:100%;margin-top:16px}.feed-comments{margin-top:17px;padding-top:13px;border-top:1px solid #edf0f5}.feed-comments summary{color:#5167f6;font-size:13px;font-weight:700;cursor:pointer}.feed-comments-list{display:flex;flex-direction:column;gap:9px;margin-top:12px;color:#858da0;font-size:13px}.feed-comment{display:grid;grid-template-columns:auto 1fr auto auto;align-items:start;gap:8px;color:#333b4f}.feed-comment strong{color:#4055df}.feed-comment time{color:#969dae;font-size:11px}.feed-comment-form{display:flex;gap:8px;margin-top:12px}.feed-comment-form input{min-width:0;flex:1;padding:10px 11px}.feed-comment-form button{width:auto;margin:0;padding:10px 13px;font-size:12px}.feed-empty{padding:70px 20px;color:#7e8698;text-align:center}.feed-empty>span{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 16px;border-radius:50%;background:#e6f8f0;color:#25a474;font-size:28px}.feed-empty h2{margin:0;color:#293146}.feed-empty p{margin:8px 0 20px}.feed-empty a{color:#5167f6;font-weight:700;text-decoration:none}.feed-more{width:auto;margin:22px auto 0;padding-inline:24px}.feed-error{color:#c53245;text-align:center}
.feed-reactions,.post-reactions{display:flex;align-items:center;gap:8px;margin-top:16px}.feed-reactions button,.post-reactions button{display:flex;align-items:center;gap:7px;width:auto;margin:0;padding:8px 12px;border:1px solid #e4e8f1;border-radius:18px;background:#f7f8fb;color:#697187;font-weight:700}.feed-reactions button:hover,.post-reactions button:hover{border-color:#cfd5e8;background:#eef1ff}.feed-reactions button.active,.post-reactions button.active{border-color:#5167f6;background:#e8edff;color:#4055df}.feed-reactions button:disabled,.post-reactions button:disabled{cursor:not-allowed}.post-views{display:flex;align-items:center;gap:6px;margin-left:auto;padding:8px 3px;color:#8b93a5;font-size:13px;font-weight:700}.feed-sentinel{height:2px}
.shell-chats{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:24px;padding-top:18px;border-top:1px solid #edf0f5}.shell-chats>header{padding:0 10px 10px;color:#7b8396;font-size:11px;letter-spacing:.1em;text-transform:uppercase}.shell-friend-search{padding:0 6px 9px}.shell-friend-search input{padding:9px 11px;font-size:12px}.shell-users{min-height:0;overflow-y:auto}.shell-user{display:flex;align-items:center;gap:10px;width:100%;margin:2px 0;padding:9px;border-radius:12px;background:transparent;color:#2c3448;text-align:left}.shell-user:hover,.shell-user.active{background:#e9edff;color:#4055df}.shell-user .avatar{flex-basis:38px;height:38px}.shell-user .user-identity strong{font-size:13px}.shell-user .presence-status{font-size:10px}.shell-empty-users{padding:8px;color:#9299aa;font-size:12px;line-height:1.4}.shell-chats .search-results{position:absolute;z-index:5;left:12px;width:226px;margin-top:70px}.shell-chat-view{min-width:0;min-height:0;height:100vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#f7f8fc}.shell-chat-view[hidden],.feed-main[hidden]{display:none}.shell-chat-view .messages{height:100%;min-height:0;padding:28px max(24px,calc((100% - 760px)/2));overflow-y:scroll}.shell-chat-view .composer{padding-inline:max(22px,calc((100% - 800px)/2))}

.chat-gallery{width:min(1100px,96vw);height:min(850px,94vh);padding:16px;border:0;border-radius:20px;background:#111522;color:#fff;box-shadow:0 24px 90px rgba(7,10,18,.55)}.chat-gallery::backdrop{background:rgba(7,10,18,.82)}.chat-gallery .dialog-close{z-index:3;background:rgba(255,255,255,.14);color:#fff}.chat-gallery-stage{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;height:calc(100% - 64px);gap:12px}.chat-gallery-stage img{display:block;max-width:100%;max-height:100%;margin:auto;object-fit:contain}.chat-gallery-nav{width:48px;height:48px;margin:0;padding:0;border-radius:50%;background:rgba(255,255,255,.12);font-size:36px}.chat-gallery-nav:hover{background:rgba(255,255,255,.22)}.chat-gallery footer{display:flex;align-items:center;justify-content:space-between;gap:18px;height:56px;padding:8px 64px}.chat-gallery footer span{display:flex;min-width:0;flex-direction:column}.chat-gallery footer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-gallery footer small{margin-top:3px;color:#aeb6c9}.chat-gallery footer a{color:#aebcff;font-weight:700;text-decoration:none}@media(max-width:600px){.chat-gallery{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.chat-gallery-stage{grid-template-columns:38px minmax(0,1fr) 38px}.chat-gallery-nav{width:36px;height:44px}.chat-gallery footer{padding-inline:42px}}
.delete-cross{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;margin:0;padding:0;border-radius:50%;background:transparent;color:#d24b5c;font-size:22px;font-weight:500;line-height:1;opacity:.58;transition:background .15s ease,color .15s ease,opacity .15s ease}.delete-cross:hover{background:#ffe9ec;color:#b92338;opacity:1}.delete-cross:focus-visible{outline:3px solid #f3aab4;outline-offset:2px}.delete-cross:disabled{opacity:.35}.group-post{position:relative}.group-post>.post-delete{position:absolute;top:12px;right:12px}.group-post>.post-meta{padding-right:34px}.comment-delete{width:24px;height:24px;flex-basis:24px;font-size:19px}
.shell-groups-view{display:grid;grid-template-columns:260px minmax(0,1fr);height:100vh;min-width:0;overflow:hidden;background:#fff}.shell-groups-view[hidden]{display:none}.shell-groups-list-panel{min-height:0;padding:24px 12px;border-right:1px solid #e4e8f1;overflow-y:auto}.shell-groups-list-panel>header{display:flex;align-items:center;justify-content:space-between;padding:0 8px 14px}.shell-groups-list-panel h1{margin:0;font-size:23px}.shell-groups-list-panel>header button{width:auto;margin:0;padding:9px 11px;font-size:12px}.shell-group-search{margin:0 8px 14px;width:calc(100% - 16px);padding:10px 11px;font-size:12px}.shell-groups-empty{margin:18px 9px;color:#8b93a5;font-size:13px}.shell-groups-view>.group-feed{height:100vh}.shell-groups-view .group-post{width:min(720px,100%)}
.shell-telemost-view{min-width:0;height:100vh;padding:34px;overflow-y:auto;background:#eef1f8}.shell-telemost-view[hidden]{display:none}.shell-telemost-view .telemost-card{width:min(960px,100%);min-height:calc(100vh - 68px);margin:0 auto}.shell-telemost-view .room-panel{min-height:360px}
@media(max-width:720px){.shell-telemost-view{height:100dvh;padding:0}.shell-telemost-view .telemost-card{min-height:100dvh;border-radius:0;padding:20px}.shell-telemost-view .room-panel{min-height:260px;padding:14px}.shell-telemost-view .room-controls{flex-direction:column}.shell-telemost-view .room-controls button{margin-top:4px}}
@media(max-width:720px){.feed-page,.feed-app,.feed-sidebar,.shell-chat-view{height:100dvh}.feed-app{grid-template-columns:72px minmax(0,1fr)}.feed-sidebar{padding:18px 9px max(10px,env(safe-area-inset-bottom))}.feed-brand{justify-content:center;padding:0}.feed-brand>span{width:40px;height:40px}.feed-brand{font-size:0}.feed-nav a{justify-content:center;padding:12px;font-size:20px}.feed-nav a span,.feed-profile>span:nth-child(2),.feed-profile button,.shell-chats>header,.shell-friend-search,.shell-user .user-identity{display:none}.feed-profile{display:flex;justify-content:center;padding:12px 0}.shell-chats{margin-top:14px;padding-top:8px}.shell-user{justify-content:center;padding:7px 2px}.shell-user .avatar{flex-basis:38px}.shell-chats .search-results{display:none}.feed-main{width:calc(100% - 24px);height:100dvh;padding-top:24px}.feed-header h1{font-size:28px}.feed-header p{font-size:13px}.feed-card{padding:16px}.feed-comment{grid-template-columns:1fr}.feed-comment time{display:none}.shell-chat-view .messages{padding:16px}.shell-chat-view .composer{gap:8px;padding:10px 10px max(10px,env(safe-area-inset-bottom))}.shell-chat-view .composer .compose-content{min-width:0}.shell-chat-view .composer input{min-width:0;padding:11px 10px}.shell-chat-view .composer .attach-button{flex-basis:40px;height:40px}.shell-chat-view .composer .bubu-send{flex-basis:48px;width:48px;height:48px;padding:0}.shell-groups-view{grid-template-columns:104px minmax(0,1fr)}.shell-groups-list-panel{padding:12px 6px}.shell-groups-list-panel>header{flex-direction:column;gap:8px;padding-inline:2px}.shell-groups-list-panel h1{font-size:17px}.shell-group-search{margin-inline:0;width:100%;padding:8px 7px;font-size:10px}.shell-groups-view .group-list-item{justify-content:center;padding:7px}.shell-groups-view .group-list-item>span:last-child{display:none}}
.groups-page{display:block;height:100vh;padding:22px;background:#eef1f8;overflow:hidden}.groups-app{display:grid;grid-template-columns:300px 1fr;width:min(1180px,100%);height:calc(100vh - 44px);margin:auto;overflow:hidden;border-radius:22px;background:white;box-shadow:0 18px 55px rgba(31,42,68,.12)}.groups-sidebar{min-height:0;padding:20px 12px;border-right:1px solid #e4e8f1;overflow-y:auto}.groups-sidebar>header{display:flex;align-items:center;justify-content:space-between}.groups-sidebar>header a{color:#5167f6;text-decoration:none}.groups-sidebar>header button{width:auto;margin:0;padding:9px 12px}.groups-sidebar h1{margin:24px 8px 14px}.groups-list{display:flex;flex-direction:column;gap:5px}.group-list-item{display:flex;align-items:center;gap:11px;margin:0;padding:10px;border-radius:13px;background:transparent;color:#242c40;text-align:left}.group-list-item:hover,.group-list-item.active{background:#e9edff;color:#4055df}.group-list-item>span:last-child{min-width:0;display:flex;flex-direction:column}.group-list-item strong,.group-list-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-list-item small{margin-top:3px;color:#8991a3}.group-list-cover,.group-cover-inner{display:grid;place-items:center;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#6d7df6,#9a68e4);color:white;font-weight:800}.group-list-cover{flex:0 0 48px;height:48px}.group-list-cover img,.group-cover-inner img{display:block;width:100%;height:100%;object-fit:cover}.group-feed{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f6f7fb}.group-feed>header{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:100px;padding:18px 24px;background:white;border-bottom:1px solid #e4e8f1}.group-feed>header h2,.group-feed>header p{margin:0;overflow:hidden;text-overflow:ellipsis}.group-feed>header p{margin-top:3px;color:#788096;white-space:nowrap}.group-feed>header button{width:auto;margin:0}.group-cover{width:64px;height:64px;overflow:hidden}.group-cover-inner{width:100%;height:100%;font-size:24px}.group-posts{min-height:0;overflow-y:auto;padding:26px}.group-post{width:min(680px,100%);margin:0 auto 16px;padding:20px;border-radius:16px;background:white;box-shadow:0 4px 18px rgba(31,42,68,.08)}.group-post .post-meta{color:#7e8699;font-size:12px}.group-post p{white-space:pre-wrap;overflow-wrap:anywhere}.group-post>img{display:block;max-width:100%;max-height:520px;border-radius:12px;object-fit:contain}.group-post audio{width:100%}.post-form{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px 22px;background:white;border-top:1px solid #e4e8f1}.post-form textarea{grid-column:1/3;min-height:72px;padding:12px;border:1px solid #d8ddea;border-radius:11px;resize:vertical;font:inherit}.post-form button{grid-column:2;width:auto;margin:0}.custom-file{display:flex;align-items:center;gap:10px;min-width:0}.custom-file label{display:inline-flex;width:max-content;margin:0;padding:9px 12px;border-radius:10px;background:#eef1ff;color:#5167f6;font-size:13px;font-weight:700;cursor:pointer}.custom-file label:hover{background:#e2e7ff}.custom-file span{min-width:0;color:#858da0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.create-group-dialog{width:min(520px,90vw);padding:28px;border:0;border-radius:18px}.create-group-dialog::backdrop{background:rgba(15,20,34,.65)}.create-group-dialog textarea{width:100%;min-height:90px;padding:12px;border:1px solid #d8ddea;border-radius:11px;font:inherit}.create-group-dialog .custom-file{margin-top:18px}.group-feed>.welcome{align-self:center}.post-comments{margin-top:18px;padding-top:12px;border-top:1px solid #edf0f5}.post-comment{display:grid;grid-template-columns:auto 1fr auto;gap:7px;padding:7px 0;font-size:13px}.post-comment strong{color:#4055df}.post-comment time{color:#939aac;font-size:11px}.comment-form{display:flex;gap:8px;margin-top:10px}.comment-form input{min-width:0;flex:1;padding:9px 11px}.comment-form button{width:auto;margin:0;padding:9px 12px;font-size:12px}@media(max-width:700px){.groups-page{padding:0}.groups-app{grid-template-columns:120px 1fr;height:100dvh;border-radius:0}.groups-sidebar{padding:10px 6px}.groups-sidebar h1{font-size:17px}.groups-sidebar>header{flex-direction:column;gap:8px}.group-list-item{justify-content:center}.group-list-item>span:last-child{display:none}.group-feed>header{grid-template-columns:50px minmax(0,1fr);padding:12px}.group-feed>header button{grid-column:1/3}.group-cover{width:48px;height:48px}.group-posts{padding:12px}.post-form{grid-template-columns:1fr}.post-form textarea,.post-form button{grid-column:1}.custom-file{align-items:flex-start;flex-direction:column}.post-comment{grid-template-columns:1fr}.post-comment time{display:none}}
