/* Telegram uses the existing RTS shell, typography and purple controls. */
.tg-workspace{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);height:calc(100dvh - 160px);min-height:420px;max-height:900px;border:1px solid #e8e5f0;border-radius:14px;overflow:hidden;background:#fff}.tg-dialogs{display:flex;flex-direction:column;min-width:0;overflow-y:auto;border-right:1px solid #e8e5f0;background:#fcfbff}.tg-search{display:flex;flex-direction:column;gap:8px;padding:18px 16px 10px;font-size:12px;color:#77758a}.tg-search input{width:100%;min-width:0;min-height:40px;border:1px solid #e5e0ef;border-radius:22px;background:#fff;padding:10px 13px;font:inherit;font-size:13px;color:#484457}.tg-dialogs>#tg-count{padding:0 18px 8px;color:#827b91;font-size:11px}.tg-dialog{display:block;width:100%;padding:16px;text-align:left;border-bottom:1px solid #efebf5;min-width:0}.tg-dialog:hover,.tg-dialog.is-selected{background:#f0ecff}.tg-dialog.is-selected{box-shadow:inset 3px 0 #6550ff}.tg-dialog-top{display:flex;align-items:center;gap:8px}.tg-dialog strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.tg-unread{background:#6550ff;color:#fff;font-size:10px;border-radius:20px;min-width:19px;padding:3px 5px;text-align:center}.tg-dialog-handle,.tg-dialog-preview,.tg-dialog-time{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tg-dialog-handle{font-size:11px;color:#8b819b;margin-top:5px}.tg-dialog-preview{font-size:12px;color:#645b70;margin-top:9px}.tg-dialog-time{font-size:10px;color:#918899;margin-top:8px}.tg-dialogs>.btn{margin:12px}.tg-chat{min-width:0;min-height:0;display:flex;flex-direction:column}.tg-chat-header{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid #eeeaf3}.tg-chat-header>div{min-width:0;flex:1}.tg-chat-header h2{font-size:16px;font-weight:600;margin:0;overflow-wrap:anywhere}.tg-chat-header p{font-size:11px;color:#85798f;margin:6px 0 0;overflow-wrap:anywhere}.tg-back{display:none}.tg-history{flex:1;min-height:150px;overflow-y:auto;padding:20px;overscroll-behavior:contain;scrollbar-width:thin;background:#fbfaff}.tg-message{width:fit-content;max-width:85%;margin:0 0 14px;padding:11px 14px;border:1px solid #eae5f1;border-radius:12px;background:#fff}.tg-message-text{margin:0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.tg-message footer{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:10px;color:#8b8098;margin-top:8px}.tg-message footer span{overflow-wrap:anywhere}.tg-outgoing{margin-left:auto;background:#f0ebff;border-color:#e5dcff}.tg-system{margin-left:auto;margin-right:auto;color:#887f94;background:#f3f1f7}.tg-delivery.tg-failed,.tg-delivery.tg-unknown{color:#a15832}.tg-send-note{font-size:11px;line-height:1.4;color:#995834;margin:8px 0 0}.tg-older{display:flex;margin:0 auto 18px;font-size:12px}.tg-older[hidden]{display:none}.tg-compose-wrap{border-top:1px solid #eae5f1;padding:14px 18px;background:#fff}.tg-compose-wrap textarea{display:block;width:100%;min-height:66px;max-height:160px;resize:vertical;border:1px solid #e5dff0;border-radius:10px;padding:12px;font:inherit;font-size:14px;line-height:1.4;color:#484457}.tg-compose-wrap textarea:focus{outline:2px solid #b8acff;outline-offset:1px}.tg-compose-wrap textarea:disabled{background:#f7f5fa;color:#8b8295}.tg-compose-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:10px}.tg-compose-actions small{font-size:10px;line-height:1.5;color:#928599}.tg-error{font-size:12px;line-height:1.45;color:#a13c49;overflow-wrap:anywhere;margin:8px 16px}.tg-error:empty{display:none}.tg-compose-wrap .tg-error{margin:10px 0 0}.tg-empty{padding:30px 20px;text-align:center;color:#887d94;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.tg-empty h2{font-size:17px;font-weight:500;color:#4e435c}.tg-chat>.tg-empty{margin:auto;max-width:480px}.tg-binding{padding:0 20px;font-size:12px;line-height:1.5;background:#fffaf0;color:#7e633e;max-height:230px;overflow:auto}.tg-binding:empty{display:none}.tg-binding details{padding-bottom:12px}.tg-binding summary{cursor:pointer;color:#6550ff;margin-bottom:10px}.tg-binding .field{font-size:12px}.tg-binding input{min-height:40px;padding:9px 12px;border:1px solid #e6def0;border-radius:8px}.tg-link-option{width:100%;display:block;padding:10px;text-align:left;border:1px solid #e8e1ef;border-radius:8px;background:#fff;margin-top:6px;font-size:12px;overflow-wrap:anywhere}.tg-link-option strong,.tg-link-option span{display:block}.tg-link-option span{font-size:11px;color:#887c93;margin-top:4px}.tg-link-option:hover{border-color:#ad99f7}.tg-link-option:disabled{opacity:.5}.tg-blogger-card{border-top:1px solid #eee9f4;margin-top:18px;padding-top:16px;font-size:13px}.tg-blogger-card h3{font-size:14px;margin:0 0 8px}.tg-blogger-card .form-actions{margin-top:10px;padding-top:0;border:0}.tg-workspace button:focus-visible{outline:2px solid #8e77ee;outline-offset:-3px}
@media(max-width:1050px){.tg-workspace{grid-template-columns:minmax(205px,250px) minmax(0,1fr)}.tg-chat-header{padding:14px}.tg-chat-header>.btn{padding:7px 10px;font-size:12px}.tg-message{max-width:92%}}
@media(max-width:700px){.tg-workspace{display:flex;min-height:440px;height:calc(100dvh - 190px);max-height:none}.tg-dialogs{width:100%;border:0}.tg-chat{display:none;width:100%}.tg-chat-open .tg-dialogs{display:none}.tg-chat-open .tg-chat{display:flex}.tg-back{display:inline-flex;width:28px}.tg-chat-header{gap:6px;padding:12px 8px}.tg-chat-header h2{font-size:14px}.tg-chat-header p{font-size:10px}.tg-chat-header>.btn{font-size:11px;padding:6px 8px}.tg-history{padding:14px 10px}.tg-message{padding:10px;max-width:94%}.tg-message-text{font-size:13px}.tg-compose-wrap{padding:10px}.tg-compose-wrap textarea{font-size:16px;min-height:58px}.tg-compose-actions small{font-size:9px;max-width:145px}.tg-compose-actions .btn{min-height:40px;font-size:12px;white-space:normal;padding:8px 12px}.tg-binding{padding:0 12px}.tg-dialogs>.tg-error{margin-top:0}}
.tg-dialogs>.btn[hidden],#tg-notice[hidden]{display:none}.tg-empty .tg-back{width:auto;margin:0 auto 12px}
