/* Four native composer actions, visually arranged as a compact 2 by 2 block. */
.mst-composer{position:relative!important;min-height:min(94px,var(--tochka-input-limit,94px))!important;padding:0!important;margin:0!important}
.mst-composer converse-chat-toolbar{position:static!important;display:block!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
.mst-composer converse-chat-toolbar>span,.mst-composer .toolbar-buttons{position:static!important}
.mst-composer :is(.send-button,.mst-open,.toggle-emojis,.mst-attachment){box-sizing:border-box!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:8px!important;margin:0!important;border:1px solid var(--mt-border)!important;border-radius:7px!important;background:var(--mt-panel)!important;color:var(--mt-muted)!important;box-shadow:none!important;display:grid!important;place-items:center!important;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}
.mst-composer :is(.send-button,.mst-open,.mst-attachment){position:absolute!important;top:auto!important;left:auto!important}
.mst-composer .send-button{right:6px!important;bottom:50px!important}
.mst-composer .mst-open{right:50px!important;bottom:50px!important}
.mst-composer .mst-attachment{right:6px!important;bottom:6px!important}
.mst-composer converse-emoji-dropdown{position:absolute!important;right:50px!important;bottom:6px!important;top:auto!important;left:auto!important;width:38px!important;height:38px!important;margin:0!important}
.mst-composer .toggle-emojis{position:relative!important;inset:auto!important}
.mst-composer :is(.send-button,.toggle-emojis,.mst-attachment) converse-icon{width:20px!important;height:20px!important;--background-color:currentColor}
.mst-composer :is(.send-button,.toggle-emojis,.mst-attachment) svg{width:20px!important;height:20px!important;fill:currentColor!important;color:inherit!important}
.mst-composer .toggle-emojis::after{display:none!important}
.mst-composer .mst-open>svg{width:20px;height:20px}
.mst-composer .send-button:not(:disabled){background:color-mix(in srgb,var(--mt-accent) 16%,var(--mt-panel))!important;border-color:color-mix(in srgb,var(--mt-accent) 55%,var(--mt-border))!important;color:var(--mt-accent)!important}
.mst-composer :is(.send-button,.mst-open,.toggle-emojis,.mst-attachment):not(:disabled):hover{background:color-mix(in srgb,var(--mt-accent) 25%,var(--mt-panel))!important;border-color:var(--mt-accent)!important;color:var(--mt-text)!important}
.mst-composer .send-button:disabled{opacity:.5!important;cursor:default!important;pointer-events:auto!important}
.mst-composer :is(.send-button,.mst-open,.toggle-emojis,.mst-attachment):focus-visible,.messenger-stickers button:focus-visible{outline:2px solid var(--mt-accent);outline-offset:2px}
.mst-composer .chat-textarea{display:block!important;box-sizing:border-box!important;width:100%!important;height:var(--tochka-input-height,94px)!important;min-height:min(94px,var(--tochka-input-limit,94px))!important;max-height:var(--tochka-input-limit,66vh)!important;field-sizing:fixed!important;padding:12px 100px 12px 14px!important;margin:0!important;line-height:1.4!important;overflow-y:auto!important;overflow-x:hidden!important;resize:none}
.mst-composer .suggestion-box{margin:0!important}
/* MUC's bottom panel is centered; editable message text must not inherit it. */
.mst-composer .chat-textarea,.tochka-rich-input{text-align:left}
.mst-composer textarea.chat-textarea.tochka-source-input,textarea.tochka-source-input,.mst-composer textarea.chat-textarea[data-tochka-source-input],textarea[data-tochka-source-input]{display:none!important}
.tochka-edit-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;border-inline-start:3px solid var(--mt-accent);background:var(--mt-panel);color:var(--mt-accent);font:500 12px/1.4 system-ui;text-align:left}
.tochka-edit-mode[hidden]{display:none!important}
.tochka-edit-mode button{border:0;border-radius:4px;padding:3px 7px;background:transparent;color:var(--mt-text);font:inherit;cursor:pointer}
.tochka-edit-mode button:hover{background:var(--mt-hover)}
.tochka-rich-input{display:block;box-sizing:border-box;width:100%;height:var(--tochka-input-height,94px);min-height:min(94px,var(--tochka-input-limit,94px));max-height:var(--tochka-input-limit,66vh);padding:12px 100px 12px 14px;margin:0;line-height:1.4;font-family:inherit;font-size:var(--message-font-size,14px);color:var(--mt-text,inherit);background:transparent;border:0;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;overflow-x:hidden;cursor:text}
.tochka-rich-input:empty::before{content:attr(data-placeholder);color:var(--mt-muted);pointer-events:none}
.tochka-rich-input :is(b,strong){font-weight:700}.tochka-rich-input :is(i,em){font-style:italic}.tochka-rich-input u{text-decoration:underline;text-underline-offset:2px}
.tochka-rich-input[contenteditable=false]{opacity:.65}
.messenger-stickers{box-sizing:border-box;width:660px;max-width:calc(100vw - 32px);max-height:calc(100vh - 40px);padding:18px;background:var(--mt-panel);color:var(--mt-text);border:1px solid var(--mt-border);border-radius:12px;font:14px/1.4 system-ui;box-shadow:0 12px 40px #0004}
.messenger-stickers::backdrop{background:#0005}
.mst-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:18px}
.mst-close{border:0;background:transparent;color:inherit;font:24px system-ui;width:32px;height:32px;cursor:pointer;border-radius:6px}
.mst-tabs{display:flex;overflow-x:auto;gap:5px;padding:3px 2px 10px;margin-bottom:10px}
.mst-tab{white-space:nowrap;border:1px solid transparent;background:transparent;color:var(--mt-muted);padding:7px 12px;border-radius:7px;font:inherit;cursor:pointer}
.mst-tab[aria-selected=true]{background:var(--mt-selected);border-color:var(--mt-border);color:var(--mt-text)}
.mst-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:min(52vh,400px);overflow:auto;padding:3px;align-content:start;min-height:100px}
.mst-sticker{height:100px;border:1px solid transparent;border-radius:8px;background:var(--mt-image-surface);padding:6px;cursor:pointer;display:grid;place-items:center}
.mst-sticker img{width:100%;height:86px;object-fit:contain}
.mst-sticker:hover,.mst-close:hover{background:var(--mt-hover);border-color:var(--mt-border)}
.mst-grid[aria-busy=true]{opacity:.65;pointer-events:none}
.mst-sticker:disabled{opacity:.35;cursor:default}
.mst-status{min-height:20px;padding-top:12px;color:var(--mt-muted)}
.mst-credits{display:block;margin-top:5px;color:var(--mt-muted);font-size:11px}

/* MUC autocomplete uses a positioned wrapper; controls must paint above its textarea. */
.mst-composer :is(.send-button,.mst-open,.mst-attachment){z-index:3!important}
.mst-composer converse-emoji-dropdown{z-index:4!important}
.mst-composer .suggestion-box{isolation:auto!important}
.mst-composer button:has(>.mst-glyph)>converse-icon{display:none!important}
.mst-composer .mst-glyph{display:flex!important;align-items:center;justify-content:center;width:20px;height:20px;pointer-events:none;line-height:0}
.mst-composer .mst-glyph svg{display:block!important;width:20px!important;height:20px!important;color:inherit!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
