.tg-nav-title{padding:16px 14px 5px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.tg-nav-item{padding-left:26px!important}
.tg-avatar{width:36px;height:36px;object-fit:cover;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center}
.tg-avatar-empty{background:var(--line);color:var(--muted)}.tg-avatar-large{width:96px;height:96px}
.tg-identity{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:12px}.toolbar .tg-identity{margin:0;flex:1}
.tg-role{border-left:4px solid var(--role-color);padding:3px 8px;border-radius:4px;background:var(--line);white-space:nowrap}
.tg-error{color:#ed8796;font-size:12px;white-space:normal;max-width:480px;overflow-wrap:anywhere}
.tg-client{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);height:calc(100dvh - 215px);min-height:540px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tg-dialogs{padding:12px;border-right:1px solid var(--line);overflow:auto}.tg-dialogs .toolbar input{min-width:0;width:100%}
.tg-dialog{display:block;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;text-align:left;padding:12px 8px;width:100%;cursor:pointer;overflow-wrap:anywhere}.tg-dialog.active{background:var(--line)}.tg-dialog .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-unread{float:right;background:var(--accent);color:#fff;border-radius:12px;padding:1px 7px}
.tg-conversation{display:flex;flex-direction:column;padding:14px;min-height:0;min-width:0}.tg-messages{flex:1;overflow:auto;min-height:150px;display:flex;flex-direction:column;gap:10px;padding:8px 0}
.tg-message{padding:10px 12px;border:1px solid var(--line);border-radius:10px;max-width:88%;align-self:flex-start;overflow-wrap:anywhere}.tg-message.out{align-self:flex-end;background:var(--line)}.tg-message-text{white-space:pre-wrap}.tg-message-actions{display:flex;gap:4px;margin-top:8px;flex-wrap:wrap}.tg-conversation .field{margin:10px 0}.tg-conversation textarea{resize:vertical;max-height:180px}
#tg-filters input{min-width:230px}#tg-import-accounts{overflow:auto}#tg-proxy-results{max-height:45vh;overflow:auto}
@media(max-width:760px){.tg-client{grid-template-columns:1fr;height:auto}.tg-dialogs{max-height:260px;border-right:0;border-bottom:1px solid var(--line)}.tg-conversation{height:650px}.tg-message{max-width:96%}.tg-identity{flex-wrap:wrap}}
.aw-lists{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.aw-lists>div>div{max-height:300px;overflow:auto;border:1px solid var(--border,#334155);border-radius:8px;padding:8px}.aw-account{display:flex;gap:10px;width:100%;background:transparent;color:inherit;border:0;border-bottom:1px solid #64748b44;padding:8px;text-align:left;cursor:pointer}.aw-account:hover{background:#64748b22}.aw-history{max-height:350px;overflow:auto}.aw-message{padding:10px;border-bottom:1px solid #64748b44;white-space:pre-wrap}#aw-form input[type=number]{max-width:160px}@media(max-width:700px){.aw-lists{grid-template-columns:1fr}}
