/* RUS: quiet blue surfaces, warm gold, consistent touch targets. */
:root{--comfort-surface:#13233a;--comfort-line:#2a405c;--message-emoji-size:30px;--visual-height:100dvh}
[hidden]{display:none!important}.comfort-global-search{margin-right:auto;min-width:180px;justify-content:flex-start;color:#b9c8de}.header-actions{flex:1;justify-content:flex-end;min-width:0}.topbar-label{margin-right:24px}.topbar{gap:12px}
.account-menu{position:relative;z-index:60}.account-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:5px 10px;border:1px solid var(--comfort-line);border-radius:15px;cursor:pointer;color:#eef3fa;min-height:44px}.account-menu>summary::-webkit-details-marker{display:none}.account-menu .member-avatar{width:32px;height:32px;min-width:32px;border-radius:11px;object-fit:cover}.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:245px;max-width:calc(100vw - 25px);padding:10px;border:1px solid #496181;border-radius:16px;background:#16283f;box-shadow:0 18px 60px #0009;display:grid;gap:3px}.account-dropdown>a,.account-dropdown>button{border:0;background:none;color:#e8eff9;text-align:left;text-decoration:none;padding:12px;border-radius:9px;font:inherit;cursor:pointer}.account-dropdown>a:hover,.account-dropdown>button:hover{background:#253d59}.account-dropdown>strong{font-size:12px;color:#e3bc79;padding:8px 12px;border-bottom:1px solid var(--comfort-line)}
.nav-group{margin:5px 0;border:0}.nav-group>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 13px;border-radius:12px;color:#c3d1e3;font-size:14px;cursor:pointer;font-weight:600}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:hover,.nav-group.contains-active>summary{background:#1a2d46;color:#f1d297}.nav-group-mark{width:18px;text-align:center;color:#c5a164}.nav-chevron{margin-left:auto;transition:transform .15s}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-group-items{padding:0 0 4px 15px}.nav-group-items .nav-item{min-height:38px;padding:8px 12px;font-size:12px;border-radius:9px;margin:2px 0}.nav-group-items .icon,.nav-group-items .workspace-nav-icon{width:14px;height:14px}.nav-group summary b,.direct-dialog>b{font-size:11px;color:#132035;background:#e8c483;border-radius:20px;padding:2px 6px}.archive-subnav>summary{font-size:12px;color:#b7c5d8;cursor:pointer;padding:10px 12px}.archive-subnav .nav-item{padding-left:24px}.nav-personal{border-bottom:1px solid var(--comfort-line);padding-bottom:10px;margin-bottom:8px}.nav-personal>.text-link{font-size:11px;padding:8px 13px}.sidebar-quote{margin-top:18px}.nav-count{margin-left:auto}
.comfort-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 24px}.comfort-subtabs a{padding:10px 16px;min-height:42px;border:1px solid var(--comfort-line);border-radius:12px;text-decoration:none;color:#b9cadf;display:flex;align-items:center;font-size:13px}.comfort-subtabs a[aria-current=page]{background:#263c56;border-color:#b69860;color:#f1d297}.comfort-page-actions{display:flex;justify-content:flex-end;margin-bottom:8px}.comfort-page-actions .button{min-height:34px;font-size:12px;padding:6px 12px}.comfort-settings{max-width:900px;margin:0 auto;background:var(--comfort-surface);border:1px solid var(--comfort-line);border-radius:22px;padding:28px}.comfort-settings .portal-form{display:grid;gap:20px}.comfort-settings .portal-form>h2{font-size:21px;margin:0 0 4px}.comfort-settings .portal-form>label{display:grid;gap:8px}.comfort-settings .portal-form>label.comfort-switch{display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--comfort-line);text-align:left}.comfort-switch span{display:grid;gap:6px}.comfort-switch strong{font-size:14px;font-weight:500}.comfort-switch small{font-size:12px;color:#9fb2cb;line-height:1.6;max-width:530px}.comfort-switch input[type=checkbox]{appearance:none;width:44px;height:25px;flex:0 0 44px;border-radius:25px;position:relative;background:#263c57;margin:0;display:block;transition:background .2s}.comfort-switch input[type=checkbox]:after{content:'';position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#aebed1;transition:transform .2s}.comfort-switch input[type=checkbox]:checked{background:#d9b16f}.comfort-switch input[type=checkbox]:checked:after{content:'';background:#16243a;transform:translateX(18px)}.comfort-settings label.check-row{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:8px}.comfort-settings label.check-row input{margin:0}.comfort-save-status{color:#9fe0bd;font-size:13px;min-height:20px}.comfort-profile-heading{display:flex;align-items:center;gap:16px;margin-bottom:16px}.comfort-profile-heading .member-avatar{width:70px;height:70px;border-radius:18px;object-fit:cover}.comfort-profile-heading h2{margin:0}.comfort-profile-heading p{color:#d4b57d;margin:5px 0}.comfort-settings .avatar-picker{display:flex;flex-wrap:wrap;gap:10px}.session-panel{margin-top:28px;border-top:1px solid var(--comfort-line);padding-top:20px}.session-row{display:grid;gap:8px;padding:16px 0;border-bottom:1px solid var(--comfort-line)}.session-row small{color:#9cb0cb;line-height:1.6}.session-row strong span{font-size:10px;color:#9fe0bd;margin-left:10px}.session-panel>.button{margin-top:20px}
.saved-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.saved-columns .hq-panel{border-radius:20px;min-width:0}.saved-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--comfort-line)}.saved-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;text-decoration:none;color:#dce6f4;min-width:0;flex:1}.saved-link span:first-child{display:grid;gap:7px;min-width:0}.saved-link strong{overflow-wrap:anywhere;font-size:14px}.saved-link small{color:#9bb0cc;font-size:11px}.comfort-search-form{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.comfort-search-form input{flex:1;min-width:180px}.comfort-search-result{display:block;text-decoration:none;padding:16px;border:1px solid var(--comfort-line);border-radius:14px;margin:10px 0;background:#14243b;color:#e0e9f6}.comfort-search-result:hover{border-color:#b9955a}.comfort-search-result small{display:block;color:#d8b77c;margin-bottom:8px}.comfort-search-result strong{font-size:16px}.comfort-search-result p{font-size:13px;color:#adbed3;line-height:1.7;margin-bottom:0;overflow-wrap:anywhere}.comfort-help{line-height:1.9}.comfort-help li{margin:12px 0}.comfort-help a{color:#e7c58e}.draft-restore{border:1px solid #b79658;border-radius:13px;padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#59442333}.draft-restore span{margin-right:auto}.draft-restore .button{font-size:12px}
/* Shared messenger, preserving both existing chat APIs and links. */
body.in-messenger .view:not([hidden])>.page-heading{display:none}body.in-messenger .view:not([hidden])>.comfort-page-actions{margin-top:0;margin-bottom:8px}body.in-messenger .main-content{padding-top:20px}.messenger-layout,.direct-workspace{display:grid;grid-template-columns:285px minmax(0,1fr);height:calc(100dvh - 150px);min-height:500px;max-height:1000px;background:#0d1c30;border:1px solid var(--comfort-line);border-radius:22px;overflow:hidden;box-shadow:0 16px 60px #0002}.direct-sidebar{background:#112238;padding:18px 12px;border-right:1px solid var(--comfort-line);overflow:auto;min-width:0;display:flex;flex-direction:column;gap:12px}.direct-sidebar h2{font-size:20px;margin:0 8px 3px}.direct-sidebar input,.direct-sidebar select{width:100%}.new-dialog-label{font-size:11px;color:#a4b7d0;display:grid;gap:6px}.direct-dialogs{display:grid;gap:5px;align-content:start}.direct-dialog{display:flex;align-items:center;gap:10px;padding:12px 10px;border:1px solid transparent;border-radius:14px;color:#dce6f4;text-decoration:none;min-width:0;position:relative}.direct-dialog:hover{background:#192e49}.direct-dialog.selected{background:#243b57;border-color:#8a744e}.direct-dialog>.member-avatar,.common-avatar{width:42px;height:42px;min-width:42px;object-fit:cover;border-radius:14px;display:inline-flex;align-items:center;justify-content:center}.common-avatar{background:linear-gradient(135deg,#274e74,#172b44);border:1px solid #a68b5a;color:#f0ce8b;font-size:25px;font-family:Georgia,serif}.direct-dialog>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}.direct-dialog strong{font-size:13px}.direct-dialog small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#94a9c6;max-width:175px}.direct-dialog time{font-size:10px;color:#91a5bf}.messenger-voice-link{margin-top:auto;padding:14px 10px;border-top:1px solid var(--comfort-line);color:#d7bd8e;font-size:12px;text-decoration:none}.messenger-chat-pane,.direct-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 20% 20%,#152a4429,transparent 65%),#0e1d31;padding:0;position:relative}.messenger-heading,.direct-heading{min-height:76px;display:flex;gap:12px;align-items:center;padding:12px 22px;background:#14263d;border-bottom:1px solid var(--comfort-line);flex:none}.messenger-heading h2,.direct-heading h2{font-size:17px;margin:0}.messenger-heading small,.direct-heading small{font-size:11px;color:#9eb2cd}.direct-heading>.member-avatar{width:42px;height:42px;object-fit:cover;border-radius:14px}.direct-heading>div:last-child{margin-left:auto;display:flex;gap:5px}.direct-heading .button{font-size:10px;padding:6px 8px;min-height:34px}.direct-back{display:none}.chat-room{background:none;border:0;border-radius:0;display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;position:relative}.chat-room-head{padding:8px 20px;min-height:26px;font-size:11px;color:#8fa7c5;background:none}.chat-presence,.chat-extra-panel{border-bottom:1px solid #223750;padding:0 20px;color:#9eb4d1;flex:none}.chat-presence>summary,.chat-extra-panel>summary{padding:9px 0;font-size:11px;cursor:pointer;min-height:30px}.chat-extra-panel .workspace-controls{padding:8px 0}.chat-extra-panel .workspace-controls label{flex:1}.chat-extra-panel input{width:100%}.chat-pins{padding:10px 0;font-size:12px}.chat-alerts{padding:0 20px;font-size:11px}.chat-log,.direct-list{flex:1;min-height:80px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3a506c transparent;padding:20px 26px;display:flex;flex-direction:column;gap:12px;background:none;max-height:none;height:auto}.chat-message,.direct-message{position:relative;align-self:flex-start;max-width:78%;width:fit-content;margin:0;padding:13px 17px;border:1px solid #2b4562;border-radius:18px 18px 18px 6px;background:#19304a;box-shadow:0 3px 12px #0001;flex:none;overflow-wrap:anywhere;min-width:130px}.chat-message.own,.direct-message.mine{align-self:flex-end;margin-left:auto;border-radius:18px 18px 6px 18px;background:#283b50;border-color:#706244}.chat-author{display:flex;align-items:center;gap:7px;padding-right:22px;margin:0 0 8px;flex-wrap:wrap}.chat-author .chat-avatar{width:25px;height:25px;object-fit:cover;border-radius:9px}.chat-author button{font-size:12px;color:#e6c58e;background:none;border:0;padding:0;cursor:pointer}.chat-author time,.direct-message header small{font-size:9px;color:#a7b8cd;line-height:1.6}.chat-title{font-size:9px}.chat-body,.direct-body{font-size:14px;line-height:1.6;white-space:pre-wrap}.chat-body .message-emoji,.direct-body .message-emoji,.chat-body .emoji,.direct-body .emoji{font-size:var(--message-emoji-size);line-height:1.25;vertical-align:middle}.direct-message header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-right:16px;margin-bottom:7px;flex-wrap:wrap}.direct-message header strong{font-size:11px;color:#e9c98d}.chat-photo,.direct-files img{border-radius:13px;max-width:min(100%,330px);max-height:350px;object-fit:contain;margin-top:8px;display:block}.direct-files audio,.chat-message audio{width:min(100%,300px);height:42px;margin-top:10px;border-radius:20px;display:block}.direct-files .file-image{padding:0;background:none;border:0;cursor:zoom-in}.chat-reaction-row{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}.chat-reaction-row:empty{display:none}.chat-reaction-row .reaction{min-height:26px;border-radius:15px;font-size:11px;padding:3px 8px}.message-menu{position:absolute;right:5px;top:5px;z-index:3}.message-menu>summary{list-style:none;width:28px;height:26px;border-radius:8px;text-align:center;font-size:20px;line-height:18px;cursor:pointer;color:#91a6c2}.message-menu>summary::-webkit-details-marker{display:none}.message-menu[open]>summary{background:#354e6a;color:#f2d598}.message-menu>div,.message-menu>footer{position:absolute;right:0;top:30px;display:flex;flex-wrap:wrap;gap:5px;width:225px;padding:10px;background:#203650;border:1px solid #536b88;border-radius:12px;box-shadow:0 10px 35px #0006;margin:0}.message-menu button,.message-menu a{background:#2a425e;color:#e4edf9;border:0;border-radius:8px;padding:8px;font:inherit;font-size:11px;min-height:32px;cursor:pointer}.direct-message footer .button{font-size:11px;padding:6px 8px}.chat-reply,.direct-message blockquote{border-left:3px solid #c6a564;background:#0c1c2e55;padding:8px 10px;border-radius:5px 10px 10px 5px;font-size:12px;margin:6px 0 10px;color:#b9c9de;display:block;text-decoration:none}.chat-deleted{font-size:12px;color:#8fa3bf}.chat-empty{padding:10px 25px;font-size:13px;color:#96acc9}.chat-typing,#direct-typing{padding:3px 20px;font-size:10px;min-height:20px;margin:0;color:#8ea7c8;flex:none}.chat-composer,.direct-form{display:block;margin:0;padding:12px 16px 15px;border-top:1px solid var(--comfort-line);background:#13253b;flex:none}.chat-composer textarea,.direct-form textarea{width:100%;height:auto;min-height:44px;max-height:140px;resize:none;border-radius:16px;padding:12px 15px;font-size:14px;line-height:1.5;background:#0b192b}.chat-composer-tools,.direct-compose-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px}.chat-composer-tools>.button,.direct-compose-actions>.button,.chat-composer-tools .emoji-toggle{border-radius:13px;font-size:11px;min-height:38px;padding:7px 11px}.chat-composer-tools>[type=submit],.direct-compose-actions>[type=submit]{margin-left:auto}.chat-file input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.chat-draft-file,.direct-draft-file,.direct-reply,.chat-draft-reply{display:flex;align-items:center;gap:8px;padding:8px 12px;margin:0 0 8px;font-size:12px;border-radius:10px;background:#20354e}.direct-draft-file .button,.direct-reply .button{margin-left:auto;padding:4px 8px;min-height:28px}#direct-draft{padding:0 15px}.newer-button,.chat-new{position:absolute;bottom:160px;right:24px;z-index:5;font-size:12px;border-radius:25px;box-shadow:0 5px 25px #0005}#direct-older,#chat-older{font-size:11px;border:0;background:none;color:#b8cae1;padding:7px;min-height:30px;flex:none}.inline-file{border-radius:13px;padding:12px;background:#14263d;font-size:12px}.direct-empty{margin:auto;text-align:center;color:#9db2cd;line-height:1.8}.emoji-large-picker button{font-size:28px;min-width:48px;min-height:48px}.media-load-button{font-size:12px;color:#d9bb86}
html[data-compact=true] .chat-log,html[data-compact=true] .direct-list{gap:6px}html[data-compact=true] .chat-message,html[data-compact=true] .direct-message{padding:8px 12px}html[data-reduce-motion=true] *,html[data-reduce-motion=true] *:before,html[data-reduce-motion=true] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.table-scroll,.roster-table-wrap,.ranking-table-wrap{overflow:auto;overscroll-behavior-x:contain;border-radius:12px;max-width:100%}.table-scroll table,.roster-table-wrap table{min-width:570px}.table-scroll thead th,.roster-table-wrap th{position:sticky;top:0;background:#192b43;z-index:2}.table-scroll tr>:first-child,.roster-table-wrap tr>:first-child{position:sticky;left:0;background:#15263d;z-index:1}.table-scroll th:first-child,.roster-table-wrap th:first-child{z-index:3}.table-scroll tr>:nth-child(2),.roster-table-wrap tr>:nth-child(2){min-width:130px}
@media(max-width:1100px){.messenger-layout,.direct-workspace{grid-template-columns:245px minmax(0,1fr)}.direct-sidebar{padding:15px 9px}.direct-dialog small{max-width:135px}.chat-message,.direct-message{max-width:88%}.chat-log,.direct-list{padding:16px}.direct-heading{padding:10px 14px}}
@media(max-width:1000px){.topbar{padding:10px 14px;gap:7px;min-height:65px;position:relative;z-index:35}.topbar-label{display:none}.header-actions{gap:7px}.comfort-global-search{min-width:42px;width:42px;font-size:24px;padding:4px;margin-right:auto}.comfort-global-search span{display:none}.account-menu>summary{padding:4px 7px;gap:6px}.account-menu>summary>span:not(.member-avatar){max-width:85px;overflow:hidden;text-overflow:ellipsis;font-size:11px}.direct-header-link{padding:8px;min-width:38px}.comfort-settings{padding:17px;border-radius:17px}.comfort-subtabs{gap:5px;margin-bottom:18px}.comfort-subtabs a{font-size:11px;padding:9px 11px}.comfort-settings .portal-form{gap:16px}.comfort-settings .portal-form>.comfort-switch{gap:12px}.comfort-switch strong{font-size:13px}.comfort-switch small{font-size:11px}.saved-columns{grid-template-columns:1fr}.comfort-search-form{display:grid;grid-template-columns:1fr auto}.comfort-search-form input{grid-column:1/-1;width:100%;min-width:0}.comfort-page-actions{margin-top:10px}.messenger-layout,.direct-workspace{display:block;height:calc(var(--visual-height) - 120px);min-height:350px;max-height:none;border-radius:16px}.direct-sidebar{height:100%;border:0}.direct-sidebar h2{font-size:22px}.direct-dialog small{max-width:210px}.direct-sidebar .direct-dialog{padding:13px}.direct-dialog .member-avatar,.direct-dialog .common-avatar{width:46px;height:46px;min-width:46px}.direct-workspace:not(.conversation-open) .direct-conversation{display:none}.conversation-open>.direct-sidebar{display:none}.direct-conversation,.messenger-chat-pane{height:100%;width:100%}.direct-back{display:inline-flex;min-height:34px;padding:6px 9px;font-size:10px}.messenger-heading,.direct-heading{min-height:67px;padding:9px 11px;gap:8px}.messenger-heading h2,.direct-heading h2{font-size:14px}.direct-heading .member-avatar{width:32px;height:32px}.direct-heading>div:last-child{display:grid;gap:3px}.direct-heading>div:last-child .button{font-size:8px;min-height:25px;padding:3px 5px}.chat-room-head{padding:4px 12px;min-height:22px;font-size:10px}.chat-extra-panel,.chat-presence{padding:0 12px}.chat-presence summary,.chat-extra-panel summary{font-size:10px;padding:6px 0;min-height:25px}.chat-log,.direct-list{padding:12px 10px;gap:10px}.chat-message,.direct-message{max-width:92%;padding:10px 12px;min-width:110px}.chat-body,.direct-body{font-size:14px}.chat-author{gap:5px}.chat-author time{font-size:8px}.chat-composer,.direct-form{padding:9px 9px calc(9px + env(safe-area-inset-bottom));}.chat-composer textarea,.direct-form textarea{font-size:16px;padding:10px 12px;min-height:44px}.chat-composer-tools,.direct-compose-actions{gap:5px;margin-top:6px}.chat-composer-tools>.button,.direct-compose-actions>.button,.chat-composer-tools .emoji-toggle{padding:7px 8px;font-size:10px;min-height:36px}.chat-composer-tools>[type=submit],.direct-compose-actions>[type=submit]{font-size:10px}.chat-typing,#direct-typing{font-size:9px;min-height:16px;padding:1px 12px}.chat-empty{font-size:11px;padding:4px 12px}.newer-button,.chat-new{bottom:145px;right:12px}.chat-photo,.direct-files img{max-width:100%;max-height:280px}.message-menu>div,.message-menu>footer{width:210px}.in-messenger .mobile-bottom-nav{display:none}.in-messenger main{padding-bottom:5px!important}.in-messenger .main-content{padding-top:8px}.in-messenger footer.site-footer{display:none}.in-messenger .view>.comfort-page-actions{display:none}.in-messenger .view{padding-top:0}.topbar .notification-button{min-width:40px}.comfort-help ol{padding-left:22px}}

.comfort-welcome-note{display:flex;align-items:center;gap:10px;padding:14px 18px;border:1px solid #9b7d4b;border-radius:15px;background:#263951;margin-bottom:20px;font-size:13px}.comfort-welcome-note span{margin-right:auto}.chat-image-link img[data-src]{min-width:180px;min-height:90px;background:#172940;border:1px dashed #6b83a2}

.direct-reaction-row{display:flex;gap:5px;margin-top:6px;flex-wrap:wrap}.direct-reaction-row .button{min-height:26px;font-size:11px;padding:3px 8px;border-radius:14px}.chat-message[data-first-of-day=true]:before,.direct-message[data-first-of-day=true]:before{content:attr(data-day);display:block;color:#91a9c6;font-size:9px;margin-bottom:8px}.chat-message[data-grouped=true] .chat-author button,.chat-message[data-grouped=true] .chat-avatar,.direct-message[data-grouped=true] header strong{display:none}.event-calendar-file{margin-top:10px;font-size:11px}

@media(max-width:1100px){.comfort-global-search{min-width:42px;width:42px;font-size:24px;padding:4px}.comfort-global-search span,.topbar-label{display:none}.account-menu>summary>span:not(.member-avatar){max-width:95px;overflow:hidden;text-overflow:ellipsis}}
.direct-dialog>.common-avatar,.direct-dialog>.member-avatar{flex:0 0 42px;min-width:42px;max-width:42px}.nav-personal>.text-link{background:none;border:0;text-align:left;color:#9eb0c9;cursor:pointer;border-radius:10px}

.conversation-menu{position:relative;margin-left:auto;flex:0 0 34px;z-index:20}.conversation-menu>summary{list-style:none;font-size:24px;min-height:34px;cursor:pointer;text-align:center;border-radius:9px;background:#263d59}.conversation-menu>summary::-webkit-details-marker{display:none}.conversation-menu>div{position:absolute;right:0;top:40px;min-width:190px;padding:10px;background:#233a55;border:1px solid #516b8a;border-radius:12px;display:grid;gap:7px}.direct-heading{flex-wrap:nowrap}.direct-heading>div{min-width:0}.direct-heading>div h2{overflow:hidden;text-overflow:ellipsis}.table-scroll tr>:nth-child(2){position:sticky;left:52px;background:#15263d;z-index:1}.table-scroll tr>:first-child{min-width:52px;width:52px}.table-scroll th:nth-child(2){z-index:3}
@media(max-width:1000px){.messenger-layout,.direct-workspace{min-height:0}.chat-log,.direct-list{min-height:0}.direct-heading>.member-avatar{flex:0 0 32px}.direct-heading>div:last-child{display:block}.chat-message,.direct-message{flex-shrink:0}.in-messenger main{padding-top:12px!important}.direct-heading .direct-back{font-size:10px;white-space:nowrap}.direct-heading h2{max-width:125px}.direct-heading .conversation-menu{margin-left:auto}.in-messenger .site-presence{display:none}}

.direct-compose-actions{flex-wrap:nowrap}.direct-compose-actions>.button{font-size:18px;min-width:40px;min-height:40px;padding:8px 10px}.direct-compose-actions>[type=submit]{margin-left:auto;min-width:52px}.chat-composer-tools>.chat-file{font-size:18px;min-width:40px}.chat-composer-tools>[type=submit]{font-size:18px;min-width:48px}.chat-composer-tools .emoji-picker>summary{font-size:0;min-width:40px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.chat-composer-tools .emoji-picker>summary:before{content:'😊';font-size:20px}.direct-form{overflow:visible}

.direct-workspace>.direct-conversation{min-height:0!important}.messenger-layout>.messenger-chat-pane{min-height:0!important}

@media(max-width:1000px){.direct-workspace:has(.direct-form)>.direct-conversation{height:100%!important;min-height:0!important}.chat-composer-tools{flex-wrap:nowrap}.chat-composer-tools>.emoji-picker{flex:0 0 40px}.chat-composer-tools>#chat-record{font-size:0;min-width:40px}.chat-composer-tools>#chat-record:before{content:"🎙";font-size:18px}.chat-composer-tools>#chat-record.recording{font-size:11px}.chat-composer-tools>#chat-record.recording:before{content:""}}

@media(max-width:1000px){.nav-group-items .nav-item{min-height:44px}}

.direct-message[data-unread-start=true]:before{content:"Непрочитанные сообщения";display:block;font-size:10px;color:#e3bf7d;margin-bottom:10px}
