:root{--ink:#252330;--muted:#888591;--purple:#7161d5;--purple-dark:#5c4ec2;--purple-pale:#f0edf9;--line:#eeedf2;--surface:#fff;--background:#f8f8fb;--green:#609887;--red:#bd5f70;--font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,a,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #b5a9f1;outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.7}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}.button{min-height:42px;border:1px solid transparent;border-radius:9px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:13px;font-weight:550;transition:background .15s,box-shadow .15s}.primary{background:var(--purple);color:#fff;box-shadow:0 3px 7px #7161d517}.primary:hover:not(:disabled){background:var(--purple-dark);box-shadow:0 4px 12px #7161d531}.secondary{background:#fff;border-color:#e6e4ed;color:#595362}.secondary:hover:not(:disabled){background:var(--background)}.full-width{width:100%}.text-button{border:0;background:none;padding:0;font-weight:550}.danger{color:var(--red)}.danger-solid{background:#b55767;color:white}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#9691a2;font-size:21px}.icon-button:hover{background:var(--purple-pale);color:var(--purple)}
.application{display:flex;min-height:100vh}.sidebar{width:224px;flex:0 0 224px;background:#fff;border-right:1px solid var(--line);padding:31px 18px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-weight:650;font-size:23px;letter-spacing:-.8px;line-height:1.1;padding:0 10px}.brand-mark{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:var(--purple);color:white;font-family:Georgia,serif;font-size:35px;line-height:1;padding-bottom:6px;font-style:italic;font-weight:400;letter-spacing:-4px;padding-right:4px}.brand-caption{display:block;font-size:8px;letter-spacing:2.3px;color:#9b96a7;font-weight:500;margin-top:6px}.workspace-name{display:flex;align-items:center;gap:10px;margin:37px 5px 32px;padding:12px 8px;background:#faf9fc;border:1px solid #f0eef4;border-radius:10px;font-size:13px;font-weight:600}.workspace-name small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.workspace-icon{background:#ece8f6;color:#8f7eba;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-size:13px}.workspace-dot{width:5px;height:5px;background:#a99fc0;border-radius:50%;margin-left:auto}.nav-caption{font-size:8px;letter-spacing:1.3px;color:#aaa4b3;padding:0 12px;margin-bottom:13px}.navigation{display:grid;gap:6px}.nav-button{border:0;background:transparent;border-radius:8px;display:flex;align-items:center;gap:11px;width:100%;padding:12px 11px;color:#85808f;text-align:left;font-size:13px}.nav-button svg{width:18px;height:18px}.nav-button:hover{background:#f8f6fc}.nav-button.active{background:var(--purple-pale);color:var(--purple);font-weight:550}.nav-count{margin-left:auto;font-size:10px;background:#e3dcf6;padding:1px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto;padding-top:50px}.worker-health{display:flex;gap:9px;align-items:flex-start;padding:15px 12px;border-bottom:1px solid var(--line);margin-bottom:18px}.health-dot{width:6px;height:6px;background:#c3bbd5;border-radius:50%;margin-top:6px;flex-shrink:0}.worker-health.healthy .health-dot{background:#75ad98;box-shadow:0 0 0 3px #f0f8f4}.worker-health.unhealthy .health-dot{background:var(--red)}.worker-health strong{font-weight:500;font-size:11px}.worker-health small{display:block;color:#a09aa9;font-size:10px;margin-top:3px}.logout-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;width:100%;text-align:left;padding:4px 10px;color:#666171;font-size:12px}.logout-button small{display:block;font-size:10px;color:#aaa5b1}.logout-button>span:last-child{margin-left:auto;font-size:19px}.operator-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e9e5df;color:#887b6e;font-size:11px}.main-content{margin-left:224px;width:calc(100% - 224px);padding:32px 34px 16px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.breadcrumb{font-size:11px;color:#9c96a8;margin-bottom:14px}.breadcrumb span{color:#c4bfcc;margin:0 11px}.page-header h1{font-size:30px;letter-spacing:-1px;line-height:1.2;font-weight:600}.title-dot{color:var(--purple)}.page-header p{font-size:12px;color:#9a94a3;margin-top:9px}.sync-indicator{display:flex;align-items:center;gap:7px;font-size:10px;color:#9c95a7;align-self:flex-end;padding-bottom:2px;white-space:nowrap}.sync-indicator>span:first-child{width:5px;height:5px;background:#c1b5db;border-radius:50%}.sync-indicator .ok{background:#82b19e!important}.sync-indicator .error{background:var(--red)!important}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.metric{background:#fff;border:1px solid #eae8ef;border-radius:11px;padding:17px 20px;text-align:left;box-shadow:0 3px 6px #2c204502;transition:border-color .15s,transform .15s}.metric:hover{border-color:#c4b7e9;transform:translateY(-2px)}.metric-label{display:flex;align-items:center;gap:8px;color:#867f92;font-size:11px}.metric-dot{width:6px;height:6px;border-radius:2px;display:inline-block}.violet{background:#a798df}.amber{background:#d2b685}.rose{background:#d993a0}.slate{background:#a0a2b2}.metric strong{display:block;font-size:29px;font-weight:550;line-height:1.15;letter-spacing:-1px;margin:13px 0 12px}.metric-hint{color:#b0aab9;font-size:10px;display:flex;justify-content:space-between;gap:5px}.metric-hint>span{color:#b6a9d5;font-size:14px}
.inbox{display:grid;grid-template-columns:290px minmax(300px,1fr) 245px;background:#fff;border:1px solid #e8e5ef;border-radius:13px;min-height:560px;height:calc(100vh - 345px);max-height:900px;overflow:hidden;box-shadow:0 4px 20px #30244003}.conversation-pane{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 17px 12px 20px}.list-heading h2{font-size:14px;font-weight:600}.list-heading h2 span{font-size:10px;margin-left:6px;color:#a9a1b7;background:#f7f5fa;padding:2px 5px;border-radius:5px;font-weight:400}.search-box{display:flex;align-items:center;background:#faf9fc;border:1px solid #f1eff5;border-radius:7px;margin:0 17px;padding:8px 10px;gap:7px;color:#b5aec1}.search-box svg{width:15px;height:15px}.search-box input{border:0;outline:0;background:transparent;width:100%;min-width:0;font-size:11px;color:var(--ink)}.search-box input::placeholder{color:#b0a8bd}.search-box:focus-within{border-color:#c6b8ed;outline:2px solid #f1ecfb}.filter-row{display:flex;gap:6px;padding:15px 17px;border-bottom:1px solid #f3f1f6;align-items:center}.filter-button{border:0;background:none;border-radius:5px;padding:5px 8px;color:#a098ae;font-size:10px;white-space:nowrap}.filter-button.active{background:#f1edf9;color:#8b78bb;font-weight:550}.more-filter{margin-left:auto}.more-filter select{border:0;background:#fff;color:#a098ae;font-size:10px;max-width:100px;padding:4px 0}.conversation-list{overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#e8e2f1 transparent}.conversation-item{width:100%;display:flex;gap:10px;text-align:left;background:#fff;border:0;border-bottom:1px solid #f5f3f8;padding:18px 17px;position:relative}.conversation-item:hover{background:#fbfafe}.conversation-item.selected{background:#f5f2fb}.conversation-item.selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#9f88d4}.avatar{width:35px;height:35px;border-radius:50%;background:#eee8f5;color:#9b80b5;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px;font-weight:550}.avatar.tone-1{background:#f1e8df;color:#b6977c}.avatar.tone-2{background:#e3efe9;color:#7eaa95}.avatar.tone-3{background:#e4eaf1;color:#839ab4}.avatar.tone-4{background:#f2e4e8;color:#bd8b99}.conversation-text{flex:1;min-width:0}.conversation-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.conversation-name{font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-time{font-size:9px;color:#b1a8c0;white-space:nowrap}.conversation-preview{display:block;color:#a198b0;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;line-height:1.6}.conversation-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:4px}.account-chip{color:#aaa0b7;font-size:9px;display:inline-flex;gap:4px;align-items:center}.account-chip:before{content:"";width:4px;height:4px;border-radius:50%;background:#cbbddd}.unread-badge{min-width:16px;height:16px;border-radius:5px;background:#a994cc;color:#fff;display:grid;place-items:center;font-size:9px;padding:0 3px}.mini-status{font-size:9px;color:#ab99c3}.list-empty{color:#a99fb9;font-size:12px;text-align:center;padding:50px 20px;line-height:1.8}.list-footer{padding:12px 15px;border-top:1px solid var(--line);font-size:8px;color:#b2aabe;display:flex;align-items:center;gap:5px}.tiny-dot{width:4px;height:4px;background:#b7cdbd;border-radius:50%}
.chat-pane{min-width:0;position:relative;display:flex;flex-direction:column;background:#fff}.chat-content{display:flex;flex-direction:column;height:100%;min-height:0}.chat-header{height:76px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:16px 23px;border-bottom:1px solid var(--line)}.chat-heading{min-width:0}.chat-heading h2{font-weight:550;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-heading>span{display:block;color:#aaa0b6;font-size:10px;margin-top:3px}.status-pill{font-size:9px;background:#f5f0fc;color:#9b84be;padding:4px 7px;border-radius:5px;white-space:nowrap;margin-left:auto}.status-pill.good{background:#eef6f2;color:#75a38c}.status-pill.bad{background:#fcf0f2;color:#b87181}.message-list{flex:1;overflow:auto;padding:21px 25px;scrollbar-width:thin;scrollbar-color:#e8e2f1 transparent;background:linear-gradient(180deg,#fff,#fdfcfe)}.message-row{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px;animation:appear .2s ease-out}.message-row.outbound{align-items:flex-end}.message-bubble{max-width:88%;padding:12px 15px;border-radius:3px 12px 12px 12px;background:#f3f1f7;color:#70647f;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.outbound .message-bubble{background:#eee9f8;color:#75618e;border-radius:12px 3px 12px 12px}.message-meta{display:flex;gap:7px;font-size:9px;margin-top:5px;color:#b0a4bc;flex-wrap:wrap}.message-meta .failed{color:var(--red)}.day-divider{display:flex;justify-content:center;font-size:9px;color:#b7afc1;margin:3px 0 23px}.day-divider span{padding:4px 10px;background:#f7f5fa;border-radius:5px}.message-placeholder{color:#a397b2;font-size:12px;text-align:center;padding:50px 10px}.composer{flex-shrink:0;margin:0 19px 18px;border:1px solid #e8e1ef;border-radius:10px;background:#fff;box-shadow:0 2px 10px #33204003;overflow:hidden}.composer:focus-within{border-color:#bcadd8;box-shadow:0 0 0 3px #f7f3fc}.composer textarea{display:block;width:100%;border:0;resize:none;outline:none!important;padding:14px 15px 6px;min-height:84px;max-height:200px;font-size:13px;line-height:1.6;color:#70647f;background:none;outline-offset:0}.composer textarea::placeholder{color:#b5aac2}.composer-bottom{display:flex;justify-content:space-between;align-items:center;padding:8px 11px 11px;gap:10px}.composer-bottom>span{font-size:9px;color:#b4aabe;padding-left:4px}.composer .button{font-size:11px;min-height:34px;padding:7px 11px;gap:9px;border-radius:7px;background:#a28bcd;box-shadow:none}.composer .button:hover:not(:disabled){background:#9176c0}.composer .button svg{width:14px;height:14px}.composer-warning{font-size:11px;margin:0 20px 10px;color:#b17580;background:#fcf5f6;padding:9px 11px;border-radius:6px}.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 45%,#faf7ff 0,white 65%);padding:40px 20px}.empty-symbol{width:63px;height:63px;border-radius:20px;background:#f0eaf8;color:#ac92cf;display:grid;place-items:center;font-size:33px;margin-bottom:26px;transform:rotate(-8deg)}.chat-empty .eyebrow{font-size:8px;letter-spacing:2px;color:#b3a4c5}.chat-empty h2{font-size:23px;font-weight:500;letter-spacing:-.5px;color:#776889;margin:13px 0}.chat-empty p{font-size:12px;color:#b1a6be;line-height:1.9}
.person-pane{border-left:1px solid var(--line);padding:23px 21px;overflow:auto;background:#fefefe;scrollbar-width:thin}.person-placeholder{padding-top:18px}.person-placeholder>span{font-size:9px;letter-spacing:1.5px;color:#b5acc0}.person-placeholder p{font-size:12px;color:#c0b7c9;margin-top:18px;line-height:1.9}.person-topline{display:flex;align-items:center;justify-content:space-between}.person-topline .eyebrow{font-size:8px;color:#b4a9c0}.person-avatar{width:54px;height:54px;font-size:19px;margin:24px 0 13px}.person-pane h2{font-size:16px;font-weight:550;color:#746482;line-height:1.35;overflow-wrap:anywhere}.person-username{font-size:11px;color:#b39cc9;display:block;margin-top:5px;overflow-wrap:anywhere}.person-fields{display:grid;gap:19px;margin-top:29px}.person-field dt{font-size:9px;color:#b7abc1;margin:0 0 5px}.person-field dd{font-size:11px;color:#92829f;margin:0;overflow-wrap:anywhere;line-height:1.6}.person-field{margin:0}.person-section{margin-top:25px;padding-top:22px;border-top:1px solid #f1edf5}.person-section h3{font-size:10px;font-weight:500;color:#a697b3;margin-bottom:12px}.person-section .button{font-size:10px;min-height:35px;border-color:#e9e1f1;color:#aa93bf;padding:8px 5px}.person-section .small{font-size:9px;color:#bdafc8;margin-top:9px}.person-section .text-button{font-size:10px;color:#c998a5}.demo-controls{margin-top:22px;padding:12px 10px;border:1px dashed #d8c9ee;background:#faf7ff;border-radius:8px;color:#9982b6;font-size:10px}.demo-controls summary{cursor:pointer;font-weight:550}.demo-controls textarea{margin:12px 0 8px;width:100%;border:1px solid #e8dff1;resize:vertical;border-radius:5px;padding:8px;font-size:11px}.demo-controls .button{font-size:10px;padding:8px}.mobile-back,.person-toggle{display:none}.page-footer{display:flex;justify-content:space-between;font-size:9px;color:#b8b1c4;margin-top:16px;gap:10px}.demo-banner{display:flex;align-items:center;gap:10px;color:#9380b4;font-size:11px;padding:9px 13px;border:1px solid #e9dff7;background:#f7f2ff;border-radius:7px;margin-bottom:22px}.demo-pill{font-size:8px;font-weight:650;letter-spacing:1px;background:#e7daf6;padding:3px 5px;border-radius:3px}.notice{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #e7e0f1;background:#f6f2fd;color:#8a74a4;border-radius:8px;padding:10px 14px;margin:0 0 16px;font-size:12px}.notice.error{background:#fff5f6;border-color:#f0dfe3;color:#ae7180}.notice button{border:0;background:transparent;color:inherit;font-size:20px;line-height:1;padding:3px 6px}
.queue-view{background:#fff;border:1px solid #e8e5ef;border-radius:13px;min-height:480px;padding:26px}.queue-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--line)}.queue-header h2{font-size:18px;font-weight:550;letter-spacing:-.3px}.queue-header p{font-size:12px;color:#a49aae;margin-top:7px}.queue-header .button{font-size:12px}.queue-toolbar{display:flex;align-items:center;gap:10px;padding:21px 0;font-size:12px;color:#8d7f9b}.queue-toolbar select{padding:7px 10px;border:1px solid #e8e2ef;border-radius:7px;background:#fff;color:#8d7f9b;font-size:12px}.queue-toolbar>span{margin-left:auto;font-size:11px}.queue-list{display:grid;gap:11px}.queue-item{border:1px solid #eee8f3;border-radius:9px;display:grid;grid-template-columns:minmax(130px,1fr) minmax(220px,2fr) 130px;gap:20px;padding:17px 18px;align-items:start}.queue-person{font-size:13px;font-weight:550;color:#81708e}.queue-person small{display:block;font-size:10px;font-weight:400;color:#b0a0be;margin-top:5px}.queue-message{font-size:12px;color:#9785a5;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.queue-reason{font-size:10px;margin-top:8px;color:#b27788}.queue-status{text-align:right}.queue-status small{display:block;font-size:9px;color:#b4a5c1;margin-top:7px}.queue-status .status-pill{display:inline-block}.confirmation-dialog{border:1px solid #e9e2f1;border-radius:15px;padding:30px;max-width:430px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 30px 90px #30214625}.confirmation-dialog::backdrop{background:#2e233a45;backdrop-filter:blur(3px)}.confirmation-dialog h2{font-size:23px;font-weight:550;margin:15px 0}.confirmation-dialog p{font-size:13px;line-height:1.8;margin:10px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px;background:radial-gradient(ellipse at 15% 70%,#f1eafa,transparent 55%),radial-gradient(ellipse at 90% 20%,#eae8f5,transparent 50%),#f8f7fb;position:relative;overflow:hidden}.login-card{width:440px;padding:46px 45px;background:#ffffffd9;border:1px solid #fff;border-radius:22px;box-shadow:0 20px 90px #6552790d;position:relative;backdrop-filter:blur(10px)}.login-card .brand{padding:0;margin-bottom:43px}.login-card>.eyebrow{font-size:9px;letter-spacing:1.9px;color:#a18ab8}.login-card h1{font-size:34px;line-height:1.28;font-weight:500;letter-spacing:-1.1px;margin:15px 0;color:#665671}.login-description{color:#a190ad;font-size:13px;line-height:1.85;margin-bottom:30px}.login-card label{display:block;font-size:11px;color:#a18dab;margin-bottom:8px}.login-card input{display:block;width:100%;border:1px solid #e5dceb;border-radius:8px;padding:12px;background:#fff;color:var(--ink);font-size:13px}.login-card input::placeholder{color:#c0b4c9}.login-card .button{width:100%;margin-top:13px;justify-content:space-between;background:#a38acc;font-size:12px;min-height:44px}.login-note{font-size:10px;text-align:center;color:#c0b5c9;margin-top:25px}.form-error{color:#b77788;font-size:11px;line-height:1.7;margin-top:10px}.login-decoration{position:absolute;width:900px;height:900px;border:1px solid #cbbddd28;border-radius:50%;transform:translate(32%,8%)}.login-decoration span{display:block;position:absolute;border:1px solid #cbbddd28;border-radius:50%;inset:50px}.login-decoration span:nth-child(2){inset:120px}.login-decoration span:nth-child(3){inset:190px}
@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}@media(min-width:1550px){.main-content{padding:40px 48px 20px}.inbox{grid-template-columns:325px minmax(360px,1fr) 270px}.message-bubble{font-size:14px}.conversation-name{font-size:13px}.conversation-preview{font-size:12px}}
@media(max-width:1270px){.sidebar{width:192px;flex-basis:192px;padding-inline:12px}.main-content{margin-left:192px;width:calc(100% - 192px);padding:26px 23px 16px}.inbox{grid-template-columns:265px minmax(280px,1fr)}.person-pane{display:none;position:absolute;right:24px;top:280px;bottom:38px;width:255px;background:#fff;z-index:15;border:1px solid var(--line);border-radius:12px;box-shadow:-10px 8px 40px #3c284018}.inbox.show-person .person-pane{display:block}.person-toggle{display:inline-flex}.metric{padding:15px}.metric-hint{font-size:9px}.chat-header{padding:16px}.metrics{gap:10px}.nav-button{font-size:12px}.workspace-name{margin-top:30px}.person-topline .icon-button{width:25px;height:25px}.person-pane .person-avatar{margin-top:12px}}
@media(max-width:950px){.sidebar{width:74px;flex-basis:74px;padding:25px 10px}.sidebar .brand{padding:0;justify-content:center}.sidebar .brand>span:last-child,.workspace-name,.nav-caption,.nav-button>span,.worker-health,.logout-button>span:not(:first-child){display:none}.navigation{margin-top:40px}.nav-button{justify-content:center;padding:14px}.nav-button svg{width:20px;height:20px}.logout-button{padding:7px;justify-content:center}.main-content{margin-left:74px;width:calc(100% - 74px);padding:25px 20px 16px}.inbox{grid-template-columns:240px minmax(260px,1fr);min-height:550px}.page-header h1{font-size:27px}.metric-label{font-size:10px}.metric-hint{display:none}.metric strong{margin-bottom:0;font-size:27px}.metric{padding:14px}.metrics{margin-bottom:20px}.page-header{margin-bottom:23px}.conversation-item{padding:16px 13px;gap:8px}.filter-row{padding-inline:12px}.search-box{margin-inline:12px}.message-list{padding:20px 17px}.composer{margin:0 13px 15px}.composer-bottom>span{font-size:8px}.message-bubble{max-width:94%}.person-pane{top:245px;right:21px}.queue-item{grid-template-columns:minmax(100px,1fr) minmax(150px,2fr);gap:10px}.queue-status{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;text-align:left}.queue-status .status-pill{margin-left:0}.queue-status small{margin-top:0}.queue-header h2{font-size:16px}}
@media(max-width:700px){.application{display:block}.sidebar{position:static;width:100%;height:64px;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;display:flex;flex-direction:row;align-items:center;gap:20px}.sidebar .brand{justify-content:flex-start}.brand-mark{width:31px;height:31px;font-size:31px;border-radius:9px}.sidebar .brand>span:last-child{display:block;font-size:18px}.brand-caption{font-size:6px;margin-top:4px}.navigation{margin:0 0 0 auto;display:flex;gap:5px}.nav-button{padding:10px}.sidebar-bottom{margin:0;padding:0}.logout-button{padding:0}.operator-avatar{width:29px;height:29px}.main-content{margin:0;width:100%;padding:20px 15px 15px}.page-header{margin-bottom:20px;gap:12px}.page-header h1{font-size:26px}.breadcrumb{font-size:9px;margin-bottom:11px}.page-header p{font-size:10px}.sync-indicator{font-size:8px;max-width:100px;white-space:normal}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:18px}.metric{padding:12px 9px;border-radius:9px}.metric-label{font-size:9px;line-height:1.5;gap:5px;align-items:flex-start;min-height:27px}.metric-dot{flex-shrink:0;margin-top:4px;width:4px;height:4px}.metric strong{font-size:23px;margin-top:5px}.inbox{grid-template-columns:1fr;min-height:450px;height:calc(100dvh - 300px);border-radius:11px;position:relative}.conversation-pane{border:0}.chat-pane{display:none}.inbox.has-selection .conversation-pane{display:none}.inbox.has-selection .chat-pane{display:flex}.list-heading{padding:16px 18px 12px}.search-box{margin-inline:17px}.search-box input{font-size:12px}.filter-row{padding-inline:17px}.filter-button,.more-filter select{font-size:11px}.conversation-item{padding:16px 18px}.conversation-name{font-size:13px}.conversation-preview{font-size:12px}.conversation-time{font-size:10px}.conversation-item .avatar{width:39px;height:39px;font-size:13px}.conversation-bottom{margin-top:5px}.account-chip{font-size:10px}.list-footer{font-size:9px;padding:12px 18px}.mobile-back{display:inline-flex;width:23px;color:#a58cc4}.chat-header{height:70px;padding:13px 12px;gap:8px}.chat-heading h2{font-size:13px}.chat-heading>span{font-size:9px}.chat-header>.avatar{width:31px;height:31px;font-size:11px}.status-pill{font-size:8px;padding:3px 5px}.person-pane{inset:0 0 0 auto;top:0;right:0;bottom:0;width:min(290px,90%);border-radius:0;height:100%;padding:21px;box-shadow:-10px 0 60px #3c28401f}.person-pane h2{font-size:18px}.person-field dd{font-size:12px}.person-field dt{font-size:10px}.person-section .button,.person-section .text-button{font-size:11px}.message-list{padding:17px}.message-bubble{font-size:14px;padding:12px 13px;max-width:92%}.composer textarea{font-size:16px;min-height:75px;padding-top:12px}.composer{margin-bottom:12px}.composer .button{font-size:12px}.composer-bottom>span{font-size:9px}.page-footer{font-size:8px;margin-top:12px}.demo-banner{font-size:10px;margin-bottom:16px;padding:8px 10px}.queue-view{padding:17px;min-height:450px}.queue-header{align-items:flex-start;gap:12px;padding-bottom:17px}.queue-header h2{font-size:15px}.queue-header p{font-size:10px}.queue-header .button{font-size:10px;padding:8px;min-height:34px}.queue-toolbar{font-size:11px;gap:7px}.queue-toolbar select{font-size:11px;max-width:160px}.queue-toolbar>span{font-size:9px}.queue-item{grid-template-columns:1fr;gap:10px;padding:15px}.queue-person{font-size:12px}.queue-message{font-size:12px}.queue-status{grid-column:auto}.login-screen{padding:18px}.login-card{padding:36px 28px;border-radius:18px}.login-card h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readable working surfaces; compact type is reserved for metadata. */
.nav-button{font-size:14px}.workspace-name{font-size:14px}.workspace-name small{font-size:11px}.nav-caption{font-size:9px}.metric-label{font-size:12px}.metric-hint{font-size:11px}.page-header p{font-size:14px}.breadcrumb{font-size:12px}.sync-indicator{font-size:11px}.list-heading h2{font-size:16px}.search-box input{font-size:13px}.filter-button,.more-filter select{font-size:12px}.conversation-name{font-size:14px}.conversation-preview{font-size:13px}.conversation-time{font-size:11px}.account-chip,.mini-status{font-size:11px}.chat-heading h2{font-size:16px}.chat-heading>span{font-size:12px}.status-pill{font-size:11px}.message-bubble{font-size:16px}.message-meta,.day-divider{font-size:11px}.composer textarea{font-size:16px}.composer-bottom>span{font-size:11px}.composer .button{font-size:13px}.person-field dt{font-size:11px}.person-field dd{font-size:14px}.person-username{font-size:13px}.person-section h3{font-size:12px}.person-section .button,.person-section .text-button{font-size:12px}.person-section .small{font-size:11px}.list-footer{font-size:10px}.person-placeholder p,.chat-empty p{font-size:14px}.queue-message,.queue-person{font-size:14px}.queue-reason{font-size:12px}.queue-status small,.queue-person small{font-size:11px}.queue-header p{font-size:14px}.login-description{font-size:14px}.login-card label,.login-card .button{font-size:13px}.login-card input{font-size:16px}.demo-banner{font-size:12px}.person-pane .eyebrow,.chat-empty .eyebrow{font-size:10px}.demo-controls{font-size:12px}.demo-controls textarea{font-size:14px}.demo-controls .button{font-size:12px}.worker-health strong{font-size:12px}.worker-health small{font-size:11px}
.schedule-control{padding:0 15px 8px;color:#a18cad;font-size:12px}.schedule-control summary{cursor:pointer}.schedule-control label{display:block;margin-top:10px;font-size:11px}.schedule-control input{font-size:13px;margin:6px 0 0;padding:6px;border:1px solid #e9e1f0;border-radius:6px;width:100%;color:#8e799b;background:#fff}.schedule-hint{font-size:10px;margin-top:5px;color:#b3a3bf}.queue-cancel{margin-top:10px;border:1px solid #eadfe9;border-radius:6px;background:white;color:#b18b9c;padding:5px 8px;font-size:11px}.queue-cancel:hover{background:#fcf7fa}
@media(max-width:950px){.filter-row{gap:2px;padding-inline:8px}.filter-button{padding-inline:6px;font-size:11px}.more-filter select{font-size:11px;max-width:82px}.composer-bottom>span{font-size:10px}.chat-header{gap:8px}.status-pill{font-size:10px}}
@media(max-width:700px){.metric-label{font-size:10px;min-height:30px}.page-header p{font-size:12px}.breadcrumb{font-size:10px}.sync-indicator{font-size:10px}.conversation-name{font-size:15px}.conversation-preview{font-size:14px}.conversation-time{font-size:11px}.filter-row{gap:7px;padding-inline:17px}.filter-button,.more-filter select{font-size:12px}.search-box input{font-size:14px}.chat-heading h2{font-size:14px}.chat-heading>span{font-size:11px}.chat-header .status-pill{display:none}.composer-bottom>span{font-size:10px}.queue-header p{font-size:12px}.queue-message{font-size:14px}.demo-banner{font-size:11px}.list-footer{font-size:11px}.page-footer{font-size:9px}}

/* Text contrast stays comfortable on the light working surfaces. */
:root{--muted:#82798e}.conversation-preview{color:#86778f}.conversation-name{color:#5d5069}.conversation-time,.account-chip,.mini-status{color:#84728f}.message-bubble{color:#61506e}.outbound .message-bubble{color:#665175}.message-meta,.day-divider{color:#8c7899}.chat-heading>span{color:#8c7b99}.person-field dd{color:#7d668d}.person-field dt,.person-section h3{color:#95809f}.person-section .button{color:#9170a8}.person-section .small{color:#9e8baa}.person-username{color:#9672b3}.queue-person{color:#725b82}.queue-message{color:#846c96}.page-header p{color:#95839f}.metric-label{color:#84708e}.metric-hint{color:#a290ad}.search-box input::placeholder{color:#9f8caf}.composer textarea::placeholder{color:#a68db6}.login-description{color:#9176a1}

.page-header p:empty{display:none}

/* Constrain the grid track before allowing the history to scroll. */
.inbox{grid-template-rows:minmax(0,1fr)}
.chat-pane,.chat-content{min-height:0;overflow:hidden}
.message-list{min-height:0;flex:1 1 0;overscroll-behavior:contain}
.chat-header,.composer,.composer-warning{flex-shrink:0}
/* Primary copy and metadata meet their different visual roles without fading away. */
:root{--ink:#292433;--muted:#706677}
.breadcrumb,.sync-indicator,.page-header p,.metric-label,.metric-hint{color:#76697f}
.conversation-name,.chat-heading h2,.person-pane h2{color:#44364f}
.conversation-preview,.conversation-time,.account-chip,.mini-status,.chat-heading>span{color:#786684}
.message-bubble{color:#4b3c56;background:#f1edf6}
.outbound .message-bubble{color:#4f3b60;background:#eae2f5}
.message-meta,.day-divider{color:#796288}
.person-field dd,.person-username,.queue-message,.queue-person{color:#665175}
.person-field dt,.person-section h3,.person-section .small,.person-placeholder p{color:#826e8e}
.person-section .button{color:#78528e;border-color:#dcd0e5}
.person-section .text-button{color:#a15d70}
.composer textarea{color:#493853}
.composer textarea::placeholder,.search-box input::placeholder{color:#817087}
.composer-bottom>span,.schedule-control,.schedule-hint,.queue-status small,.queue-person small{color:#806b8f}
.composer .button,.login-card .button{background:#8064b2;color:#fff}
.composer .button:hover:not(:disabled),.login-card .button:hover:not(:disabled){background:#6f51a4}
.status-pill{color:#76528f;background:#efe7f7}
.status-pill.good{color:#47795d;background:#eaf4ee}
.status-pill.bad{color:#a34a61;background:#f9eaf0}
.filter-button,.more-filter select{color:#817088}
.filter-button.active{color:#71508e;background:#eee6f6}
.demo-banner{color:#76538e;background:#f4edfc;border-color:#e1d2ef}
.demo-pill{color:#76518e;background:#e5d5f4}
.list-footer,.page-footer,.worker-health small,.logout-button small{color:#86738f}
.nav-caption{color:#877490}
.list-empty,.message-placeholder,.chat-empty p{color:#82708e}
.chat-empty h2{color:#655071}
.queue-reason{color:#a55b72}
@media(max-width:700px){
  /* A selected thread uses the mobile viewport; navigation and demo status stay visible. */
  .application:has(.inbox.has-selection:not([hidden])){height:100dvh;min-height:0;overflow:hidden}
  .application:has(.inbox.has-selection:not([hidden])) .sidebar{flex-shrink:0}
  .application:has(.inbox.has-selection:not([hidden])) .main-content{height:calc(100dvh - 64px);min-height:0;display:flex;flex-direction:column;padding:12px}
  .application:has(.inbox.has-selection:not([hidden])) .page-header,
  .application:has(.inbox.has-selection:not([hidden])) .metrics,
  .application:has(.inbox.has-selection:not([hidden])) .page-footer{display:none}
  .application:has(.inbox.has-selection:not([hidden])) .demo-banner{flex-shrink:0;margin-bottom:10px}
  .application:has(.inbox.has-selection:not([hidden])) .notice{flex-shrink:0;margin-bottom:10px;max-height:75px;overflow:auto}
  .application:has(.inbox.has-selection:not([hidden])) .inbox{flex:1 1 0;min-height:0;height:auto}
  .chat-header{min-height:66px}
  .message-meta{font-size:12px}
  .schedule-control input{font-size:14px;min-height:35px}
}
.login-code-note{font-size:13px;color:#78678a;line-height:1.65;margin:17px 0}.login-code-actions{display:flex;justify-content:space-between;gap:12px;margin:13px 0 4px}.login-code-actions .text-button{font-size:12px;color:#745793}.login-code-actions .text-button:disabled{color:#95899e;cursor:default}.login-card input[readonly]{background:#f6f3f9;color:#75667f}#login-code{font-size:24px;letter-spacing:.3em;text-align:center}#login-code::placeholder{color:#b3a4c0}
