*{box-sizing:border-box}body{margin:0;font:15px/1.5 system-ui,"Microsoft YaHei",sans-serif;color:#20334b;background:#f3f6fb}button,input,select,textarea{font:inherit}button,a{cursor:pointer}button{border:0;border-radius:10px;padding:9px 16px;background:#2469ee;color:white;font-weight:650}button:disabled{opacity:.5;cursor:default}input,select,textarea{width:100%;border:1px solid #dce4ef;border-radius:10px;background:white;padding:10px;color:#20334b}textarea{resize:vertical;min-height:90px}form{display:grid;gap:12px}h1,h2,h3,p{margin-top:0}h2{font-size:19px}h3{font-size:16px}p,small{color:#708095}small{font-weight:400}header{height:76px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #e4eaf4}header b{display:flex;align-items:center;gap:12px;font-size:19px}header button{background:#edf3ff;color:#2865cc}.brand{display:inline-grid;place-items:center;color:white;background:#2469ee;border-radius:12px;width:42px;height:42px;font-size:28px;font-weight:800}nav{display:flex;gap:9px;padding:15px 28px}nav button{color:#66778d;background:transparent}nav button.active{background:#e5edff;color:#2469ee}.layout{display:grid;grid-template-columns:340px 1fr;margin:0 24px 24px;border:1px solid #e2e9f2;border-radius:16px;background:white;overflow:hidden;height:calc(100vh - 164px)}aside{border-right:1px solid #e4eaf4;overflow:auto}.sidebar-top{padding:20px;position:sticky;top:0;background:white;z-index:1}.sidebar-top input{margin-bottom:10px}.customer{padding:16px 20px;border-top:1px solid #edf1f8;cursor:pointer}.customer:hover,.customer.selected{background:#edf4ff}.row{display:flex;gap:8px;align-items:center;justify-content:space-between}.avatar{width:38px;height:38px;border-radius:12px;background:#dfebff;color:#2865cc;display:inline-grid;place-items:center;font-weight:700}.badge{font-size:12px;color:#c76914;background:#fff0dc;border-radius:6px;padding:2px 6px;margin-right:4px}.badge.repeat{color:#8345bd;background:#f2e6ff}.preview{margin:7px 0 0;font-size:13px;color:#7b8ba0}.empty{display:grid;place-content:center;height:100%;text-align:center;padding:25px}main{overflow:auto}.chat-head{padding:22px;border-bottom:1px solid #e6ecf5}.chat-head h2{margin-bottom:6px}.tools{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.tools select{width:auto}.threads{padding:18px}.thread{border:1px solid #e2e9f2;border-radius:12px;margin-bottom:18px;overflow:hidden}.thread-title{background:#f6f8fc;padding:12px 16px;font-weight:650}.messages{padding:16px;max-height:400px;overflow:auto}.message{max-width:85%;background:#f0f3f8;padding:10px 14px;border-radius:12px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.message.out{margin-left:auto;background:#e6f0ff}.message small{display:block;font-size:11px;margin-top:5px}.reply{display:flex;gap:8px;padding:12px}.reply input{flex:1}.profile{padding:0 20px 20px}.profile details{border-top:1px solid #e4eaf4;padding:12px 0}.profile form{margin-top:12px}section{margin:5px 24px 24px;padding:24px;background:white;border-radius:14px;overflow:auto}.cards{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px}article{padding:20px;background:#f7f9fc;border:1px solid #e6ecf5;border-radius:12px}article p{font-size:12px;margin:12px 0 0}table{border-collapse:collapse;width:100%;margin-top:15px;font-size:13px}td,th{text-align:left;padding:12px;border-bottom:1px solid #e5ebf4;overflow-wrap:anywhere}th{background:#f6f8fc}#login{display:grid;place-content:center;min-height:100vh}.login-card{background:white;border-radius:22px;padding:40px;width:360px;box-shadow:0 12px 55px #d9e3f1}.login-card h1{font-size:24px;margin-top:18px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#20334b;color:white;border-radius:12px;padding:13px 24px;z-index:10;max-width:90vw}[hidden]{display:none!important}@media(max-width:760px){header{padding:12px;height:auto;gap:10px;flex-wrap:wrap}nav{padding:10px}.layout{display:block;height:auto;margin:0 10px}aside{max-height:320px;border-right:0;border-bottom:1px solid #ddd}main{min-height:380px}section{margin:10px;padding:16px}.cards{grid-template-columns:1fr}header b{font-size:16px}.message{max-width:95%}}

.connect-card{margin-bottom:18px}.connect-card button{margin-top:12px}.connect-card details{margin-top:15px}.connect-card form{max-width:650px}#facebookResult{white-space:pre-wrap;font-size:14px}label input[type=checkbox]{width:auto}
