*{box-sizing:border-box}body{margin:0;color:#152033;background:#f5f7fb;font:14px/1.5 system-ui,sans-serif}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{border:0;border-radius:10px;padding:10px 15px;background:#101a2e;color:#fff;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:hover{filter:brightness(1.15)}input,select,textarea{border:1px solid #dbe3ed;background:#f8fafc;border-radius:9px;padding:11px;width:100%;color:#152033}label{display:block;margin:13px 0;font-weight:600}label input,label select{margin-top:6px}h1,h2,p{margin:0 0 12px}h2{font-size:18px}p,small{color:#64748b}small{display:block}.brand{width:48px;height:48px;background:linear-gradient(130deg,#09b1df,#6556e9);border-radius:15px;display:grid;place-items:center;color:white;font-size:26px;font-weight:900}.login{max-width:430px;background:white;border:1px solid #dbe3ed;border-radius:20px;padding:32px;margin:12vh auto}.login h1{font-size:24px;margin-top:22px}.login button{width:100%;margin-top:12px}#app{display:flex;height:100dvh}.rail{width:95px;flex-shrink:0;background:#191d26;padding:20px 10px;display:flex;flex-direction:column;gap:12px}.rail .brand{margin:auto auto 20px}.rail button{background:#292f3e;font-size:12px;padding:12px 4px}.railEnd{margin-top:auto;color:#bec7d5;font-size:11px;word-break:break-word}.railEnd button{width:100%;margin-top:12px}.workspace{flex:1;min-width:0}header{height:76px;background:#fff;border-bottom:1px solid #e0e6ef;padding:18px 25px;display:flex;justify-content:space-between;align-items:center}header strong{font-size:18px}#connection{font-size:12px;color:#65748c}.inbox{display:flex;height:calc(100dvh - 76px)}.queue{width:330px;flex-shrink:0;background:#fff;border-right:1px solid #e0e6ef;overflow:auto;padding:22px 15px}.tabs{display:flex;gap:5px;margin:15px 0}.tabs button{padding:7px;font-size:11px;background:#edf1f7;color:#25334b}.tabs button.selected{background:#101a2e;color:white}.chatItem{display:block;text-align:left;width:100%;padding:14px;margin:8px 0;background:white;border:1px solid #dbe3ed;color:#17243a}.chatItem.selected{border-color:#0ea5e9;background:#eefaff}.chatItem p{margin:4px 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{font-size:10px;font-weight:700;color:#0284c7}.conversation{flex:1;min-width:0;background:white}#empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px}#empty .brand{margin-bottom:20px}#chatPanel{height:100%;display:flex;flex-direction:column}.chatHead{padding:20px;border-bottom:1px solid #e0e6ef;display:flex;justify-content:space-between;gap:15px}.actions{display:flex;gap:6px;align-items:center}.actions button{font-size:11px;padding:8px}#messages{flex:1;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:78%;padding:11px 15px;border-radius:14px;background:#f0f3f8;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.agent{background:#0d213d;color:white;align-self:flex-end}.bubble small{font-size:10px;color:#8193ac;margin-top:6px}#replyForm{display:flex;gap:12px;border-top:1px solid #e0e6ef;padding:18px}#replyForm textarea{resize:vertical;min-height:60px;max-height:160px}.management{padding:28px;overflow:auto;height:calc(100dvh - 76px)}.card{background:white;border:1px solid #dbe3ed;border-radius:16px;padding:22px;margin:18px 0;max-width:720px}.card pre{padding:15px;background:#f2f5fb;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;font-size:12px}.card input[type=checkbox]{width:auto;margin-right:8px}.card label.check{font-weight:400}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#notice:not(:empty){position:fixed;top:15px;left:50%;transform:translateX(-50%);z-index:10;background:#101a2e;color:white;padding:12px 22px;border-radius:12px;max-width:90%}@media(max-width:760px){.rail{width:65px;padding:15px 5px}.rail .brand{width:40px;height:40px}.queue{width:220px;padding:15px 10px}.actions{flex-wrap:wrap}.chatHead{flex-direction:column;padding:12px}.bubble{max-width:95%}.management{padding:15px}header{padding:15px;font-size:12px}}@media(max-width:500px){.inbox{flex-direction:column}.queue{width:100%;max-height:240px;border-bottom:1px solid #ddd}.queue h2,.queue label{margin:3px 0}.tabs{margin:6px 0}#chatList{display:flex;gap:7px;overflow:auto}.chatItem{min-width:180px}.conversation{min-height:0}.railEnd span{display:none}}
