:root{font:16px/1.5 system-ui,-apple-system,sans-serif;color:#172338;background:#f5f7fb;color-scheme:light}*{box-sizing:border-box}body{margin:0}header{padding:16px 20px;background:white;border-bottom:1px solid #e3e8ef;display:flex;gap:16px;align-items:center;flex-wrap:wrap}header strong{font-size:20px}small{font-size:14px;color:#627086}button,.button{font:inherit;background:#3158dd;color:white;border:0;border-radius:9px;padding:10px 16px;cursor:pointer;text-decoration:none}button.secondary{background:#e7edf8;color:#24334c}button:disabled{opacity:.5;cursor:wait}input,textarea{font:inherit;padding:10px;border:1px solid #cbd4e2;border-radius:8px;max-width:100%;background:white}textarea{resize:vertical}label{display:grid;gap:5px;margin:10px 0}main.console{max-width:1180px;margin:auto;padding:16px}.columns{display:grid;grid-template-columns:330px 1fr;gap:16px}.panel{background:white;border:1px solid #e1e7ef;border-radius:12px;padding:16px;min-width:0}#list{max-height:72vh;overflow:auto}.visitor-card{display:block;background:#f5f7fb;color:#172338;text-align:left;width:100%;margin:8px 0;overflow-wrap:anywhere}.online{color:#16854a}.muted{color:#627086;font-size:14px}#thread{height:45vh;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:10px 0}.bubble{padding:10px 14px;border-radius:12px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere;background:#edf1f6;align-self:flex-start}.bubble.agent{background:#3158dd;color:white;align-self:flex-end}form.send{display:flex;gap:8px;align-items:flex-end}form.send textarea{flex:1}#details{font-size:14px;overflow-wrap:anywhere}.error{color:#ae2635}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#eef2fa;padding:12px}.widget{height:100dvh;display:flex;flex-direction:column;background:white}.widget header{display:grid;gap:0;padding:12px 16px}.widget main{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.widget #status{margin:0 12px;font-size:13px;color:#627086}.widget form{display:flex;gap:8px;padding:12px}.widget textarea{min-width:0;flex:1}.widget .bubble.visitor{background:#3158dd;color:white;align-self:flex-end}.widget .bubble.agent{background:#edf1f6;color:#172338;align-self:flex-start}[hidden]{display:none!important}@media(max-width:720px){.columns{grid-template-columns:1fr}#list{max-height:30vh}#thread{height:40vh}header{padding:12px}main.console{padding:8px}.panel{padding:12px}}
