:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#243c50;background:#f4f9fc;font-size:14px}*{box-sizing:border-box}body{margin:0;padding:28px 32px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}header small{color:#1681b8;font-weight:700;letter-spacing:2px}h1{font-size:28px;margin:8px 0}p{line-height:1.6}header p,.muted,footer,#count{color:#6b8192}#sync{color:#54809a;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stats article{background:white;border:1px solid #dcebf3;border-radius:14px;padding:20px 24px}.stats strong{display:block;font-size:32px;color:#168ac4;margin:8px 0}.stats small{color:#7a8c98}main{display:grid;grid-template-columns:minmax(320px,24%) minmax(360px,1fr) minmax(340px,25%);border:1px solid #dcebf3;border-radius:16px;background:white;overflow:hidden;height:calc(100vh - 300px);min-height:500px}.contacts,.crm{padding:22px;overflow:auto}.contacts{border-right:1px solid #e4eef4}.crm{border-left:1px solid #e4eef4}label{display:block;font-weight:600;margin-bottom:8px}input,select,textarea{width:100%;padding:10px;border:1px solid #ccdfe9;border-radius:8px;background:#fff;font:inherit;color:inherit}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #8ad2f6;outline-offset:1px}button{font:inherit;cursor:pointer}.contact{width:100%;text-align:left;padding:14px;border:1px solid transparent;border-radius:10px;background:white;color:inherit;margin-bottom:7px}.contact:hover{background:#f3faff}.contact.active{background:#e8f6ff;border-color:#a6dbf7}.contact b,.contact small{display:block;overflow-wrap:anywhere}.contact small{color:#6b8192;margin-top:6px;font-size:12px}.contact .meta{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#4d7891}.conversation{display:flex;flex-direction:column;min-width:0}.chathead{padding:20px 24px;border-bottom:1px solid #e4eef4}.chathead h2,.crm h2{margin:0 0 6px;font-size:18px}.chathead p{margin:3px 0 9px;color:#6b8192}.chathead small{color:#7c8e9c;font-size:12px}#messages{padding:24px;overflow:auto;flex:1;background:#f7fbfe}.bubble{max-width:85%;width:fit-content;padding:12px 16px;border-radius:14px;margin-bottom:16px;background:white;border:1px solid #ddeaf2;overflow-wrap:anywhere}.bubble.outgoing{margin-left:auto;background:#dff2ff;border-color:#c2e5fb}.bubble.unknown{margin-left:auto;margin-right:auto;background:#fff6df;border-color:#f3d79a}.bubble .who{font-size:12px;font-weight:600;color:#4383a5;margin-bottom:6px}.bubble .text{white-space:pre-wrap;line-height:1.65}.bubble .time{font-size:11px;color:#768c9c;margin-top:8px}.empty{text-align:center;color:#7c8e9c;padding:40px 5px}.crm label{margin-top:18px}.crm .muted{font-size:12px}fieldset{border:0;padding:0;margin:0}.save{background:#178dc8;color:white;border:0;border-radius:8px;padding:12px;width:100%;margin-top:20px}.save:disabled{opacity:.5}#saved{color:#287c5d;font-size:12px}footer{font-size:12px;text-align:center;padding:18px} @media(max-width:1100px){body{padding:20px}main{grid-template-columns:240px 1fr}.crm{grid-column:1/-1;border-top:1px solid #e4eef4}main{height:auto}.conversation{height:550px}.contacts{max-height:550px}}@media(max-width:650px){.stats{grid-template-columns:1fr}.stats article{padding:14px}main{display:block}.contacts{max-height:300px;border-bottom:1px solid #e4eef4}header{display:block}header #sync{display:block;margin-top:14px}}

.accountbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:16px 20px;background:#fff;border:1px solid #dcebf3;border-radius:12px}.accountbar small{display:block;color:#6b8192;margin-top:5px}.account{padding:10px 18px;border:1px solid #cee3ef;background:#fff;border-radius:8px;color:#446c84;margin:3px}.account.active{background:#178dc8;color:white;border-color:#178dc8}@media(max-width:650px){.accountbar{display:block}#accounts{margin-top:12px}}

.coverage{padding:12px 18px;background:#fff7e7;border:1px solid #f0dfb9;border-radius:10px;color:#82672e;font-size:13px}

#cleardate{background:#edf7fd;border:1px solid #cee3ef;border-radius:8px;padding:8px 12px;color:#3b779a;margin-top:8px}.contacts .muted{font-size:12px}

.login-overlay{position:fixed;inset:0;background:#eef7ff;z-index:100;display:grid;place-items:center}.login-overlay[hidden]{display:none}.login-overlay form{background:white;padding:32px;border:1px solid #cce5f5;border-radius:20px;width:min(420px,90vw)}.login-overlay label{display:block;margin:20px 0}.login-overlay button{padding:12px 24px;background:#148fc3;color:white;border:0;border-radius:8px}
