:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#16243a;background:#f4f7fb;font-size:15px}*{box-sizing:border-box}body{margin:0}a{color:#2167bd;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer;background:#2563eb;color:white;border:0;border-radius:9px;padding:11px 17px;font-weight:600}button:hover{filter:brightness(.95)}button.secondary{background:#ecf2f9;color:#23436a}.small{font-size:13px;padding:8px 12px}.header{height:65px;background:white;border-bottom:1px solid #e5ebf1;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1100px)/2));gap:20px}.brand{color:#192f52;font-weight:800;font-size:18px}.layout,.chat-layout{max-width:1060px;margin:26px auto;padding:0 18px}.heading h1,.chat-header h1{font-size:25px;margin:0 0 5px}.muted{color:#718096;margin:0}.card{background:white;border-radius:13px;border:1px solid #e3e9f1;box-shadow:0 2px 7px rgba(13,30,60,.03)}.filters{padding:16px;display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.filters label,.stack label,.range-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#50637d}.filters input,.filters select,.stack input{min-height:39px;padding:8px 10px;border:1px solid #cdd7e4;border-radius:8px;background:white;color:#152b47;min-width:140px}.range-fields{display:flex;gap:10px}.list{overflow:hidden}.list-head{padding:15px 18px;font-weight:750;border-bottom:1px solid #e9edf3}.conversation{display:flex;gap:13px;align-items:center;padding:14px 18px;color:inherit;border-bottom:1px solid #f0f2f6}.conversation:hover{background:#f7faff}.avatar{width:44px;height:44px;border-radius:50%;background:#e5edf9;color:#3867a4;display:grid;place-items:center;flex-shrink:0;font-weight:750}.conversation-body{flex:1;min-width:0}.conversation-top,.conversation-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.conversation-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-top time,.smalltext{font-size:12px}.conversation-top time{color:#8694a6;white-space:nowrap}.conversation-bottom{margin-top:7px}.status{display:inline-block;border-radius:15px;padding:4px 9px;font-size:12px;white-space:nowrap;font-weight:650}.status.on{color:#18704b;background:#e4f8ed}.status.off{color:#a35f16;background:#fff1d9}.chev{color:#8291a4;font-size:23px}.empty{text-align:center;padding:32px;color:#78869a}.pagination{display:flex;gap:20px;justify-content:center;align-items:center;padding:22px}.login{max-width:400px;margin:70px auto;padding:30px}.login h1{margin:0 0 8px}.stack{display:grid;gap:17px;margin-top:24px}.stack input{width:100%}.error{color:#ba2222;background:#fff0f0;padding:11px;border-radius:7px}.back{display:inline-block;margin:0 0 15px}.chat-header{padding:19px;display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}.reason{max-width:300px;font-size:12px;color:#98621f;overflow-wrap:anywhere}.chat{height:min(70vh,780px);min-height:400px;overflow:auto;padding:22px;background:#edf3f7}.message-row{display:flex;margin:12px 0}.message-row.incoming{justify-content:flex-start}.message-row.outgoing{justify-content:flex-end}.bubble{padding:11px 14px;border-radius:14px;max-width:min(78%,680px);box-shadow:0 1px 2px #0001;overflow-wrap:anywhere}.bubble.customer{background:white;border-bottom-left-radius:4px}.bubble.agent{background:#daf2e3;border-bottom-right-radius:4px}.bubble.manager{background:#deebff;border-bottom-right-radius:4px}.sender{font-size:12px;font-weight:800;color:#65758d;margin-bottom:5px}.agent .sender{color:#218053}.manager .sender{color:#2769b3}.content{white-space:pre-wrap;line-height:1.5}.bubble time{display:block;text-align:right;color:#83909d;font-size:11px;margin-top:6px}.footnote{font-size:12px;margin-top:11px}#older{text-align:center}#older button{font-size:12px}@media(max-width:650px){.layout,.chat-layout{margin:12px auto;padding:0 10px}.header{padding:0 12px}.brand{font-size:16px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters label,.filters input,.filters select{min-width:0;width:100%}.filters>label:nth-of-type(3),.filters>button,.range-fields{grid-column:1/-1}.range-fields{display:grid;grid-template-columns:1fr 1fr}.range-fields[hidden]{display:none}.chat-header{padding:13px;align-items:flex-start;flex-direction:column}.chat-header h1{font-size:20px}.chat{height:calc(100dvh - 275px);min-height:330px;padding:10px}.bubble{max-width:89%}.conversation{padding:12px}.conversation-top time{font-size:11px}}[hidden]{display:none!important}
