*{box-sizing:border-box}body{margin:0;font:15px system-ui,-apple-system,Microsoft YaHei,sans-serif;color:#222;background:#ddd}button,input,textarea,select{font:inherit}button{border:0;background:none;cursor:pointer;color:inherit}button:hover{opacity:.8}.shell{display:flex;width:min(1400px,100vw);height:min(900px,100dvh);margin:auto;background:#f5f5f5;box-shadow:0 2px 30px #0002}.rail{width:64px;flex:none;background:#2e2e2e;color:#9b9b9b;display:flex;align-items:center;flex-direction:column;gap:24px;padding:24px 0}.rail button{font-size:23px;color:#9b9b9b}.rail button:first-of-type{color:#07c160}.rail-bottom{margin-top:auto}.avatar,.person{display:grid;place-items:center;width:40px;height:40px;background:#07c160;color:#fff;border-radius:5px;font-weight:700}.list{width:270px;flex:none;background:#f7f7f7;border-right:1px solid #e7e7e7}.list header,.chat header,.profile header{height:65px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #e7e7e7;gap:12px}.list header button{margin-left:auto;font-size:13px;color:#666}.search{background:#e9e9e9;color:#999;margin:15px;border-radius:5px;padding:8px}.conversation{width:100%;display:flex;gap:12px;text-align:left;padding:12px 16px;align-items:center}.conversation.active{background:#dedede}.conversation small{display:block;color:#999;margin-top:6px}.chat{min-width:0;flex:1;display:flex;flex-direction:column;background:#f5f5f5}.chat header strong{font-size:17px}.chat header button{color:#666}.spacer{flex:1}.back{display:none}.messages{flex:1;overflow:auto;padding:26px}.message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 20px}.message.mine{align-items:flex-end}.message small{color:#999;margin:0 0 5px}.bubble{max-width:min(70%,600px);white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:10px 14px;border-radius:5px;line-height:1.5}.mine .bubble{background:#95ec69}.recall{font-size:12px;color:#aaa}.composer{border-top:1px solid #e7e7e7;display:flex;align-items:flex-end;padding:14px;gap:12px;height:150px}.composer textarea{flex:1;height:100%;resize:none;border:0;outline:0;background:transparent}.primary{background:#07c160;color:#fff;border-radius:4px;padding:9px 22px}.empty{margin:auto;color:#aaa}.profile{width:285px;flex:none;border-left:1px solid #e7e7e7;background:#fafafa;padding:0 18px;overflow:auto}.profile header{padding:0}.profile header button{margin-left:auto}.profile label{display:block;margin:18px 0;color:#666}.profile input:not([type=checkbox]),.profile textarea,.profile select,.dialog input{display:block;width:100%;padding:9px;margin-top:7px;border:1px solid #ddd;border-radius:4px;background:#fff}.profile textarea{min-height:80px}.guide{position:fixed;right:20px;bottom:20px;width:min(360px,calc(100vw - 40px));background:#fff;box-shadow:0 4px 24px #0003;border-radius:8px;padding:20px;z-index:5}.guide>button:first-child{float:right}.guide p{color:#666;line-height:1.6}.guide.full{top:0;right:0;bottom:0;left:0;width:auto;border-radius:0;background:#111e;color:#fff;padding:60px 30px}.guide.full p{color:#fff}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0007;display:grid;place-items:center;z-index:10}.dialog{width:min(360px,90vw);background:#fff;padding:24px;border-radius:8px}.dialog input{margin:15px 0}.close{float:right}.toast{position:fixed;top:20px;left:50%;transform:translate(-50%);background:#333;color:#fff;padding:12px 20px;border-radius:5px;z-index:20}@media (max-width:700px){.shell{height:100dvh}.rail{width:48px}.list{width:auto;flex:1}.mobile-hidden{display:none}.chat{width:100%}.back{display:block;font-size:26px}.chat header{padding:0 10px}.chat header button{font-size:13px}.messages{padding:16px}.composer{height:100px}.profile{position:fixed;right:0;top:0;bottom:0;width:min(320px,90vw);z-index:4;box-shadow:0 0 20px #0003}}.admin-dialog{max-height:90vh;overflow:auto}.agent-list{max-height:30vh;overflow:auto}.agent-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eee}.agent-row small{display:block;color:#777;margin-top:4px}
