:root{color-scheme:light;--ink:#26272e;--muted:#7c7d89;--line:#e7e7ec;--soft:#f6f6f8;--blue:#0759e6;--lavender:#eee9fb}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #dcdde5;border-radius:6px;background:#fff;padding:10px 11px;color:var(--ink)}textarea{resize:vertical}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:22px;letter-spacing:-.5px}h2{font-size:17px}h3{font-size:13px}small,.muted{color:var(--muted)}small{font-size:12px}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.button,.primary{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid #dedee5;border-radius:6px;padding:8px 12px;font-weight:600;font-size:13px;white-space:nowrap;background:#fff}.button:hover{background:#f5f5f8}.primary{background:#292831;border-color:#292831;color:white}.primary:hover{background:#454251}.text-button{display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-size:12px;padding:3px 0}.text-button svg{width:14px;height:14px}.icon-button{width:33px;height:33px;display:grid;place-items:center;border:1px solid #e3e3e9;border-radius:6px;background:white;flex:none}.icon-button:hover{background:var(--soft)}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#ece8f8;color:#776092;font-weight:650;font-size:12px;flex:none}.brand{display:flex;align-items:center;font-size:24px;font-weight:750;letter-spacing:-1px;color:#25242b}.brand-dot{color:#8c74c9}.app-shell{height:100dvh;display:grid;grid-template-columns:52px 192px minmax(0,1fr);overflow:hidden}.rail{background:#f0f0f2;border-right:1px solid #e2e2e6;padding:16px 6px;display:flex;flex-direction:column;gap:12px;align-items:center}.rail-brand{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#28272e;color:white;font-weight:800;font-size:25px;margin-bottom:13px}.rail button{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;color:#73737d}.rail button:hover,.rail button.rail-active{background:#dedee3;color:#272730}.rail-bottom{margin-top:auto}.rail-bottom .avatar{width:29px;height:29px;font-size:10px}.sidebar{background:#f7f7f8;border-right:1px solid var(--line);padding:24px 12px 15px;display:flex;flex-direction:column;overflow:auto;min-height:0}.sidebar .brand{font-size:22px;margin:0 6px 24px}.workspace{display:flex;gap:9px;align-items:center;padding:11px 8px;background:white;border:1px solid #e2e2e7;border-radius:7px;margin-bottom:26px}.workspace strong{font-size:12px;display:block}.workspace small{font-size:10px;display:block;margin-top:2px}.workspace-mark{display:grid;place-items:center;background:#efedf5;width:29px;height:29px;border-radius:5px;color:#6a5b84;font-weight:700}.nav-label{font-size:12px;font-weight:650;margin:0 8px 10px}.nav-label.second{margin-top:27px}.nav-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 8px;text-align:left;color:#74747f;font-size:12px;border-radius:6px;white-space:nowrap;margin:2px 0}.nav-item svg{width:16px;height:16px}.nav-item.active{background:#e9e8ee;color:#282632;font-weight:650}.nav-item:hover{background:#ececf0}.nav-item b{margin-left:auto;font-weight:500;color:#8d8b97;font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:24px}.account{display:flex;align-items:center;gap:9px;padding-top:16px;border-top:1px solid #dedee4;min-width:0}.account>div:last-child{min-width:0}.account strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis}.account small{display:block;font-size:11px}.logout{display:flex;gap:8px;align-items:center;font-size:11px;color:#898793;margin-top:14px}.logout svg{width:15px;height:15px}.main{min-width:0;min-height:0;display:flex;flex-direction:column}.topbar{height:54px;flex:none;border-bottom:1px solid var(--line);padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:12px;color:#95929f}.breadcrumb span{margin:0 10px;color:#c2bec9}.breadcrumb strong{color:#4d485b;font-weight:550}.top-tools{display:flex;align-items:center;gap:16px}.connection{font-size:11px;color:#8c8895;white-space:nowrap}.connection:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#d49843;margin-right:7px}.connection.connected:before{background:#3b9e73}.version{font-size:10px;color:#92909b;border:1px solid #e7e5ed;border-radius:4px;padding:3px 6px}.workspace-content{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.conversation-list{width:290px;flex:none;background:#fbfbfc;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.list-head{padding:23px 17px 0}.title-row{display:flex;align-items:center;justify-content:space-between}.title-row h1{font-size:19px;letter-spacing:-.5px}.total{font-size:12px;color:#96929f;background:#ededf1;border-radius:5px;padding:2px 6px}.search{display:flex;align-items:center;gap:7px;border:1px solid #dfdfe6;border-radius:6px;background:white;padding:7px 9px;margin:20px 0 11px}.search svg{width:16px;height:16px;color:#95939f}.search input{border:0;background:none;padding:1px;font-size:12px;min-width:0}.search input:focus-visible{outline-offset:6px}.list-head select{padding:7px 8px;font-size:12px;border-color:#e7e5ed;background:white}.list-tabs{display:flex;gap:19px;margin-top:18px;border-bottom:1px solid var(--line)}.list-tabs button{padding:0 0 12px;font-size:12px;color:#91909c;border-bottom:2px solid transparent}.list-tabs button.active{color:#3a3549;border-color:#655981;font-weight:650}.list-summary{display:flex;justify-content:space-between;font-size:10px;color:#93909d;padding:15px 17px 10px;gap:8px}.rows{overflow:auto;flex:1;min-height:0}.conversation{width:100%;display:flex;gap:10px;text-align:left;padding:17px 13px;border-left:3px solid transparent;border-top:1px solid #f0eff4}.conversation:hover{background:#f3f1f8}.conversation.selected{background:#eeecf4;border-left-color:#9480d2}.conversation .avatar{width:33px;height:33px;background:#e9e6f2;font-size:11px}.conversation-text{flex:1;min-width:0}.conversation-title{display:flex;align-items:center;justify-content:space-between;gap:7px}.conversation-title strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.conversation-title time{font-size:10px;color:#9b97a5;white-space:nowrap}.preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#87818f;font-size:12px;margin:7px 0 8px}.conversation-meta{display:flex;gap:7px;align-items:center;font-size:10px;color:#9b95a5}.site-badge{display:inline-block;font-size:10px;color:#7a7288;background:#f0edf5;padding:2px 6px;border-radius:4px}.unread{margin-left:auto;color:white;background:#6e5f97;min-width:18px;height:18px;border-radius:10px;display:grid;place-items:center;font-size:10px;padding:0 4px}.pagination{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:10px 13px;font-size:10px;color:#92909b}.pagination button{font-size:20px;width:30px;border:1px solid #e5e3eb;border-radius:5px;background:#fff}.chat-panel{flex:1;min-width:0;display:flex;flex-direction:column;background:#fff;min-height:0}.empty-state{margin:auto;text-align:center;padding:35px;max-width:400px;color:#9b94a5}.empty-state h2{color:#51495e;margin:18px 0 9px;font-size:18px}.empty-state p{font-size:13px;line-height:1.8}.empty-icon{display:inline-grid;place-items:center;width:65px;height:65px;border-radius:20px;background:#f2eef9;color:#a194b9}.empty-icon svg{width:28px;height:28px}.chat-head{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:77px;padding:17px 22px;border-bottom:1px solid var(--line)}.person{display:flex;gap:10px;align-items:center;min-width:0}.person>div:last-child{min-width:0}.person h2{font-size:15px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.person .muted{font-size:11px}.chat-actions{display:flex;gap:7px;align-items:center;flex:none}.chat-actions .button{font-size:12px}.chat-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 22px;border-bottom:1px solid #efedf3;font-size:11px;min-height:43px}.chat-meta .text-button{font-size:11px;margin-left:auto}.state{font-size:10px;color:#48816b;background:#eef7f1;padding:3px 6px;border-radius:4px}.state.closed{color:#8d8399;background:#f0edf5}.tag{display:inline-block;font-size:10px;padding:3px 7px;border-radius:4px;background:#f1edf8;color:#857198;margin:2px}.messages{flex:1;overflow:auto;min-height:0;padding:28px 28px 12px;overscroll-behavior:contain}.message{max-width:85%;width:fit-content;margin-bottom:22px}.bubble{background:#f5f5f7;border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#45414d}.message.agent{margin-left:auto}.message.agent .bubble{background:linear-gradient(115deg,#e3eafa,#f0e6fa);color:#41394c}.message small{display:block;color:#a09aa8;font-size:10px;margin-top:6px}.message.agent small{text-align:right}.composer{margin:12px 20px 7px;border:1px solid #dcd9e5;border-radius:8px;flex:none;overflow:hidden}.compose-tabs{display:flex;gap:18px;padding:11px 13px;border-bottom:1px solid #eeedf2;align-items:center;font-size:12px}.compose-tabs .active{font-weight:650;color:#453d50}.compose-tabs button{font-size:12px;color:#93869e;padding:0}.compose-tabs small{margin-left:auto;font-size:10px;color:#b0a8b7}.composer textarea{border:0;resize:none;min-height:75px;border-radius:0;font-size:14px;padding:14px;line-height:1.6;max-height:200px}.composer textarea:focus-visible{outline-offset:-3px}.composer textarea:disabled{background:#f8f7fa}.compose-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 12px}.compose-tools>span{font-size:10px;color:#a19aa9}.compose-tools .primary{font-size:12px;padding:8px 13px}.compose-tools svg{width:15px;height:15px}.chat-footer{text-align:center;font-size:9px;color:#b0a9b8;padding:0 8px 12px}.closed-banner{background:#f4f0f9;color:#82718f;font-size:12px;padding:12px 20px}.closed-banner[hidden]{display:none}.customer-panel{width:300px;flex:none;border-left:1px solid var(--line);background:#fff;overflow:auto;min-height:0;scrollbar-width:thin}.profile-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 17px;border-bottom:1px solid #eeedf1;min-height:62px}.profile-heading h2{font-size:13px}.profile-heading .icon-button{width:26px;height:26px;border:0}.customer-identity{text-align:center;padding:26px 17px 24px}.customer-identity .avatar{margin:0 auto 14px;width:62px;height:62px;background:#9779d5;color:white;font-size:23px;font-weight:500}.customer-identity h3{font-size:18px;overflow-wrap:anywhere;margin-bottom:7px;color:#292431}.customer-identity p{font-size:12px;color:#89808f;overflow-wrap:anywhere;margin-bottom:10px}.profile-tabs{display:flex;gap:25px;padding:0 18px;border-bottom:1px solid var(--line)}.profile-tabs button{padding:12px 0;font-size:12px;border-bottom:2px solid transparent;color:#97909f}.profile-tabs button.active{color:var(--blue);border-color:var(--blue);font-weight:600}.profile-section{padding:18px 17px;border-bottom:1px solid #edebf1}.profile-section h3{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:12px;font-weight:650}.profile-section h3 .text-button{font-size:11px}.profile-section dl{margin:0;display:grid;gap:12px}.profile-section dl>div{display:grid;grid-template-columns:.9fr 1.1fr;gap:12px;font-size:11.5px;line-height:1.6}.profile-section dt{color:#96909f}.profile-section dd{margin:0;min-width:0;text-align:right;overflow-wrap:anywhere;color:#62586e}.tag-list{display:flex;flex-wrap:wrap;gap:4px}.tag-list .muted{font-size:11px}.record-id{font-size:10px;color:#b0a8b9;overflow-wrap:anywhere;margin-top:20px}.profile-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;padding:30px;gap:16px;color:#b1a8bc}.profile-empty svg{width:30px;height:30px}.profile-empty p{font-size:12px;line-height:1.8}.note-form{padding:17px}.note-form p{font-size:11px;color:#968450;line-height:1.7;margin-bottom:12px;display:flex;gap:7px}.note-form p svg{width:15px;height:15px}.note-form textarea{font-size:12px;min-height:90px;background:#fffdf7;border-color:#e7e0ce}.note-form button{margin-top:10px;font-size:11px}.internal-note{margin:0 17px 12px;background:#fff9e9;border:1px solid #eee4c8;border-radius:7px;padding:12px}.internal-note p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.internal-note small{display:block;margin-top:10px;font-size:9px;color:#a19573}.list-empty{padding:40px 23px;text-align:center;color:#a09aa9}.list-empty svg{width:28px;height:28px;display:block;margin:0 auto 13px}.list-empty strong{display:block;font-size:13px;margin-bottom:7px;color:#7f748e}.list-empty p{font-size:12px;line-height:1.7}.empty-text{padding:24px;color:#a197ad;font-size:12px}.mobile-back{display:none}.settings-view{overflow:auto;display:block;background:#fafafc}.settings-page{padding:32px;max-width:1150px}.settings-title{margin-bottom:26px}.settings-title p{color:#8f849c;font-size:13px;margin-top:8px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card{background:#fff;border:1px solid #e3dfe9;border-radius:9px;padding:23px;margin-bottom:20px}.card h2{font-size:16px;margin-bottom:17px}.card label,dialog label,.login label{display:block;font-size:12px;font-weight:600;color:#706579;margin:16px 0 7px}.card label input,.card label textarea,dialog label input,.login label input{margin-top:7px}.card small{font-size:11px;display:block;line-height:1.7}.card>button{margin-top:18px}.card code{display:block;white-space:pre-wrap;word-break:break-all;font-size:11px;background:#f6f3f9;padding:12px;border-radius:5px;margin-top:10px}.card details{margin-top:18px;font-size:12px;color:#93839f}.site-card a{color:var(--blue);font-size:12px;text-decoration:none}.site-icon{width:35px;height:35px;border-radius:8px;background:#eeebf5;color:#796d8b;display:grid;place-items:center;margin-bottom:14px;font-weight:650}.team-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-top:1px solid #eeebf2}.team-row>div:nth-child(2){min-width:0;flex:1}.team-row strong{font-size:12px}.team-row small{font-size:10px;overflow-wrap:anywhere}.team-row .tag{font-size:9px}.card fieldset{border:1px solid #e9e4ef;border-radius:6px;margin:18px 0 0;padding:12px}.card legend{font-size:12px;color:#81738e}.card .checkbox{display:flex;gap:7px;align-items:center;margin:8px 0;font-size:12px}.checkbox input{width:15px;height:15px;margin:0!important;accent-color:var(--blue)}dialog{border:1px solid #e8e2ed;border-radius:12px;width:480px;max-width:calc(100vw - 28px);padding:25px;max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 25px 80px #30253a22}dialog::backdrop{background:#24202e55}dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}dialog header h2{font-size:18px}dialog header p{font-size:12px;color:#9a8ca4;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.login-wrap{min-height:100dvh;display:grid;place-items:center;background:#f7f6f9;padding:25px}.login{width:410px;max-width:100%;border:1px solid #e3dfe9;background:white;border-radius:13px;padding:36px}.login .brand{margin-bottom:36px}.brand-mark{background:#2d2736;color:white;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;margin-right:9px;font-size:27px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#a598b2;margin-bottom:8px}.login h1{font-size:24px}.login p{font-size:12px;line-height:1.8;margin:8px 0 25px}.login .primary{width:100%;margin:24px 0}.login .primary svg{transform:rotate(180deg);margin-left:auto}.login>small{font-size:10px;display:block;text-align:center;color:#b2a6bc}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#302a3a;color:white;border-radius:8px;padding:13px 20px;max-width:90vw;font-size:12px;z-index:100;box-shadow:0 6px 24px #21162c22}
@media(min-width:1451px){#profile-toggle,#profile-close{display:none}}
@media(max-width:1450px){.customer-panel{display:none}.show-profile .customer-panel{display:block;position:absolute;right:0;top:0;bottom:0;z-index:5;box-shadow:-10px 0 35px #28213618}.conversation-list{width:280px}}
@media(max-width:1050px){.app-shell{grid-template-columns:48px 165px minmax(0,1fr)}.sidebar{padding:22px 8px 13px}.nav-item{font-size:11px;gap:6px;padding:10px 6px}.sidebar .brand{font-size:21px}.conversation-list{width:250px}.chat-head{padding:15px}.chat-meta{padding:10px 15px;gap:7px}.chat-actions .button{font-size:11px;padding:8px}.messages{padding:20px}.compose-tabs small{display:none}.compose-tools>span{font-size:9px}.composer{margin:10px 13px 7px}.topbar{padding:0 17px}.version{display:none}}
@media(max-width:820px){.app-shell{grid-template-columns:48px minmax(0,1fr)}.sidebar{display:none}.conversation-list{width:255px}.settings-page{padding:22px}.topbar{height:50px}.breadcrumb{font-size:11px}.top-tools{gap:6px}.connection{font-size:10px}.chat-head{gap:8px}.chat-head .avatar{display:none}.settings-grid{gap:15px}.card{padding:18px}}
@media(max-width:620px){.conversation-list{width:100%}.chat-panel{display:none}.chat-open .conversation-list{display:none}.chat-open .chat-panel{display:flex;width:100%}.mobile-back{display:grid}.chat-head{padding:12px 10px;min-height:67px}.person h2{font-size:14px}.person .muted{font-size:10px}.chat-actions{gap:5px}.chat-actions .button{font-size:10px;padding:7px}.chat-actions svg{width:15px}.chat-meta{padding:9px 12px}.messages{padding:18px 14px}.bubble{font-size:14px;padding:10px 13px}.message{max-width:94%}.composer{margin:9px 10px}.composer textarea,input,textarea,select{font-size:16px}.compose-tools{gap:7px}.compose-tools>span{max-width:130px;font-size:9px}.compose-tabs{font-size:11px;padding:10px}.show-profile .customer-panel{width:100%;max-width:360px}.settings-grid{display:block}.settings-page{padding:19px 13px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 6px}.topbar{padding:0 10px}.top-tools .connection{font-size:0}.top-tools .connection:before{width:7px;height:7px;margin:0}.login{padding:26px}.form-grid{grid-template-columns:1fr}.form-grid label{margin-top:8px}.profile-section dl>div{font-size:12px}.note-form textarea{font-size:16px}}
.list-tabs{overflow-x:auto;gap:13px;scrollbar-width:thin}.list-tabs button{white-space:nowrap;flex:none;font-size:11px}

.assignment-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;border-bottom:1px solid #ececf2;background:#faf9ff;font-size:12px;flex-wrap:wrap}.assignment-bar>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.assignment-bar .button{font-size:12px;padding:6px 10px}.assignment-bar [hidden]{display:none}.assignee-label{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-tabs{flex-wrap:wrap}.chat-meta{flex-wrap:wrap}button:disabled{cursor:not-allowed;opacity:.5}
