:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#253143;background:#f3f5f8;font-size:14px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d8dfe8;background:white;color:#34445a;border-radius:8px;padding:10px 14px;transition:.15s}button:hover{background:#edf3fb}button:disabled{opacity:.45;cursor:default}.primary{background:#2563eb;border-color:#2563eb;color:white}.primary:hover{background:#1d4ed8}input,select,textarea{border:1px solid #d5dce6;border-radius:8px;background:white;padding:11px;color:#263448;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #bed2ff;outline-offset:1px}textarea{width:100%;resize:vertical;min-height:100px}label{display:block;font-size:13px;font-weight:600;margin:14px 0}label input:not([type=checkbox]),label textarea,label select{display:block;margin-top:7px;width:100%}.muted,small{color:#7b8799;line-height:1.6}small{display:block;font-size:12px}.error{color:#c42c3d}h1,h2,h3{color:#14243b}h1{font-size:25px;margin:6px 0}h2{font-size:19px;margin:0 0 12px}h3{font-size:15px}.brand{text-decoration:none;font-size:21px;font-weight:850;letter-spacing:1px;color:#e9f0ff}.brand span{font-weight:400;color:#9badc8}#login{min-height:100vh;display:grid;place-items:center;background:#111e33}.login-card{background:white;border-radius:18px;padding:38px;width:min(450px,94vw);box-shadow:0 20px 80px #0003}.login-card .brand{color:#172b49}.login-card h1{margin-top:30px}.login-card button{width:100%;margin-top:10px}#app{display:flex;min-height:100vh}aside{background:#122039;width:230px;position:fixed;inset:0 auto 0 0;padding:30px 18px;display:flex;flex-direction:column;color:#dfE8f8}.sidebar-label{font-size:10px;letter-spacing:1.8px;color:#6f839f;margin:34px 10px 12px}nav{display:grid;gap:7px}nav button{background:none;border:0;color:#9fb0ca;text-align:left;padding:14px 12px}nav button:hover,nav button.active{background:#233858;color:white}nav span{float:right}.sidebar-bottom{margin-top:auto;display:grid;gap:8px;padding:20px 8px 0}.sidebar-bottom button{background:#1f3351;border-color:#304768;color:#bacbe4}main{margin-left:230px;width:calc(100% - 230px);padding:28px 32px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:16px}.eyebrow{font-size:10px;color:#8592a5;font-weight:650;letter-spacing:1.8px}.pill{padding:8px 12px;border:1px solid #cbd7e6;border-radius:20px;background:#eaf0f8;font-size:12px;color:#526a8e}.pill.good{color:#16764b;background:#e2f5ea;border-color:#bce3cf}#notice{padding:0;min-height:20px;margin-bottom:12px;font-size:13px;color:#426087}.inbox{display:grid;grid-template-columns:310px 1fr;background:white;min-height:700px;border:1px solid #dfe5ee;border-radius:12px;overflow:hidden}.queue{border-right:1px solid #e3e9f2}.queue-head{padding:18px;display:grid;gap:10px;border-bottom:1px solid #edf0f5}.queue-head input,.queue-head select{width:100%}#chat-list{max-height:720px;overflow:auto}.chat{display:block;width:100%;border:0;border-radius:0;border-bottom:1px solid #edf0f6;padding:18px;text-align:left}.chat.selected{background:#edf4ff;border-left:3px solid #2563eb}.chat strong{display:block;margin-bottom:8px;color:#263b58}.chat p{font-size:12px;color:#8794a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:8px 0 0}.tag{display:inline-block;padding:4px 8px;font-size:10px;border-radius:5px;background:#eaf0f8;color:#587291}.tag.waiting{background:#fff1d8;color:#a16c13}.tag.human{background:#e8eafe;color:#6052c5}.tag.closed{background:#ebedf1;color:#7e899a}.tag.bot{background:#e0f5eb;color:#287a56}.conversation{min-width:0}#empty-chat{padding:160px 40px;text-align:center}.empty-icon{font-size:60px;color:#a6bbdc;margin-bottom:20px}.conversation-head{display:flex;justify-content:space-between;gap:12px;padding:22px;border-bottom:1px solid #ecf0f5}.conversation-head h2{margin:0 0 8px}.conversation-head #client-meta{font-size:12px;color:#8a98ad}.summary{background:#f8fafe;border-bottom:1px solid #e8edf6;padding:16px 24px;white-space:pre-wrap;font-size:13px;line-height:1.5}#messages{height:340px;overflow:auto;padding:20px 24px;background:#fcfdff}.bubble{max-width:85%;padding:13px 16px;border-radius:12px;background:#f0f3f8;margin:0 0 15px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.bubble.user{margin-left:auto;background:#e9f1ff}.bubble.manager{border:1px solid #b9d2f8;background:#f6faff}.bubble.note{background:#fff7de;border:1px solid #eadba7}.bubble small{font-size:10px;margin-bottom:4px;color:#70839d}.composer{padding:18px 22px;border-top:1px solid #edf0f5}.composer-top{display:flex;align-items:center;justify-content:space-between;font-size:11px}.composer-top label{margin:0 0 8px;font-size:12px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.actions select{max-width:160px}.card{background:white;border:1px solid #dfe5ee;border-radius:12px;padding:26px;margin-bottom:20px}.card label{max-width:750px}.card form{max-width:750px}.toolbar{display:flex;gap:12px;align-items:end;margin-bottom:20px}.toolbar label{margin:0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.metric{background:white;border:1px solid #dfe5ee;border-radius:12px;padding:24px}.metric strong{display:block;font-size:30px;color:#193252;margin-top:12px}.metric span{font-size:12px;color:#7f8fa5}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;color:#8292a8;letter-spacing:.5px;padding:12px;background:#f8fafe}td{padding:16px 12px;border-bottom:1px solid #edf0f5;font-size:13px}.entry{padding:18px 0;border-bottom:1px solid #edf0f5}.entry p{white-space:pre-wrap;line-height:1.6}.entry button{margin-right:8px}details{padding:20px;border-top:1px solid #edf0f5;color:#7b8ca3}details summary{cursor:pointer}#events p{font-size:12px;border-bottom:1px solid #edf0f5;padding:8px 0}dialog{border:1px solid #dfe5ee;border-radius:16px;padding:30px;max-width:500px}dialog::backdrop{background:#0d1a32a0}#settings-content{line-height:1.9;white-space:pre-wrap} @media(max-width:1100px){aside{width:185px}main{margin-left:185px;width:calc(100% - 185px);padding:20px}.inbox{grid-template-columns:250px 1fr}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){aside{position:static;width:auto;padding:18px}.sidebar-label,.sidebar-bottom{display:none}nav{grid-template-columns:repeat(2,1fr);margin-top:15px}#app{display:block}main{margin:0;width:100%;padding:15px}header{align-items:flex-start}h1{font-size:22px}.inbox{display:block}.queue{max-height:280px;overflow:auto;border-bottom:1px solid #ddd}.conversation-head{padding:16px}.actions button{font-size:11px}.card{padding:20px}}

