:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#242424;background:#f7eee8}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea{font:inherit}.chat-shell{width:min(100%,760px);min-height:100vh;margin:auto;background:#fff;display:grid;grid-template-rows:auto 1fr auto auto}.chat-header{display:flex;align-items:center;gap:12px;padding:18px 20px;background:linear-gradient(135deg,#b90818,#e32632);color:#fff;box-shadow:0 2px 12px #0002}.chat-header h1{font-size:19px;margin:0 0 5px}.chat-header p{font-size:13px;margin:0;opacity:.9}.agent-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#c30d1c;font-weight:800}.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#54dc86;margin-right:5px}.messages{padding:20px;overflow:auto;display:flex;flex-direction:column;gap:13px;min-height:0}.empty{color:#888;text-align:center;margin:auto}.message{max-width:78%;padding:11px 14px;border-radius:14px;background:#f2f2f2;align-self:flex-start;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#d9212c;color:#fff}.message small{display:block;font-size:11px;opacity:.66;margin-bottom:4px}.composer{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eee;background:#fff}.composer textarea{resize:none;border:1px solid #d9d9d9;border-radius:10px;padding:10px;outline:none}.composer textarea:focus{border-color:#cf1725}.composer button,.login-card button{border:0;border-radius:10px;padding:0 20px;background:#d41422;color:#fff;font-weight:700}.status{min-height:20px;margin:0;padding:0 16px 8px;color:#b20c19;font-size:13px}.admin-body{background:#f3f4f6}.login-card{width:min(92%,390px);margin:12vh auto;padding:30px;background:#fff;border-radius:18px;box-shadow:0 15px 45px #0001}.login-card h1{margin:0}.login-card form{display:grid;gap:12px;margin-top:24px}.login-card input{padding:13px;border:1px solid #ddd;border-radius:9px}.login-card button{height:46px}.desk{height:100vh;display:grid;grid-template-columns:330px 1fr}.desk aside{background:#fff;border-right:1px solid #ddd;overflow:auto}.desk aside header{padding:18px;display:flex;align-items:center;justify-content:space-between}.desk aside h1{font-size:18px;margin:0}.link-button{border:0;background:none;color:#c20e1c}.conversation{width:100%;border:0;border-top:1px solid #eee;background:#fff;padding:15px 18px;text-align:left}.conversation.active{background:#fff0f1}.conversation strong,.conversation span{display:block}.conversation span{font-size:12px;color:#777;margin-top:6px}.desk-chat{min-width:0;display:grid;grid-template-rows:auto 1fr auto auto;background:#fafafa}.desk-chat>header{padding:20px;background:#fff;border-bottom:1px solid #ddd;font-weight:700}@media(max-width:720px){.desk{grid-template-columns:135px 1fr}.conversation{padding:12px 8px}.conversation span{display:none}.messages{padding:12px}.message{max-width:90%}}
