*{box-sizing:border-box}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body{margin:0;font-family:Roboto,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;overflow:hidden}body.app-theme-dark{color:#e5edf7;background:#101827}body.app-theme-dark .login-screen,body.app-theme-dark .chat-list,body.app-theme-dark .messages,body.app-theme-dark .chat-panel{background-color:#101827}body.app-theme-dark .user-profile,body.app-theme-dark .chat-header,body.app-theme-dark .message-form,body.app-theme-dark .chat-list-footer,body.app-theme-dark .profile-settings-panel{background:#0f172a;border-color:#94a3b82e;box-shadow:0 8px 24px #0000003d}body.app-theme-dark .user-name,body.app-theme-dark .chat-name,body.app-theme-dark .profile-settings-title,body.app-theme-dark .profile-settings-name,body.app-theme-dark .profile-settings-theme-toggle{color:#f8fafc}body.app-theme-dark .chat-preview,body.app-theme-dark .profile-settings-label,body.app-theme-dark .profile-settings-theme-state{color:#94a3b8}body.app-theme-dark .profile-settings-value,body.app-theme-dark .message-input,body.app-theme-dark .chat-empty,body.app-theme-dark .chat-subtitle{color:#cbd5e1}body.app-theme-dark .profile-settings-back,body.app-theme-dark .profile-search-input,body.app-theme-dark .message-input{background:#0f172a6b}body.app-theme-dark .chat-item:not(.chat-item--active):hover{background:#94a3b814}.login-screen{z-index:100;background:#e5e7eb;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.login-screen--hidden{display:none}.login-form{-webkit-backdrop-filter:blur(18px);background:#ffffff85;border:1px solid #ffffff7a;flex-direction:column;gap:16px;width:min(100%,360px);padding:24px;display:flex;box-shadow:0 18px 48px #11182724}.login-brand{justify-content:center;align-items:center;min-height:96px;display:flex}.login-brand-logo{width:min(92px,32vw);height:auto;display:block}.login-field{color:#374151;flex-direction:column;gap:8px;font-size:13px;font-weight:500;display:flex}.login-register-only{display:none}.login-form--register .login-register-only{display:flex}.login-input{color:#111827;width:100%;height:44px;font:inherit;background:#ffffffc7;border:1px solid #00a3d347;border-radius:8px;outline:none;padding:0 12px}.login-input:focus{border-color:#00a3d3}.login-submit{color:#fff;cursor:pointer;height:44px;font:inherit;background:#00a3d3;border:0;border-radius:8px;font-weight:700}.login-submit:disabled{cursor:progress;opacity:.68}.login-switch{color:#008fbd;cursor:pointer;font:inherit;background:0 0;border:0;font-weight:700}.login-switch:disabled{cursor:progress;opacity:.6}.login-error{color:#dc2626;min-height:18px;font-size:13px}.messenger{height:100vh;display:flex}.messenger--locked{visibility:hidden}.chat-list{z-index:2;background-color:#f3f4f6;flex-direction:column;width:40%;height:100vh;display:flex;position:relative;overflow:hidden;box-shadow:8px 0 24px #11182714}.user-profile{z-index:10;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffff73;border:1px solid #ffffff59;align-items:center;gap:12px;height:74px;padding:16px;display:flex;position:sticky;top:0;box-shadow:0 8px 24px #11182714}.user-profile .user-avatar{z-index:2;flex:0 0 40px;position:relative}.profile-avatar-button{cursor:pointer;font:inherit;border:0;padding:0;transition:opacity .2s,transform .2s}.profile-avatar-button:hover{opacity:.86}.profile-avatar-button:focus-visible,.profile-settings-back:focus-visible,.profile-settings-theme-toggle:focus-visible,.profile-settings-logout-button:focus-visible{outline-offset:2px;outline:2px solid #00a3d37a}.profile-settings-panel{z-index:40;-webkit-backdrop-filter:blur(22px)saturate(1.18);pointer-events:none;background:#f9fafb;flex-direction:column;min-width:0;transition:transform .28s cubic-bezier(.16,1,.3,1);display:flex;position:absolute;inset:0;transform:translate(-100%)}.profile-settings-panel--open{pointer-events:auto;transform:translate(0)}.profile-settings-header{border-bottom:1px solid #ffffff6b;align-items:center;gap:12px;height:74px;padding:16px;display:flex;box-shadow:0 8px 24px #1118270f}.profile-settings-back{color:#00a3d3;cursor:pointer;background:#ffffff7a;border:0;border-radius:50%;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.profile-settings-title{color:#111827;min-width:0;font-size:16px;font-weight:700}.profile-settings-content{flex:1;min-height:0;padding:24px 16px 16px;overflow-y:auto}.profile-settings-user{flex-direction:column;align-items:center;gap:10px;padding:4px 0 24px;display:flex}.profile-settings-avatar{width:88px;height:88px;font-size:28px}.profile-settings-name{color:#111827;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:19px;font-weight:700;overflow:hidden}.profile-settings-info,.profile-settings-actions,.profile-settings-footer{border-top:1px solid #ffffff6b}.profile-settings-info{padding:8px 0}.profile-settings-row{flex-direction:column;gap:4px;padding:10px 0;display:flex}.profile-settings-label{color:#6b7280;font-size:12px}.profile-settings-value{color:#374151;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;overflow:hidden}.profile-settings-value--id{-webkit-user-select:all;user-select:all;font-size:12px}.profile-settings-actions{padding:10px 0}.profile-settings-theme-toggle,.profile-settings-logout-button{cursor:pointer;width:100%;min-height:46px;font:inherit;background:0 0;border:0;border-radius:8px;align-items:center;display:flex}.profile-settings-theme-toggle{color:#111827;text-align:left;gap:10px;padding:8px 0}.profile-settings-theme-label{flex:1;min-width:0;font-size:14px;font-weight:600}.profile-settings-theme-state{color:#6b7280;font-size:13px}.profile-settings-theme-switch{background:#00a3d333;border-radius:999px;flex:0 0 52px;width:52px;height:30px;transition:background .2s;position:relative}.profile-settings-theme-switch span{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .22s cubic-bezier(.16,1,.3,1);position:absolute;top:4px;left:4px;box-shadow:0 4px 10px #1118272e}.profile-settings-theme-toggle--dark .profile-settings-theme-switch{background:#00a3d3}.profile-settings-theme-toggle--dark .profile-settings-theme-switch span{transform:translate(22px)}.profile-settings-footer{padding:8px 16px calc(8px + env(safe-area-inset-bottom))}.profile-settings-logout-button{color:#dc2626;text-align:left;gap:12px;padding:10px 0}.profile-settings-logout-button .logout-icon{fill:currentColor;flex:0 0 24px;width:24px;height:24px}.profile-settings-logout-button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.user-avatar{color:#111827;background-color:#d1d5db;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.user-avatar,.chat-avatar{position:relative;overflow:hidden}.avatar-image{z-index:2;box-sizing:border-box;border-radius:inherit;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.avatar-image--default{z-index:1;object-fit:contain;background:#fff;padding:14%}.avatar-image--failed{display:none}.avatar-fallback{z-index:1;position:relative}.user-name{color:#111827;min-width:0;font-weight:700}.backend-status{background-color:#9ca3af;border-radius:50%;flex:0 0 10px;width:10px;height:10px;box-shadow:0 0 0 3px #9ca3af29}.backend-status--online{background-color:#16a34a;box-shadow:0 0 0 3px #16a34a29}.backend-status--offline{background-color:#dc2626;box-shadow:0 0 0 3px #dc262629}.chat-items{overscroll-behavior:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position;opacity:1;flex:1;overflow-y:auto;transform:translate(0)}.chat-list-state{color:#6b7280;padding:18px 16px;font-size:14px}.chat-list-footer{-webkit-backdrop-filter:blur(18px);background:#ffffff73;border:1px solid #ffffff59;flex:0 0 74px;grid-template-columns:repeat(3,1fr);align-items:center;min-height:74px;padding:16px;display:grid}.chat-list-footer-button{color:#00a3d3;cursor:pointer;opacity:.78;background:0 0;border:0;border-radius:50%;justify-content:center;justify-self:center;align-items:center;width:44px;height:44px;transition:background-color .2s,opacity .2s,transform .2s;display:flex}.chat-list-footer-button--active{opacity:1;background-color:#00a3d324}.chat-list-footer-button:active{transform:scale(.94)}.chat-list-footer-icon{fill:currentColor;width:30px;height:30px}.chat-items--slide-out-left{opacity:0;transition:transform .18s,opacity .18s;transform:translate(-24px)}.chat-items--slide-out-right{opacity:0;transition:transform .18s,opacity .18s;transform:translate(24px)}.chat-items--slide-in-right{animation:.24s both slideFromRight}.chat-items--slide-in-left{animation:.24s both slideFromLeft}.chat-item{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:12px 16px;display:flex;position:relative}.chat-item--moving{z-index:1;transition:transform .5s cubic-bezier(.16,1,.3,1)}.chat-item--promoted{z-index:100;color:#fff;background-color:#00a3d3}.chat-item:not(.chat-item--active):hover{background-color:#e5e7eb80}.chat-item--active{color:#fff;background-color:#00a3d3}.chat-item--active .chat-preview,.chat-item--active .chat-time{color:#ffffffbf}.chat-preview--typing{color:#00a3d3;font-weight:600}.chat-item--active .chat-preview--typing{color:#ffffffdb}.chat-item--active .chat-avatar{color:#fff;background-color:#ffffff38}.chat-info{flex-direction:column;flex:1;gap:10px;min-width:0;display:flex}.chat-topline{justify-content:space-between;align-items:baseline;gap:12px;min-width:0;display:flex}.chat-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.chat-time{color:#9ca3af;flex:none;font-size:12px}.chat-preview{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.chat-avatar{color:#111827;background-color:#d1d5db;border-radius:50%;flex:0 0 44px;justify-content:center;align-items:center;width:44px;height:44px;font-weight:700;display:flex}.chat-unread{color:#fff;background:#00a3d3;border-radius:999px;flex:0 0 22px;justify-content:center;align-items:center;min-width:22px;height:22px;font-size:12px;font-weight:700;display:flex}.chat-item--active .chat-unread{background:#ffffff42}.chat-panel{background-color:#e5e7eb;width:60%;height:100vh;position:relative;overflow:hidden}.chat-header{z-index:10;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);opacity:1;background:#ffffff73;border:1px solid #ffffff59;align-items:center;gap:12px;height:74px;padding:16px;transition:opacity .28s,transform .28s;display:flex;position:absolute;top:0;left:0;right:0;transform:translateY(0);box-shadow:0 8px 24px #11182714}.chat-header--hidden{opacity:0;pointer-events:none;transform:translateY(-100%)}.chat-header-meta{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.chat-header .chat-name{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.chat-status{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1;overflow:hidden}.chat-back-button{color:#00a3d3;cursor:pointer;background:0 0;border:0;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:none}.back-icon{fill:currentColor;width:30px;height:30px}.chat-header-actions{align-items:center;gap:12px;margin-left:auto;display:flex}.chat-call-button{color:#00a3d3;cursor:pointer;background:0 0;border:0;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;padding:0;transition:opacity .2s;display:flex}.call-icon{fill:currentColor;flex:0 0 30px;width:30px;min-width:30px;height:30px}.call-icon--audio{transform:translate(1px,1.5px)scaleX(-1)}.call-icon--video{fill:none;stroke:currentColor;stroke-linejoin:round;stroke-width:2.4px;transform:translateY(1.5px)scale(1.18)}.profile-search{z-index:3;opacity:0;transform-origin:100%;width:0;transition:width .3s,opacity .2s;position:absolute;top:50%;right:164px;overflow:hidden;transform:translateY(-50%)}.profile-search-input{color:#111827;background:#ffffffb3;border:1px solid #00a3d347;border-radius:20px;outline:none;width:100%;height:40px;padding:0 42px 0 14px}.profile-search-input:focus{border-color:#00a3d3}.profile-search-input::-webkit-search-cancel-button{appearance:none}.profile-search-input::-webkit-search-decoration{appearance:none}.profile-actions{align-items:center;gap:12px;margin-left:auto;display:flex}.profile-search-button,.profile-contacts-button{color:#00a3d3;cursor:pointer;background:0 0;border:0;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;transition:opacity .2s,transform .2s;display:flex;position:relative}.search-icon{fill:currentColor;flex:0 0 30px;width:30px;min-width:30px;height:30px;transform:translateY(-.75px)scaleX(-1.14)scaleY(1.05)}.user-profile--notification:after{content:attr(data-notification);z-index:20;color:#fff;background:#111827d1;border-radius:999px;max-width:min(320px,100% - 32px);padding:8px 12px;font-size:12px;line-height:1.25;position:absolute;bottom:-38px;right:16px;box-shadow:0 12px 30px #11182729}.contacts-icon{fill:currentColor;width:30px;height:30px;transition:opacity .2s,transform .2s;position:absolute}.contacts-icon--book{opacity:1;transform:scale(1)rotate(0)}.contacts-icon--close{opacity:0;transform:scale(.7)rotate(-90deg)}.user-profile--contacts .contacts-icon--book{opacity:0;transform:scale(.7)rotate(90deg)}.user-profile--contacts .contacts-icon--close{opacity:1;transform:scale(1)rotate(0)}.user-profile--contacts .profile-search-input{padding-right:14px}.user-profile--contacts .profile-search-close{display:none}.profile-search-close{color:#00a3d3;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.close-icon{fill:currentColor;width:20px;height:20px}.user-profile--searching .profile-search-button{opacity:0;pointer-events:none;transform:scale(.7)}.user-profile .user-name{white-space:nowrap;opacity:1;transition:opacity .25s,max-width .25s;overflow:hidden}.user-profile--searching .user-name{opacity:0;max-width:0}.user-profile--searching .profile-search{opacity:1;width:calc(100% - 232px)}.messages{overscroll-behavior:contain;scroll-behavior:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;will-change:scroll-position;flex-direction:column;height:100%;padding:90px 16px;display:flex;overflow-y:auto}.message-day-group{flex-direction:column;gap:8px;display:flex}.chat-panel--empty .messages{padding-top:16px;padding-bottom:16px}.empty-chat{color:#fff;background-color:#00a3d380;border-radius:999px;margin:auto;padding:12px 18px;font-size:18px}.empty-chat--muted{color:#6b7280;background-color:#ffffff9e}.empty-chat--error{color:#b91c1c;background-color:#dc26261a}.message-date-island{z-index:5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#1118279e;pointer-events:none;-webkit-user-select:none;user-select:none;background:#ffffffb8;border:1px solid #fff6;border-radius:999px;align-self:center;margin:10px 0 6px;padding:6px 12px;font-size:12px;font-weight:500;line-height:1;transition:opacity .16s,transform .16s;position:sticky;top:8px;box-shadow:0 8px 24px #11182714}.message-date-island--hidden{opacity:0;transform:translateY(-6px)}.message{border-radius:18px;max-width:62%;padding:10px 14px 8px;line-height:1.35;display:block}.message-text{white-space:pre-wrap;overflow-wrap:anywhere}.message-attachments{gap:8px;min-width:180px;display:grid}.message-text+.message-attachments{margin-top:8px}.message-attachment{max-width:100%;color:inherit;gap:6px;text-decoration:none;display:grid}.message-attachment--image,.message-attachment--video{overflow:hidden}.message-attachment--video-note{justify-items:center;overflow:visible}.message-attachment--audio{gap:8px}.message-image,.message-video{object-fit:cover;border-radius:12px;width:min(320px,100%);max-height:360px;display:block}.message-video{background:#11182729}.message-video-note-button{color:#00a3d3;cursor:pointer;background:0 0;border:0;border-radius:50%;width:210px;max-width:100%;height:210px;padding:0;transition:width .24s,height .24s,transform .18s;display:block;position:relative}.message-video-note-button:active{transform:scale(.985)}.message-video-note-button--playing{width:240px;height:240px}.message--outgoing .message-video-note-button{color:#00a3d3}.message-video-note-progress{z-index:2;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.message-video-note-progress-track{stroke:#00a3d33d;stroke-width:1.125px}.message--incoming .message-video-note-progress-track{stroke:#00a3d33d}.message-video-note-progress-ring{stroke:#00a3d3;stroke-width:1.125px;stroke-linecap:round;transition:stroke-dashoffset .12s linear}.message-video-note-progress-handle{display:none}.message-video-note-frame{z-index:1;background:linear-gradient(135deg,#e2e8f0e6,#94a3b870) 50%/cover;border-radius:50%;position:absolute;inset:2px;overflow:hidden;box-shadow:0 18px 45px #0f172a2e}.message-video-note-frame:after{content:"";z-index:1;border-radius:inherit;opacity:.72;pointer-events:none;background:linear-gradient(#0f172a00,#0f172a29),radial-gradient(circle at 50% 44%,#fff3,#0000 0 34%);transition:opacity .2s;position:absolute;inset:0}.message-video-note-button--preview-ready .message-video-note-frame:after,.message-video-note-button--playing .message-video-note-frame:after{opacity:0}.message-video-note{object-fit:cover;border-radius:50%;width:100%;height:100%;display:block;transform:scaleX(-1)}.message-video-note-play{z-index:3;color:#2563eb;background:#ffffffdb;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;transition:opacity .18s,background .18s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 14px 34px #0f172a38;display:none!important}.message-video-note-button--playing .message-video-note-play{opacity:0}.message-video-note-play-symbol{fill:currentColor;width:22px;height:22px}.message-video-note-play-symbol--pause,.message-video-note-button--playing .message-video-note-play-symbol--play{display:none}.message-video-note-button--playing .message-video-note-play-symbol--pause{display:block}.message-video-note-duration{z-index:3;color:#fff;opacity:.88;pointer-events:none;background:#0f172a61;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:600;line-height:1;position:absolute;bottom:18px;right:20px}.message-audio-card{color:#1f2937;width:min(288px,100%);max-width:100%;box-shadow:none;background:0 0;border:0;border-radius:24px;align-items:center;gap:12px;padding:12px 14px;display:flex}.message--outgoing .message-audio-card{color:#fff;box-shadow:none;background:0 0;border-color:#0000}.message-audio-native{display:none}.message-audio-play{color:#00a3d3;cursor:pointer;width:36px;height:36px;box-shadow:none;background:#00a3d31f;border:0;border-radius:50%;flex:0 0 36px;justify-content:center;align-items:center;padding:0;transition:background .18s,color .18s,transform .18s;display:flex}.message-audio-play:active{transform:scale(.96)}.message--outgoing .message-audio-play{color:#fff;box-shadow:none;background:#ffffff2e}.message-audio-play-symbol{fill:currentColor;width:18px;height:18px}.message-audio-play-symbol--pause,.message-audio-card--playing .message-audio-play-symbol--play{display:none}.message-audio-card--playing .message-audio-play-symbol--pause{display:block}.message-audio-waveform{flex:132px;justify-content:space-between;align-items:flex-end;gap:2px;min-width:112px;height:40px;display:flex}.message-audio-waveform-bar{opacity:.84;background:#00a3d33d;border-radius:999px;flex:0 0 3px;width:3px;transition:background .12s linear,opacity .12s linear;display:block}.message-audio-waveform-bar--active{opacity:1;background:#00a3d3}.message--outgoing .message-audio-waveform-bar{background:#bfdbfe8c}.message--outgoing .message-audio-waveform-bar--active{background:#fff}.message-audio-duration{color:#64748b;font-variant-numeric:tabular-nums;flex:none;font-size:12px;line-height:1}.message--outgoing .message-audio-duration{color:#ffffffc7}.message-attachment-title{overflow-wrap:anywhere;font-weight:600}.message-attachment-meta,.message-attachment-status,.message-transcript{opacity:.72;font-size:12px}.message-transcript{padding-top:2px;line-height:1.35}.message-time{float:right;color:#11182773;margin:7px 0 0 10px;font-size:11px;line-height:1}.message--outgoing .message-time{color:#ffffffb8}.message--incoming{color:#111827;background-color:#f3f4f6;border-bottom-left-radius:6px;align-self:flex-start}.message--outgoing{color:#fff;background-color:#00a3d3;border-bottom-right-radius:6px;align-self:flex-end}.message--media-only{background:0 0;border-radius:0;padding:0}.message--incoming.message--media-only,.message--outgoing.message--media-only{color:#111827;background:0 0}.message--media-only .message-attachments{min-width:0}.message--media-only .message-time{float:none;color:#11182773;width:max-content;margin:4px 6px 0 auto;display:block}.message--incoming.message--media-only .message-time{margin-left:6px;margin-right:auto}.message--outgoing.message--media-only .message-video-note-button{color:#00a3d3}.message--outgoing.message--media-only .message-video-note-progress-track{stroke:#00a3d33d}.message--outgoing.message--media-only .message-audio-card{color:#1f2937;box-shadow:none;background:0 0;border-color:#0000}.message--outgoing.message--media-only .message-audio-play{color:#00a3d3;box-shadow:none;background:#00a3d31f}.message--outgoing.message--media-only .message-audio-waveform-bar{background:#00a3d33d}.message--outgoing.message--media-only .message-audio-waveform-bar--active{background:#00a3d3}.message--outgoing.message--media-only .message-audio-duration{color:#64748b}.message-form{z-index:10;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);--message-actions-width:100px;background:#ffffff73;border:1px solid #ffffff59;align-items:flex-end;gap:12px;min-height:74px;padding:16px;display:flex;position:absolute;bottom:0;left:0;right:0}.message-form--hidden{display:none}.message-form--error:before{content:attr(data-error);color:#fff;background:#b91c1ce0;border-radius:999px;max-width:min(360px,100% - 32px);padding:8px 12px;font-size:13px;line-height:1.25;position:absolute;bottom:calc(100% + 8px);right:16px;box-shadow:0 12px 30px #11182729}.message-form--recording-video .message-video-button{background:#00a3d324}.message-form--recording-voice{--message-actions-width:44px}.message-form--recording-voice .message-attach-button,.message-form--recording-voice .message-input,.message-form--recording-voice .message-emoji-button,.message-form--recording-voice .message-video-button{display:none}.message-form--recording-voice .voice-recording-track,.message-form--recording-voice .message-recording-cancel-button{display:flex}.message-form--recording-voice .message-voice-button{color:#dc2626;background:#dc26261a;left:0}.message-form--uploading{cursor:progress}.message-input{resize:none;overscroll-behavior:contain;scroll-behavior:auto;scrollbar-width:none;-ms-overflow-style:none;color:#111827;min-height:44px;max-height:224px;font:inherit;background:#ffffffbf;border:1px solid #00a3d347;border-radius:22px;outline:none;flex:1;padding:11px 16px;line-height:20px;transition:flex-basis .32s,height .12s;overflow-y:hidden}.message-input--scrollable{overflow-y:auto}.message-input:focus{border-color:#00a3d3}.message-input:disabled{cursor:progress;opacity:.82}.voice-recording-track{color:#64748b;background:#ffffffad;border:1px solid #00a3d338;border-radius:22px;flex:1;align-items:center;gap:10px;min-width:0;min-height:44px;padding:0 14px;display:none;overflow:hidden}.voice-recording-dot{background:#dc2626;border-radius:50%;flex:0 0 8px;width:8px;height:8px;animation:1.2s ease-out infinite voice-recording-pulse;box-shadow:0 0 #dc26264d}.voice-recording-waveform{flex:1;align-items:center;gap:2px;min-width:72px;height:28px;display:flex}.voice-recording-waveform-bar{opacity:.42;background:#00a3d3;border-radius:999px;flex:3px;max-width:4px;animation:.9s ease-in-out infinite alternate voice-recording-wave;display:block}.voice-recording-duration{color:#64748b;font-variant-numeric:tabular-nums;text-align:right;flex:0 0 34px;font-size:12px;line-height:1}@keyframes voice-recording-pulse{70%{box-shadow:0 0 0 8px #dc262600}to{box-shadow:0 0 #dc262600}}@keyframes voice-recording-wave{0%{opacity:.32;transform:scaleY(.58)}to{opacity:1;transform:scaleY(1)}}.message-attach-button,.message-emoji-button,.message-video-button,.message-voice-button,.message-recording-cancel-button{cursor:pointer;border:0;border-radius:50%;flex:0 0 44px;justify-content:center;align-items:center;width:44px;height:44px;display:flex;position:relative;overflow:hidden}.message-attach-button:disabled,.message-emoji-button:disabled,.message-video-button:disabled,.message-voice-button:disabled,.message-recording-cancel-button:disabled{cursor:progress;opacity:.52}.message-attach-button,.message-emoji-button,.message-video-button,.message-voice-button{color:#00a3d3;background:0 0;padding:0}.message-recording-cancel-button{color:#64748b;background:#64748b1f;padding:0;display:none}.message-actions{flex:0 0 var(--message-actions-width);width:var(--message-actions-width);height:44px;transition:flex-basis .32s,width .32s;position:relative}.message-form--typing{--message-actions-width:44px}.message-video-button,.message-voice-button{transition:left .32s,opacity .22s,transform .32s;position:absolute;top:0}.message-video-button{left:0}.message-voice-button{left:56px}.message-form--typing .message-video-button{left:0}.message-form--typing .message-voice-button{opacity:0;pointer-events:none;left:0;transform:scale(.75)}.attach-icon{fill:currentColor;width:39px;height:36px;transform:translate(1px,1px)scaleX(1.25)scaleY(-1)}.video-icon{fill:currentColor;width:43px;height:43px;translate:0 .5px}.voice-icon{fill:currentColor;width:38px;height:38px;transform:translateY(.5px)scaleX(1.15)}.emoji-icon{fill:currentColor;width:40px;height:40px;transform:translateY(.7px)}.send-icon{fill:currentColor;width:40px;height:40px}.video-icon,.send-icon{transition:opacity .22s,transform .32s;position:absolute}.video-icon{opacity:1;transform:scale(1)}.send-icon{opacity:0;transform:scaleX(-1)scale(.75)}.message-form--typing .video-icon{opacity:0;transform:scale(.75)}.message-form--typing .send-icon{opacity:1;transform:scaleX(-1)scale(1)}.emoji-panel{z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);opacity:0;pointer-events:none;transform-origin:100% 100%;background:#ffffff73;border:1px solid #ffffff59;grid-template-columns:repeat(6,36px);gap:8px;padding:16px;transition:opacity .2s,transform .2s;display:grid;position:absolute;bottom:82px;right:72px;transform:translateY(8px)scale(.96)}.chat-panel--emoji-open .emoji-panel{opacity:1;pointer-events:auto;transform:translateY(0)scale(1)}.emoji-button{cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;font-size:22px;display:flex}.emoji-button:hover{background-color:#00a3d31f}@keyframes slideFromRight{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@keyframes slideFromLeft{0%{opacity:0;transform:translate(-24px)}to{opacity:1;transform:translate(0)}}.chat-list,.chat-items,.chat-panel,.messages,.message-input{scrollbar-width:none;-ms-overflow-style:none}.chat-list::-webkit-scrollbar{width:0;height:0;display:none}.chat-items::-webkit-scrollbar{width:0;height:0;display:none}.chat-panel::-webkit-scrollbar{width:0;height:0;display:none}.messages::-webkit-scrollbar{width:0;height:0;display:none}.message-input::-webkit-scrollbar{width:0;height:0;display:none}@media (width<=760px){body{background-color:#f3f4f6}.messenger{height:100dvh;display:block;position:relative;overflow:hidden}.chat-list,.chat-panel{width:100%;height:100dvh}.chat-list{box-shadow:none;position:relative}.chat-panel{z-index:20;transition:transform .28s cubic-bezier(.16,1,.3,1);position:absolute;inset:0;transform:translate(100%)}.chat-panel--mobile-open{transform:translate(0)}.user-profile,.chat-header{height:calc(64px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 12px 12px;-webkit-backdrop-filter:blur(22px)saturate(1.25);backdrop-filter:blur(22px)saturate(1.25);background:#ffffffc7}.profile-settings-header{height:calc(64px + env(safe-area-inset-top));padding:calc(12px + env(safe-area-inset-top)) 12px 12px}.user-profile{-webkit-backdrop-filter:blur(18px)saturate(1.2);background:#ffffff52;position:absolute;top:0;left:0;right:0}.chat-items{height:100%;padding-top:calc(64px + env(safe-area-inset-top));scroll-padding-bottom:calc(70px + env(safe-area-inset-bottom));padding-bottom:0}.chat-list-footer{z-index:10;min-height:calc(70px + env(safe-area-inset-bottom));padding:12px 10px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(22px)saturate(1.25);background:#ffffffc7;flex:none;position:absolute;bottom:0;left:0;right:0}.chat-list-footer-button{width:44px;height:44px}.chat-header{gap:8px}.chat-back-button{display:flex}.chat-header .chat-avatar,.chat-avatar{flex-basis:40px;width:40px;height:40px}.chat-header-actions{gap:2px}.chat-call-button{flex-basis:36px;width:36px;height:36px}.call-icon{flex-basis:27px;width:27px;min-width:27px;height:27px}.user-profile{gap:10px}.user-profile .user-avatar{flex-basis:38px;width:38px;height:38px}.profile-actions{gap:6px}.profile-search-button,.profile-contacts-button{flex-basis:38px;width:38px;height:38px}.user-profile--searching .profile-search{width:calc(100% - 208px);right:150px}.chat-item{padding:12px 14px}.chat-item--active{color:#111827;background:0 0}.chat-item--active .chat-preview{color:#6b7280}.chat-item--active .chat-preview--typing{color:#00a3d3}.chat-item--active .chat-time{color:#9ca3af}.chat-item--active .chat-avatar{color:#111827;background-color:#d1d5db}.chat-info{gap:7px}.messages{padding:calc(78px + env(safe-area-inset-top)) 10px calc(104px + env(safe-area-inset-bottom));scrollbar-gutter:auto}.message{max-width:min(82%,420px);padding:9px 12px 8px}.message-image,.message-video{width:min(260px,100%);max-height:300px}.message-video-note-button{width:176px;height:176px}.message-video-note-button--playing{width:208px;height:208px}.message-audio-card{gap:10px;width:min(282px,100%);padding:11px 12px}.message-audio-waveform{min-width:96px}.message-audio{width:min(238px,100%)}.message-form{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(18px)saturate(1.2);backface-visibility:hidden;--message-actions-width:92px;background:#ffffff85;border-color:#ffffff80;border-radius:30px;gap:8px;min-height:58px;padding:8px 10px;transform:translateZ(0);box-shadow:0 14px 34px #11182729}.message-form--typing{--message-actions-width:42px}.message-input{min-height:42px;box-shadow:none;background:0 0;border-color:#0000;border-radius:21px;padding:10px 14px}.message-input:focus{border-color:#0000}.voice-recording-track{background:0 0;border-color:#0000;min-height:42px;padding:0 10px 0 12px}.message-attach-button,.message-emoji-button,.message-video-button,.message-voice-button,.message-recording-cancel-button{flex-basis:42px;width:42px;height:42px}.message-actions{height:42px}.message-voice-button{left:50px}.emoji-panel{right:10px;bottom:calc(82px + env(safe-area-inset-bottom));grid-template-columns:repeat(6,minmax(34px,1fr));gap:6px;width:min(100% - 20px,304px);padding:12px}.emoji-button{border-radius:8px;width:100%;height:34px;font-size:20px}.empty-chat{text-align:center;max-width:calc(100% - 32px);font-size:16px}}@media (width<=380px){.user-name{max-width:120px}.chat-header-actions{display:none}.message-form{gap:6px;padding:8px;left:8px;right:8px}.message-attach-button,.message-emoji-button,.message-recording-cancel-button{flex-basis:38px;width:38px}}@media (prefers-reduced-motion:reduce){.chat-panel,.chat-items--slide-out-left,.chat-items--slide-out-right,.chat-items--slide-in-right,.chat-items--slide-in-left,.chat-item--moving,.message-input,.message-actions,.message-video-button,.message-voice-button,.message-recording-cancel-button,.voice-recording-dot,.voice-recording-waveform-bar,.video-icon,.send-icon,.emoji-panel{transition:none;animation:none}}
