/* Contacts Chat Bidirectional Translation UI */
.tr-header-bar{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
.tr-auto-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;font-size:12px;font-weight:600;cursor:pointer;user-select:none}
.tr-auto-pill input{width:14px;height:14px;accent-color:#1677ff;cursor:pointer;margin:0}
.tr-auto-pill.is-on{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.tr-all-btn{padding:6px 11px;border-radius:6px;border:1px solid #cbd5e1;background:#ffffff;color:#1f2937;font-size:12px;font-weight:500;cursor:pointer}
.tr-all-btn:hover{background:#eff6ff;border-color:#1677ff;color:#1677ff}
.tr-all-btn:disabled{opacity:.5;cursor:wait}
.msg-translation{margin-top:6px;padding-top:6px;border-top:1px dashed rgba(15,23,42,.15);font-size:12.5px;line-height:1.45;color:#1e3a8a;white-space:pre-wrap;word-break:break-word}
.message.outbound .msg-translation{color:#065f46;border-top-color:rgba(6,95,70,.2)}
.msg-tr-btn{display:inline-block;margin-left:6px;padding:1px 5px;border:1px solid rgba(15,23,42,.18);border-radius:4px;background:rgba(255,255,255,.75);color:#1d4ed8;font-size:10px;line-height:1.3;cursor:pointer;vertical-align:middle}
.msg-tr-btn:hover{background:#eff6ff;border-color:#1677ff}
.composer{flex-wrap:wrap!important;row-gap:8px!important}
.tr-composer-bar{flex:0 0 100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:6px;border-bottom:1px solid #eef2f6}
.tr-composer-label{font-size:12px;color:#4b5563;font-weight:600}
.tr-lang-select{height:30px;padding:0 8px;border:1px solid #cbd5e1;border-radius:6px;background:#ffffff;color:#111827;font-size:12px;outline:none;cursor:pointer}
.tr-lang-select:focus{border-color:#1677ff}
.tr-send-btn{height:30px;padding:0 12px;border:0;border-radius:6px;background:#1677ff;color:#ffffff;font-size:12px;font-weight:600;cursor:pointer}
.tr-send-btn:hover{background:#0958d9}
.tr-send-btn:disabled{opacity:.55;cursor:wait}
.tr-undo-btn{height:30px;padding:0 10px;border:1px solid #cbd5e1;border-radius:6px;background:#ffffff;color:#374151;font-size:12px;cursor:pointer}
.tr-undo-btn:hover{background:#f1f5f9;color:#111827}
.tr-hint{font-size:11px;color:#6b7280;margin-left:auto}
@media(max-width:760px){.tr-hint{display:none}}
