/* 5AA5 предыдущая версия: original messenger layout, no Telegram assets or third-party fonts. */
body[data-faa-theme="emerald"][data-template="conversation_view"] .p-body-sidebar{display:none}
body[data-faa-theme="emerald"][data-template="conversation_view"] .p-body-content{padding-right:0!important}
body[data-faa-theme="emerald"][data-template="conversation_view"] .p-body-header{display:none}
.faa-messenger-shell{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid #254438;border-radius:18px;overflow:hidden;background:#081b15;box-shadow:0 22px 65px #0003;margin:10px 0 24px;min-width:0}
.faa-chat-stage{min-width:0;background:#071712;position:relative;display:flex;flex-direction:column}
.faa-chat-rail{background:#0b2019;border-right:1px solid #254438;display:flex;flex-direction:column;min-width:0}
.faa-chat-rail-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 18px 12px;font-size:16px;font-weight:650;color:#e1f6e8}
.faa-chat-compose{display:grid;place-items:center;width:30px;height:30px;border:1px solid #38614b;border-radius:9px;font-size:22px;line-height:1;background:#173b2b}
.faa-chat-search{display:block;padding:0 14px 17px}
.faa-chat-search input{background:#061710;border:1px solid #284f3b;color:#dfefe5;border-radius:10px;padding:10px 12px;width:100%;font:12px/1.4 inherit;outline:none;box-sizing:border-box}
.faa-chat-search input:focus{border-color:#7ad7ad}.faa-chat-search input::placeholder{color:#8fab9e}
[data-faa-rail]{overflow:auto;scrollbar-width:thin;max-height:74vh}
.faa-chat-list{display:flex;flex-direction:column;gap:3px;padding:0 9px}
.faa-chat-row{display:flex;gap:10px;align-items:center;min-width:0;padding:13px 10px;border:1px solid transparent;border-radius:11px;color:#d3eade!important;text-decoration:none!important}
.faa-chat-row:hover{background:#17372a}.faa-chat-row.is-current{background:#214b38;border-color:#316047}
.faa-chat-row[hidden]{display:none!important}.faa-chat-row-avatar{flex:0 0 38px}
.faa-chat-row-avatar .avatar{width:38px;height:38px;border-radius:50%;font-size:22px}
.faa-chat-row-text{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
.faa-chat-row-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}
.faa-chat-row-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9fb9aa;font-size:11px}
.faa-chat-row-date{display:flex;flex-direction:column;align-items:flex-end;gap:7px;color:#96b2a4;font-size:9px;max-width:55px}
.faa-chat-unread-dot{display:none;width:7px;height:7px;background:#8bf0bd;border-radius:50%}
.is-unread .faa-chat-unread-dot{display:block}.faa-chat-all{display:block;padding:17px 22px;margin-top:auto;border-top:1px solid #254438;font-size:12px}
.faa-chat-heading{display:flex;align-items:center;gap:12px;padding:17px 20px 15px;border-bottom:1px solid #254438;background:#0c241b;min-width:0}
.faa-chat-heading-text{flex:1;min-width:0}.faa-chat-heading h2{font-size:18px;letter-spacing:-.3px;color:#e9f6ef;margin:0 0 4px;overflow-wrap:anywhere;line-height:1.3}
.faa-chat-heading-text>span{font-size:11px;color:#a3bdac}
.faa-chat-back{display:none}.faa-chat-details{position:relative;font-size:12px}
.faa-chat-details summary{cursor:pointer;color:#c1ddcd;padding:7px 9px;border-radius:8px;border:1px solid #365843;list-style:none}
.faa-chat-details-body{position:absolute;right:0;top:calc(100% + 10px);z-index:30;width:230px;padding:13px 16px;background:#102d20;border:1px solid #396148;border-radius:12px;box-shadow:0 10px 30px #0006}
.faa-chat-details-body p{display:flex;align-items:center;gap:9px;margin:8px 0}
.faa-chat-stage .faa-livebar{border:0;border-bottom:1px solid #203e30;border-radius:0;background:#0c2119;margin:0;padding:9px 18px;min-height:38px;font:11px/1.45 system-ui,sans-serif;display:flex;gap:6px 12px;align-items:center;flex-wrap:wrap}
.faa-chat-stage .faa-livebar>a:last-child{font-size:10px;color:#aac8b6}
.faa-live-state:before{content:"";display:inline-block;width:6px;height:6px;background:#739487;border-radius:50%;margin-right:6px;vertical-align:middle}
.faa-live-state[data-state="live"]:before{background:#8defbb;box-shadow:0 0 7px #8defbb55}
.faa-live-state[data-state="error"]{color:#efc999}.faa-live-state[data-state="error"]:before{background:#eabd87}
.faa-live-retry{border:1px solid #94794f;color:#ffe1ad;background:#453823;padding:3px 7px;border-radius:6px;font:inherit;cursor:pointer}
.faa-live-retry[hidden]{display:none}.faa-live-state{overflow-wrap:anywhere}
.faa-chat-stage>.block--messages{margin:0!important;border:0;min-width:0}
.faa-chat-stage>.block--messages>.block-container{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none}
.faa-chat-stage .block--messages>.block-outer{margin:0;padding:7px 14px;font-size:11px;background:#0a1e16;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.faa-chat-stage .block--messages>.block-outer--after{border-top:1px solid #203d30;min-height:8px;padding-block:5px}
.faa-chat-stage .block--messages .buttonGroup{display:flex;gap:4px;flex-wrap:wrap}
.faa-chat-stage .block-outer .button{font-size:10px;min-height:26px;padding:5px 8px;border-radius:6px!important}
.faa-chat-stage .faa-live-pages{margin:0}.faa-chat-stage .faa-page{height:27px;min-width:27px;font-size:11px}
.faa-chat-stage .js-replyNewMessageContainer{height:clamp(300px,54vh,720px);max-height:none!important;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#365d45 transparent;overscroll-behavior:contain;padding:22px 18px!important;background-color:#081a14;background-image:radial-gradient(#234c361f 1px,transparent 1px);background-size:19px 19px;box-sizing:border-box;scroll-behavior:auto}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage{display:flex!important;justify-content:flex-start;position:relative;margin:0 0 7px!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:0;max-width:none!important;overflow:visible}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage.faa-own{justify-content:flex-end}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage>.message-inner{display:flex!important;align-items:flex-end;gap:8px;border:0!important;max-width:84%;min-width:0;width:auto;background:transparent!important;box-shadow:none}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage .message-cell--main{display:block!important;flex:1;min-width:0;width:auto!important;border:1px solid #294b3b!important;border-radius:15px 15px 15px 4px;background:#122e22!important;padding:10px 13px 5px!important;color:#e3f1e8!important;box-shadow:0 1px 2px #0002}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage.faa-own .message-cell--main{background:#205039!important;border-color:#356a4e!important;border-radius:15px 15px 4px 15px}
.faa-chat-avatar{flex:0 0 32px;width:32px;align-self:flex-end;margin-bottom:2px}.faa-chat-avatar .avatar{width:32px!important;height:32px!important;border-radius:50%!important;font-size:19px!important;border:0;box-shadow:none}
.faa-own .faa-chat-avatar{display:none}.faa-grouped .faa-chat-avatar{visibility:hidden}.faa-grouped .faa-chat-name{display:none}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message-attribution{margin:0 0 4px!important;padding:0!important;border:0!important;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#a9c6b5}
.faa-chat-name .username{font-size:11px!important;font-weight:650;color:#9bedbf!important}.faa-own .faa-chat-name{display:none}
.faa-chat-stage .message-attribution-opposite{font-size:9px}.faa-chat-stage .message-newIndicator{font-size:9px}
.faa-chat-stage .message-attribution .faa-online-dot{width:5px;height:5px;margin:0;vertical-align:middle}
body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message-body{margin:0!important;min-height:0;font-size:14px;line-height:1.55;color:#e4f1e8!important;overflow-wrap:anywhere}
.faa-chat-stage .message-body .bbWrapper{white-space:normal}.faa-chat-stage .bbCodeBlock{margin:7px 0;font-size:12px;max-width:100%}
.faa-chat-stage .bbCodeBlock-content pre{max-width:100%;overflow-x:auto}.faa-chat-stage .message-body .bbImage{max-height:400px;max-width:100%;object-fit:contain;border-radius:9px}
.faa-chat-stage .message-footer{margin-top:4px!important;padding:0!important;border:0;display:flex;align-items:flex-end;flex-wrap:wrap;gap:4px;position:relative;font-size:11px;min-height:18px}
.faa-chat-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;color:#a3c5b0;padding:1px 0;font-size:10px;min-height:18px}
.faa-chat-meta .message-attribution-main{font-size:10px!important;color:#a3bfae!important;float:none}
.faa-chat-meta .faa-read-receipt{margin:0!important;float:none!important;display:inline-block;font:10px/1.3 system-ui,sans-serif;color:#a9cdb6!important;white-space:nowrap}
.faa-chat-meta .faa-read-receipt.is-read{color:#9dffcc!important}.faa-chat-meta .faa-read-receipt.is-read:before{content:none}
.faa-bubble-tools{position:relative;order:-1}.faa-bubble-tools>summary{list-style:none;cursor:pointer;font-size:20px;line-height:16px;padding:0 4px;color:#aed3bd;border-radius:5px;user-select:none}
.faa-bubble-tools>summary::-webkit-details-marker{display:none}.faa-bubble-tools>summary:hover,.faa-bubble-tools>summary:focus-visible{background:#38664b;outline:1px solid #86c9a0}
.faa-bubble-tools>.actionBar{display:none!important;position:absolute;bottom:calc(100% + 4px);left:0;z-index:25;width:210px;background:#143524!important;border:1px solid #3f6b4e!important;border-radius:10px;padding:10px!important;margin:0!important;box-shadow:0 8px 30px #0007}
.faa-own .faa-bubble-tools>.actionBar{right:0;left:auto}
.faa-bubble-tools[open]>.actionBar{display:block!important}
.faa-bubble-tools .actionBar-set{display:flex;float:none!important;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.faa-bubble-tools .actionBar-set+.actionBar-set{border-top:1px solid #2c4e38;margin-top:8px;padding-top:8px}
.faa-bubble-tools .actionBar-action{font-size:12px;line-height:1.5;padding:3px!important;margin:0!important;color:#c3edd2!important}
.faa-chat-stage .reactionsBar{order:3;flex-basis:100%;border:0;background:transparent!important;margin:3px 0;padding:0;font-size:11px}
.faa-chat-stage .reactionsBar:not(.is-active){display:none}.faa-chat-stage .message-attachments{margin:8px 0 4px}
.faa-chat-stage .attachmentList{margin:0}.faa-chat-stage .attachment{max-width:160px}
.faa-chat-stage>.js-quickReply{border:0;margin:0!important;padding:12px 16px;background:#0f291e;position:relative;border-top:1px solid #294d39}
.faa-chat-stage>.js-quickReply .block-container,.faa-chat-stage>.js-quickReply .message{border:0!important;box-shadow:none!important;border-radius:0;background:transparent!important;margin:0!important}
.faa-chat-stage>.js-quickReply .message-cell--user{display:none!important}
.faa-chat-stage>.js-quickReply .message-cell--main{padding:0!important;background:transparent!important;border:0!important}
.faa-chat-stage>.js-quickReply .fr-element{min-height:58px!important;max-height:200px;overflow-y:auto;padding:12px 14px!important;font-size:14px!important}
.faa-chat-stage>.js-quickReply .fr-toolbar{border-radius:11px 11px 0 0!important;box-shadow:none!important}
.faa-chat-stage>.js-quickReply .fr-wrapper{border-radius:0 0 11px 11px!important}
.faa-chat-stage>.js-quickReply .formButtonGroup{padding-top:10px}.faa-chat-stage>.js-quickReply .button--primary{border-radius:20px!important;padding:9px 20px;font-weight:650;background:#87e8b6!important;color:#062114!important;border:0!important}
.faa-chat-jump{position:sticky;bottom:12px;display:block;margin:-40px 15px 8px auto;z-index:12;background:#24533a;color:#e2ffed;border:1px solid #69ac80;border-radius:25px;padding:8px 14px;font:12px/1.3 system-ui;cursor:pointer;box-shadow:0 4px 16px #0004}
.faa-chat-jump[hidden]{display:none}.js-quickReply[data-faa-closed="1"] button[type="submit"]{opacity:.5}
.faa-list-live-state{font:11px/1.4 system-ui;color:#9dbca7;padding:7px 10px;display:flex;align-items:center;gap:8px}
.faa-list-live-state[data-error="1"]{color:#eac58f}.faa-list-live-state a{margin-left:auto}
@media(max-width:1000px){.faa-messenger-shell{grid-template-columns:190px minmax(0,1fr)}.faa-chat-row{padding:11px 6px}.faa-chat-row-date{display:none}}
@media(max-width:800px){.faa-messenger-shell{display:block;border-radius:12px}.faa-chat-rail{display:none}.faa-chat-back{display:block;font-size:20px}.faa-chat-heading{padding:13px 14px}.faa-chat-heading h2{font-size:16px}.faa-chat-heading-text>span{font-size:10px}.faa-chat-details summary{font-size:10px;padding:6px}.faa-chat-stage .js-replyNewMessageContainer{height:52vh;padding:16px 10px!important}.faa-chat-stage .block--messages .block-outer{padding:5px 9px}.faa-chat-stage .faa-livebar{padding:8px 12px;gap:4px 9px}.faa-chat-stage .faa-live-roster{flex-basis:auto}.faa-chat-stage .faa-livebar>a:last-child{margin-left:auto}.faa-chat-stage>.js-quickReply{padding:9px}.faa-chat-stage .fr-element{min-height:65px!important}body[data-faa-theme="emerald"][data-template="conversation_view"] .faa-chat-stage .message--conversationMessage>.message-inner{max-width:94%}.faa-chat-avatar,.faa-chat-avatar .avatar{width:26px!important;height:26px!important;flex-basis:26px}.faa-chat-name .username{font-size:10px!important}.faa-chat-stage .message-body{font-size:14px}.faa-chat-stage .message-cell--main{padding:9px 11px 5px!important}.faa-chat-meta{gap:5px}}
@media(prefers-reduced-motion:reduce){.faa-chat-stage *{scroll-behavior:auto!important;transition:none!important}}

.faa-chat-stage .faa-own .faa-online-dot{display:none}.faa-chat-stage .message-signature{display:none}