#client-memory{white-space:pre-wrap;max-height:220px;overflow:auto;padding-top:8px}

.chat.needs-reply{background:#fff7e6;border-left:4px solid #dc8310;padding-left:14px}.chat.needs-reply:hover{background:#fff0cd}.chat.needs-reply.selected{background:#fff0cd;box-shadow:inset 0 0 0 2px #2563eb}.reply-alert{display:block;width:fit-content;margin-top:9px;padding:5px 8px;border-radius:5px;background:#ffe2ad;color:#7a4100;font-size:12px;font-weight:700}#queue-count:not(:empty){border-radius:10px;padding:0 6px;background:#ffe2ad;color:#7a4100}

.bubble.notice{max-width:100%;padding:8px 12px;background:#f3f5f8;color:#66758b;font-size:12px;font-style:italic;text-align:center;border-radius:6px}.bubble.notice small{font-style:normal}

.connection-status{display:flex;align-items:center;gap:14px;flex-wrap:wrap}#live-status{color:#188052;font-size:11px}#live-status.offline{color:#b53636}.report-toolbar{flex-wrap:wrap}.report-metric{text-align:left;cursor:pointer}.report-metric:hover{border-color:#80a6ed;background:#f6f9ff}.attention-row{display:flex;align-items:center;gap:18px;justify-content:space-between;width:100%;text-align:left;border:0;border-bottom:1px solid #edf0f5;border-radius:0;padding:15px 5px}.attention-row span{color:#74849a;font-size:12px}.manager-view .inbox{min-height:650px}.manager-view #messages{height:calc(100vh - 460px);min-height:300px}.manager-view .sidebar-label{margin-top:22px}.manager-view .bubble{font-size:14px}@media(max-width:760px){.connection-status{gap:5px}.attention-row{flex-wrap:wrap}.report-toolbar label{width:45%}.manager-view #messages{height:350px}}

#report-cards{grid-template-columns:repeat(3,1fr)}.manager-view #messages{height:calc(100vh - 630px);min-height:220px;max-height:650px}@media(max-width:1100px){#report-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.manager-view #messages{height:350px}#report-cards{grid-template-columns:repeat(2,1fr)}}
