.chat-panel{box-sizing:border-box;flex-direction:column;height:clamp(380px,100dvh - 230px,760px);padding:0;display:flex;overflow:hidden}.chat-head{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:6px 12px;padding:12px 16px;display:flex}.chat-head strong{font-size:13px}.chat-head .chat-reconnecting{margin-left:auto}.chat-panel>.alert{margin:10px 16px 0}.chat-scroll-wrap{flex:1;min-height:0;display:flex;position:relative}.chat-scroll{overscroll-behavior:contain;background:var(--wash);flex-direction:column;flex:1;gap:10px;min-width:0;padding:14px 16px;display:flex;overflow-y:auto}.chat-earlier{flex:none;align-self:center}.chat-empty{text-align:center;margin:auto;font-size:12px}.chat-line{text-align:center;max-width:90%;color:var(--muted);overflow-wrap:anywhere;align-self:center;margin:2px 0;font-size:11px}.chat-message{flex-direction:column;max-width:min(560px,85%);display:flex}.chat-message small{color:var(--muted);margin-bottom:3px;font-size:11px}.chat-message p{border:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border-radius:12px;margin:0;padding:9px 12px;font-size:13px;line-height:1.5}.chat-message.other{align-self:flex-start}.chat-message.other p{border-bottom-left-radius:4px}.chat-message.own{align-self:flex-end;align-items:flex-end}.chat-message.own p{background:#e9f1ff;border-color:#c7dbfb;border-bottom-right-radius:4px}.chat-message.pending.sending p{opacity:.65}.chat-message.pending.failed p{background:#fdf0f0;border-color:#e7a8a8}.chat-failed{color:#a52d2d;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin-top:5px;font-size:11px;display:flex}.chat-jump{position:absolute;bottom:10px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #1b35502e}.chat-compose{border-top:1px solid var(--line);background:#fff;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 10px;padding:12px 16px;display:grid}.chat-compose textarea{resize:vertical;width:100%;min-height:44px;max-height:140px;font-family:DM Sans,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;line-height:1.5}.chat-compose small{color:var(--muted);grid-column:1/-1;font-size:11px}.chat-compose small.over{color:#a52d2d}.chat-team-row{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--ink);text-align:left;background:#fff;border-radius:0;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:12px 16px;display:grid}.chat-team-row:hover{background:var(--wash)}.chat-team-row strong,.chat-team-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.chat-team-row strong{font-size:13px}.chat-team-row span{color:var(--muted);font-size:12px}.chat-team-row small{color:var(--muted);text-align:right;font-size:11px}.chat-inbox-bar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 16px;display:flex}.chat-inbox-bar .supplier-tabs{border:0;margin:0;padding:0}.chat-inbox-bar>input{flex:1;min-width:180px;max-width:340px}.chat-who{flex-direction:column;min-width:0;display:flex}.chat-who small{font-size:11px}.chat-actions{flex-wrap:wrap;margin-left:auto}.chat-transfer{border-bottom:1px solid var(--line);background:var(--wash);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px;font-size:12px;display:flex}.chat-transfer select{min-width:220px;max-width:100%}.chat-page-title{color:var(--ink);margin:0;font:700 16px Manrope,system-ui,sans-serif}.chat-page-title+.supplier-tabs{margin-top:8px}.chat-inbox-list{margin:0;padding:0;list-style:none}.chat-inbox-row{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--ink);text-align:left;cursor:pointer;background:#fff;border-left:3px solid #0000;border-radius:0;grid-template-columns:minmax(0,2.4fr) minmax(130px,1fr) minmax(130px,1fr) minmax(130px,auto);grid-template-areas:"who sales phone state";align-items:center;gap:6px 18px;padding:14px 16px;display:grid}.chat-inbox-row:hover,.chat-inbox-row:focus-visible{background:var(--wash)}.chat-inbox-row.has-unread{border-left-color:var(--brand-primary,#2563eb);background:#f7faff}.chat-inbox-who{flex-direction:column;grid-area:who;gap:4px;min-width:0;display:flex}.chat-inbox-title{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.chat-inbox-title strong{overflow-wrap:anywhere;font-size:14px}.chat-inbox-title small{color:var(--muted);font-size:11px}.chat-inbox-preview{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;display:block;overflow:hidden}.chat-inbox-sales{grid-area:sales}.chat-inbox-phone{grid-area:phone}.chat-inbox-state{flex-direction:column;grid-area:state;align-items:flex-end;gap:4px;display:flex}.chat-inbox-state small{color:var(--muted);font-size:11px}.chat-figure{flex-direction:column;gap:2px;min-width:0;display:flex}.chat-figure>small{color:var(--muted);font-size:11px}.chat-figure b{overflow-wrap:anywhere;font-size:13px}.chat-figure i{color:var(--muted);font-style:normal;font-weight:400}.chat-agency-facts{border-bottom:1px solid var(--line);background:#f8fbff;flex-wrap:wrap;gap:10px 32px;padding:10px 16px;display:flex}.chat-phone{align-items:center;gap:8px;display:flex}.chat-phone a{color:var(--brand-primary,#2563eb);text-decoration:none}.chat-phone a:hover{text-decoration:underline}.chat-state{flex-wrap:wrap;align-items:center;gap:6px;display:flex}@media (max-width:900px){.chat-inbox-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"who who""sales phone""state state";gap:10px 12px}.chat-inbox-state{flex-flow:wrap;justify-content:space-between;align-items:center}}@media (max-width:600px){.chat-agency-facts{gap:8px 20px;padding:8px 12px}}.nav-count,.menu-count{background:var(--danger,#c63737);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:800;line-height:1;display:inline-grid}.nav-count{margin-left:auto}.drawer-toggle{position:relative}.menu-count{display:none;position:absolute;top:-6px;right:-6px}.app.nav-collapsed .menu-count{display:inline-grid}@media (max-width:900px){.menu-count{display:inline-grid}}@media (max-width:1179px){.agent-app .menu-count{display:inline-grid}}.chat-inbox-bar .tab-count,.chat-page-tabs .tab-count{margin-left:6px}@media (max-width:600px){.chat-inbox-bar{padding-left:12px;padding-right:12px}.chat-inbox-bar>input{flex-basis:100%;max-width:none}.chat-actions{width:100%;margin-left:0}.chat-panel{height:calc(100dvh - 232px);min-height:320px}.chat-head,.chat-scroll,.chat-compose{padding-left:12px;padding-right:12px}.chat-message{max-width:92%}.chat-compose textarea{font-size:16px}}
