/* Extracted from admin.html on 2026-06-21. Keep order unchanged. */

/* style block 1 */
:root{--ink:#172033;--muted:#667085;--line:#dbe4ef;--soft:#f5f8fc;--blue:#1769e0;--green:#0f9f6e;--red:#e54b4b;--paper:#fff}*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;min-height:100vh;font-family:Arial,"Microsoft YaHei",sans-serif;color:var(--ink);background:#edf2f8}button,input,textarea{font:inherit}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(28,48,82,.15);padding:28px}.login-card h1{margin:0 0 10px;font-size:26px}.login-card p{margin:0 0 18px;color:var(--muted);line-height:1.7}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-weight:800;font-size:14px}.input,.textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;outline:none}.textarea{min-height:90px;resize:vertical}.input:focus,.textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.1)}.btn{border:0;border-radius:10px;min-height:42px;padding:0 16px;font-weight:800;cursor:pointer}.btn-primary{color:#fff;background:var(--blue)}.btn-light{color:var(--ink);background:#fff;border:1px solid var(--line)}.btn-danger{color:#fff;background:var(--red)}.app{height:100vh;display:none;grid-template-rows:68px minmax(0,1fr);overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 22px;color:#fff;background:#101828}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.brand-avatar-wrap{position:relative;width:36px;height:36px;display:block}.mark{width:36px;height:36px;border-radius:10px;display:block;object-fit:cover;background:#fff}.admin-presence-dot{position:absolute;right:-4px;bottom:-4px;width:14px;height:14px;min-width:14px;min-height:14px;aspect-ratio:1/1;padding:0;border-radius:999px;border:2px solid #101828;background:#22c55e;box-shadow:0 0 0 1px #fff;cursor:pointer;display:block;line-height:0;appearance:none;-webkit-appearance:none;flex:0 0 14px}.admin-presence-dot.hidden{background:#fb7185}.admin-presence-dot.offline{background:#cbd5e1}.admin-presence-menu{position:absolute;left:22px;top:34px;width:118px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#344054;box-shadow:0 12px 28px rgba(15,23,42,.18);padding:4px 0;display:none;z-index:60;font-size:14px;font-weight:400}.admin-presence-menu.is-open{display:block}.admin-presence-item{width:100%;height:38px;border:0;background:#fff;color:#344054;display:flex;align-items:center;gap:10px;padding:0 13px;cursor:pointer;text-align:left}.admin-presence-item:hover,.admin-presence-item.active{background:#f2f4f7}.admin-presence-item .dot{width:8px;height:8px;border-radius:50%;background:#22c55e}.admin-presence-item[data-presence="hidden"] .dot{background:#fb7185}.admin-presence-item[data-presence="offline"] .dot{background:#cbd5e1}.top-actions{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.72);font-size:13px}.top-settings-btn{min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-weight:800;cursor:pointer}.top-settings-btn:hover{background:rgba(255,255,255,.2)}.status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.14)}.layout{height:100%;min-height:0;overflow:hidden;display:grid;grid-template-columns:330px minmax(0,1fr) 340px;gap:1px;background:var(--line)}.app.quick-independent .layout{grid-template-columns:330px minmax(0,1fr) 680px}.sidebar,.chat,.profile{height:100%;min-height:0;overflow:hidden;background:var(--paper)}.sidebar{display:grid;grid-template-rows:auto 1fr}.panel-head{padding:18px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0 0 10px;font-size:20px}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-title-row h2{margin:0}.link-danger{border:0;background:transparent;color:var(--red);font-weight:800;cursor:pointer;padding:6px 2px}.link-danger:hover{text-decoration:underline}.search{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 11px;outline:none;background:#fbfdff}.conversation-filters{display:flex;align-items:center;gap:6px;margin-top:9px;overflow-x:auto;scrollbar-width:none}.conversation-filters::-webkit-scrollbar{display:none}.conversation-filter{flex:0 0 auto;border:1px solid #dbe4ef;border-radius:999px;background:#fff;color:#667085;font-size:12px;font-weight:900;line-height:1;padding:8px 10px;cursor:pointer;white-space:nowrap}.conversation-filter:hover{border-color:#bfdbfe;color:#1769e0;background:#f8fbff}.conversation-filter.active{border-color:#9fc5ff;background:#eff6ff;color:#1769e0}.conversation-filter[data-conversation-filter="human"].active{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.conversation-filter[data-conversation-filter="unread"].active{border-color:#fecaca;background:#fff1f2;color:#dc2626}.conversation-list{overflow:auto;padding:10px;display:grid;align-content:start;gap:8px}.conversation{position:relative;width:100%;border:1px solid transparent;border-radius:12px;background:#fff;text-align:left;padding:12px;cursor:pointer;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px}.avatar-wrap{position:relative;width:42px;height:42px}.visitor-device{width:42px;height:42px;border-radius:9px;background:#cfd4dc;color:#fff;display:grid;place-items:center;font-size:23px}.visitor-device.online{background:var(--blue)}.conversation-main{min-width:0}.conversation-meta{display:flex;align-items:center;gap:6px;min-width:0;color:#98a2b3;font-size:12px}.location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-state{font-weight:800}.online-state.online{color:var(--green)}.online-state.offline{color:#98a2b3}.delete-conversation{position:absolute;right:10px;top:10px;border:0;border-radius:8px;background:#fff1f1;color:var(--red);font-weight:800;padding:6px 8px;cursor:pointer}.delete-conversation:hover{background:#ffe0e0}.conversation:hover,.conversation.active{border-color:rgba(23,105,224,.22);background:#eef5ff}.conversation-top{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-bottom:2px;min-width:0}.visitor{font-weight:800;display:flex;align-items:center;gap:7px;min-width:0;flex:0 1 auto;max-width:calc(100% - 82px)}.visitor-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-sub{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:7px}.visitor-code{font-weight:800;font-size:18px;line-height:1.2}.unread{position:absolute;right:-8px;top:-8px;display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;padding:0 6px;color:#fff;background:var(--red);font-size:12px;z-index:2}.time{color:var(--muted);font-size:12px;white-space:nowrap}.last{color:var(--muted);font-size:13px;line-height:1.45;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;word-break:normal}.draft-preview{margin-top:8px;border:1px dashed #f4bd50;border-radius:9px;background:#fff8df;color:#8a5b00;padding:7px 9px;font-size:13px;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.draft-preview strong{color:#9a6700}.msg.draft{align-self:flex-start;max-width:78%;border:1px dashed #f4bd50;background:#fff8df;color:#8a5b00}.msg.draft .draft-label{display:block;margin-bottom:4px;font-size:12px;font-weight:800;color:#9a6700}.mini-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.tag{display:inline-flex;align-items:center;border:1px solid #cfe0ff;border-radius:999px;background:#f0f6ff;color:#175cd3;padding:4px 8px;font-size:12px}.chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.chat-main{min-height:0;display:grid;grid-template-columns:minmax(0,1fr);background:#f5f8fc}.quick-panel{min-height:0;background:#fff;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.quick-panel.is-collapsed{grid-template-rows:auto}.quick-panel.is-collapsed .quick-list,.quick-panel.is-collapsed .quick-editor{display:none}.quick-title{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--blue);font-weight:800;padding:13px 14px;text-align:left;cursor:default}.quick-title:hover{background:#fff}.quick-list{min-height:0;overflow:auto;padding:8px 0;display:grid;align-content:start}.quick-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 10px 10px 14px;border-bottom:1px solid #eef2f7;background:#fff;cursor:grab}.quick-item:hover{background:#eef4fb}.quick-item.dragging{opacity:.45;cursor:grabbing}.quick-item.drag-over{box-shadow:inset 0 2px 0 var(--blue)}.quick-text{min-width:0;border:0;background:transparent;text-align:left;color:var(--ink);line-height:1.45;cursor:pointer;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-meta{display:flex;align-items:center;gap:7px}.quick-tag{display:none}.quick-send{width:36px;height:36px;border:0;border-radius:10px;color:#fff;background:var(--blue);cursor:pointer;display:grid;place-items:center;opacity:0;transform:translateX(4px);transition:.16s}.quick-item:hover .quick-send{opacity:1;transform:translateX(0)}.quick-actions{display:none;align-items:center;gap:4px}.quick-item:hover .quick-actions{display:flex}.quick-action{border:0;border-radius:7px;background:#eef4fb;color:#31506f;font-size:12px;padding:3px 6px;cursor:pointer;white-space:nowrap}.quick-action:hover{color:var(--blue);background:#e4efff}.quick-action.danger:hover{color:var(--red);background:#fff1f1}.quick-editor{border-top:1px solid var(--line);padding:10px;display:grid;gap:8px}.quick-editor .input{padding:9px 10px}.quick-editor .btn{min-height:36px}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}.chat-title strong{display:block;font-size:18px}.chat-title span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;color:#075e42;background:#dff8ed;font-size:12px;font-weight:800}.messages{min-height:0;overflow:auto;padding:20px;background:#f5f8fc;display:flex;flex-direction:column;gap:10px}.msg{max-width:72%;padding:11px 13px;border-radius:13px;line-height:1.6;font-size:14px}.msg.visitor{align-self:flex-start;background:#fff;border:1px solid #e3ebf5;font-weight:400}.msg.agent{align-self:flex-end;color:#fff;background:#2f9bed}.msg.system{align-self:center;max-width:90%;color:var(--muted);background:transparent;font-size:13px}.msg-meta{display:none}.msg-time-divider{align-self:center;color:#667085;font-size:13px;line-height:1;padding:8px 0 2px;text-align:center}.msg.agent .msg-meta{display:none}.msg-wrap{display:flex;flex-direction:column;max-width:72%}.msg-wrap.agent{align-self:flex-end;align-items:flex-end}.msg-wrap.visitor{align-self:flex-start;align-items:flex-start}.msg-wrap.system,.msg-wrap.recalled{align-self:center;align-items:center;max-width:90%}.msg-wrap>.msg{max-width:100%}.msg-read-state{margin-top:5px;text-align:right;color:#667085;font-size:12px;line-height:1}.msg-read-state.unread{color:#1769e0}.msg-read-state.read{color:#667085}.msg-wrap.recalled .msg-read-state{display:none}.msg.recalled{align-self:center;max-width:90%;color:#667085;background:transparent;border:0;font-size:13px}.msg-menu{position:fixed;z-index:10050;display:none;min-width:128px;border:1px solid #dbe4ef;border-radius:10px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.22);overflow:hidden}.msg-menu.is-open{display:block}.msg-menu button{width:100%;border:0;background:#fff;color:#172033;text-align:left;padding:12px 16px;font-weight:800;cursor:pointer}.msg-menu button:hover{background:#f0f6ff;color:#1769e0}.msg-menu button.danger{color:#e54b4b}.msg-menu button:disabled{color:#98a2b3;cursor:not-allowed;background:#fff}.composer{border-top:1px solid var(--line);padding:14px;background:#fff}.compose-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(94px,auto) 42px;gap:8px 12px}.compose-input{grid-column:1/3;grid-row:1;width:100%;min-height:94px;max-height:150px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:13px 14px 44px;outline:none;background:#fff}.compose-tools{grid-column:1;grid-row:2;display:flex;align-items:center;gap:14px;padding-left:2px}.compose-tool{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#7a8798;cursor:pointer;font-size:24px;line-height:1;display:grid;place-items:center;padding:0}.compose-tool svg{width:25px;height:25px;display:block}.compose-tool:hover{color:var(--blue);background:#eef5ff}.compose-divider{width:1px;height:22px;background:#dbe4ef;margin:0 2px}.emoji-panel{position:absolute;left:0;bottom:50px;width:min(368px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(15,23,42,.18);padding:12px;display:none;grid-template-columns:repeat(auto-fill,36px);justify-content:start;gap:8px;z-index:4;overflow:hidden}.emoji-panel.is-open{display:grid}.emoji-panel button{width:36px;height:36px;border:0;border-radius:8px;background:#fff;font-size:22px;line-height:1;padding:0;cursor:pointer;display:grid;place-items:center}.emoji-panel button:hover{background:#eef5ff}.send{grid-column:2;grid-row:2;border:0;border-radius:10px;color:#fff;background:var(--blue);height:40px;padding:0 20px;font-weight:800;cursor:pointer}.profile{display:grid;grid-template-rows:auto auto minmax(0,1fr);min-width:0}.profile.independent{grid-template-columns:340px 340px;grid-template-rows:auto auto minmax(0,1fr)}.profile.independent .profile-head,.profile.independent .side-tabs{grid-column:1/3}.profile.independent .side-tabs{grid-template-columns:340px 170px 170px}.profile.independent #quickPane{grid-column:1;grid-row:3;display:grid;border-right:1px solid var(--line)}.profile.independent #detailPane,.profile.independent #logPane{grid-column:2;grid-row:3;border-right:0}.profile.independent #detailPane.active{display:block}.profile.independent #logPane.active{display:block}.profile.independent #detailPane:not(.active),.profile.independent #logPane:not(.active){display:none}.profile.independent #quickTab{border-bottom-color:transparent}.profile.independent #quickTab.active{border-bottom-color:transparent}.profile.independent #detailTab.active,.profile.independent #logTab.active{color:var(--blue);border-bottom-color:var(--blue)}.quick-close{display:none;margin-left:8px;border:0;background:transparent;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;vertical-align:-2px}.profile.independent .quick-close{display:inline-block}.quick-close:hover{color:var(--red)}.profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-head h2{margin:0}.profile-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:18px;font-weight:900;cursor:pointer}.icon-btn:hover,.icon-btn.is-on{color:var(--blue);border-color:#9fc5ff;background:#f0f6ff}.icon-btn.danger:hover{color:var(--red);border-color:#ffc9c9;background:#fff1f1}.side-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid var(--line);background:#fff}.side-tab{border:0;background:#fff;color:var(--muted);font-weight:800;padding:13px 8px;cursor:pointer;border-bottom:3px solid transparent}.side-tab.active{color:var(--blue);border-bottom-color:var(--blue)}.side-pane{min-height:0;overflow:hidden;display:none}.side-pane.active{display:grid}.profile-body{padding:18px;overflow:auto;display:none}.profile-body.active{display:block}.log-pane{background:#fbfdff}.activity-list{position:relative;display:grid;gap:10px;padding-left:12px}.activity-list:before{content:"";position:absolute;left:3px;top:4px;bottom:4px;width:1px;background:#dbe4ef}.activity-item{position:relative;border:1px solid #e5edf6;border-radius:10px;background:#fff;padding:10px 12px}.activity-item:before{content:"";position:absolute;left:-14px;top:15px;width:7px;height:7px;border-radius:50%;background:#1769e0}.activity-title{font-weight:800;font-size:14px;color:#172033}.activity-meta{margin-top:4px;color:#667085;font-size:12px;line-height:1.5}.activity-detail{margin-top:6px;color:#42526b;font-size:13px;line-height:1.5;word-break:break-word}.profile .quick-panel{height:100%;border-left:0}.profile .quick-title{display:none}.quick-pane-wrap{position:relative;min-height:0}.quick-more{position:absolute;right:14px;bottom:10px;border:0;background:transparent;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;padding:4px 8px;border-radius:8px}.quick-more:hover{background:#eef4fb}.quick-menu{position:absolute;right:12px;bottom:44px;width:190px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.16);overflow:hidden;display:none;z-index:5}.quick-menu.is-open{display:block}.quick-menu small{display:block;padding:9px 14px;color:var(--muted);border-bottom:1px solid #eef2f7}.quick-menu button{width:100%;border:0;background:#fff;color:var(--ink);text-align:left;padding:12px 14px;cursor:pointer;font-weight:700}.quick-menu button:hover{background:#f6f9ff;color:var(--blue)}.quick-menu .disabled{color:var(--muted)}.extend-pane{padding:18px;color:var(--muted);line-height:1.7}.card{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff;margin-bottom:14px}.card h3{margin:0 0 12px;font-size:16px}.kv{display:grid;gap:10px;color:var(--muted);font-size:14px}.kv div{display:grid;gap:3px}.kv strong{color:var(--ink);font-size:13px}.profile-edit-row{display:grid;gap:5px}.profile-edit-line{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:6px}.profile-edit-input{width:100%;min-width:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;padding:7px 8px;margin-left:-8px;outline:none}.profile-edit-input:hover,.profile-edit-input:focus{border-color:#dbe4ef;background:#fbfdff;color:var(--ink)}.profile-copy-btn{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#98a2b3;cursor:pointer;display:grid;place-items:center;opacity:0;transition:.15s}.profile-edit-row:hover .profile-copy-btn,.profile-copy-btn:focus{opacity:1}.profile-copy-btn:hover{background:#eef5ff;color:var(--blue)}.profile-copy-btn svg{width:16px;height:16px;display:block}@media(max-width:760px){.profile-copy-btn{opacity:1}}.actions{display:flex;flex-wrap:wrap;gap:8px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.switch{position:relative;width:42px;height:24px;border:0;border-radius:999px;background:#d8e1ec;cursor:pointer}.switch::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.18);transition:.18s}.switch.is-on{background:var(--blue)}.switch.is-on::after{transform:translateX(18px)}.empty{margin:auto;color:var(--muted);text-align:center;line-height:1.7;max-width:360px}.warn{margin:16px;border:1px solid #f9d77d;border-radius:12px;padding:14px;color:#8a5b00;background:#fff8df;line-height:1.6}.settings-fab{position:fixed;left:18px;bottom:18px;z-index:20;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:800;padding:10px 14px;box-shadow:0 10px 30px rgba(15,23,42,.12);cursor:pointer}.settings-modal{position:fixed;inset:0;z-index:50;display:none;place-items:center;background:rgba(15,23,42,.42);padding:20px}.settings-modal.is-open{display:grid}.settings-box{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.28);padding:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.settings-box h3{margin:0;padding:20px 22px 14px;font-size:20px}.settings-layout{min-height:0;display:grid;grid-template-columns:150px minmax(0,1fr);border-top:1px solid #eef2f7}.settings-nav{border-right:1px solid #eef2f7;background:#f7faff;padding:12px;display:grid;align-content:start;gap:8px}.settings-tab{border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:800;text-align:left;padding:12px;cursor:pointer}.settings-tab.active{background:#fff;color:var(--blue);box-shadow:0 2px 10px rgba(15,23,42,.08)}.settings-pane{display:none;min-height:0;overflow:auto;padding:18px 20px}.settings-pane.active{display:block}.settings-inline-actions{display:flex;justify-content:flex-start;margin-top:2px}.ai-quick-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}@media(max-width:760px){.ai-quick-question-grid{grid-template-columns:1fr}}.ai-quick-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}@media(max-width:760px){.ai-quick-question-grid{grid-template-columns:1fr}}.ai-quick-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}@media(max-width:760px){.ai-quick-question-grid{grid-template-columns:1fr}}.ai-quick-question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}@media(max-width:760px){.ai-quick-question-grid{grid-template-columns:1fr}}.ai-test-output{min-height:96px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fbff;color:#344054;padding:12px 14px;line-height:1.7;white-space:pre-wrap;word-break:break-word}.blacklist-list{display:grid;gap:10px}.blacklist-item{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.blacklist-main{min-width:0;display:grid;gap:5px}.blacklist-title{font-weight:800;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blacklist-meta{color:var(--muted);font-size:13px;line-height:1.5}.blacklist-empty{color:var(--muted);text-align:center;padding:26px 10px;border:1px dashed var(--line);border-radius:12px;background:#fbfdff}.avatar-row{display:flex;align-items:center;gap:14px;margin-bottom:14px}.avatar-preview{width:64px;height:64px;border-radius:16px;object-fit:cover;border:1px solid var(--line);background:#f6f9ff}.settings-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:0;padding:14px 20px;border-top:1px solid #eef2f7}#quickReplyModal .settings-box{width:min(820px,calc(100vw - 56px))}#quickReplyModal .settings-box h3{padding:26px 34px 18px}#quickReplyModal .quick-type-tabs,#quickReplyModal .quick-modal-panel,#quickReplyModal .field{margin-left:30px;margin-right:30px}#quickReplyModal .settings-actions{padding:18px 34px 24px}#quickReplyModal .quick-type-tabs{margin-top:6px;margin-bottom:18px}#quickReplyModal .quick-modal-panel .field{margin-left:0;margin-right:0}@media(max-width:760px){#quickReplyModal .settings-box{width:calc(100vw - 28px)}#quickReplyModal .settings-box h3{padding:22px 22px 14px}#quickReplyModal .quick-type-tabs,#quickReplyModal .quick-modal-panel,#quickReplyModal .field{margin-left:18px;margin-right:18px}#quickReplyModal .settings-actions{padding:16px 22px 20px}}.quick-type-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:12px 0 14px;padding:6px;border-radius:14px;background:#eef3f9}.quick-type-tab{border:0;border-radius:10px;background:transparent;color:#42526b;font-weight:800;padding:11px 8px;cursor:pointer}.quick-type-tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(15,23,42,.12)}.quick-modal-panel{display:none}.quick-modal-panel.active{display:block}.rich-toolbar{display:flex;gap:8px;margin-bottom:8px;align-items:center;flex-wrap:wrap}.rich-toolbar button{width:36px;height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:900;cursor:pointer}.rich-toolbar select,.rich-toolbar input[type="color"]{height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:800;padding:0 8px;outline:none}.rich-toolbar input[type="color"]{width:42px;padding:2px;cursor:pointer}.opening-toolbar [data-opening-action]{width:auto;min-width:56px;padding:0 12px;white-space:nowrap}.opening-editor{min-height:116px}.opening-editor.is-disabled{background:#f2f4f7;color:#98a2b3}.opening-editor img{max-width:100%;border-radius:10px;display:block;margin:8px 0}.rich-editor{min-height:180px;border:1px solid var(--line);border-radius:12px;padding:12px;outline:none;line-height:1.7;background:#fbfdff;overflow:auto}.rich-editor:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.1)}.image-preview{margin-top:10px;min-height:110px;border:1px dashed #c8d4e3;border-radius:12px;display:grid;place-items:center;color:var(--muted);overflow:hidden;background:#fbfdff}.image-preview img{max-width:100%;border-radius:10px;display:block}.msg-image{width:auto;max-width:220px;max-height:180px;object-fit:cover;border-radius:10px;display:block;cursor:zoom-in}.image-viewer{position:fixed;inset:0;z-index:80;display:none;place-items:center;background:rgba(15,23,42,.76);padding:28px}.image-viewer.is-open{display:grid}.image-viewer img{max-width:min(92vw,1200px);max-height:88vh;border-radius:12px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.35)}.image-viewer-close{position:absolute;right:22px;top:18px;width:42px;height:42px;border:0;border-radius:12px;background:rgba(255,255,255,.16);color:#fff;font-size:30px;line-height:1;cursor:pointer}.image-viewer-close:hover{background:rgba(255,255,255,.26)}.msg-rich{line-height:1.7}.msg-rich img{max-width:100%;border-radius:10px;display:block;margin:8px 0}.msg-rich a{color:inherit;text-decoration:underline}.msg-rich p{margin:0 0 8px}.msg-rich p:last-child{margin-bottom:0}.quick-kind{display:inline-flex;align-items:center;border-radius:999px;background:#eef4fb;color:#31506f;font-size:12px;font-weight:800;padding:3px 7px;margin-right:6px}@media(max-width:1080px){.layout{grid-template-columns:280px minmax(0,1fr)}.profile{display:none}}@media(max-width:760px){.layout{grid-template-columns:1fr;grid-template-rows:260px 1fr}.chat-main{grid-template-columns:1fr}.quick-panel{display:none}.top-actions{display:none}.msg{max-width:86%}}
      .composer{position:relative;z-index:12;overflow:visible}.compose-tools{position:relative;z-index:15;pointer-events:auto}.compose-tool{position:relative;z-index:16;pointer-events:auto}.compose-tool svg{pointer-events:none}.send{position:relative;z-index:15}.settings-fab{z-index:220;pointer-events:auto}.settings-fab-hit{position:fixed!important;left:18px!important;bottom:18px!important;z-index:10000!important;pointer-events:auto!important}.settings-modal{z-index:10010}.emoji-panel{position:fixed;left:16px;bottom:96px;z-index:210;max-height:min(300px,calc(100vh - 150px));overflow:auto}.emoji-panel.is-open{display:grid}
      .conversation-top .visitor>.tag{flex:0 0 auto;display:inline-flex;align-items:center;white-space:nowrap;word-break:keep-all;writing-mode:horizontal-tb;text-orientation:mixed;line-height:1}
    @media(max-width:760px){html,body{height:100dvh}.login{padding:16px}.login-card{border-radius:14px;padding:22px}.app{height:100dvh;grid-template-rows:58px minmax(0,1fr)}.topbar{height:58px;padding:0 12px;gap:10px}.brand{font-size:16px;gap:8px;min-width:0}.brand #adminBrandTitle{display:inline-block;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand:after{content:none}.mark,.brand-avatar-wrap{width:34px;height:34px}.admin-presence-dot{right:-3px;bottom:-3px;width:12px;height:12px;min-width:12px;min-height:12px;border-width:2px;flex-basis:12px}.admin-presence-menu{left:0;top:40px}.top-actions{display:flex;gap:8px;font-size:0}.top-actions>span:not(.status-dot){display:none}.top-actions .status-dot{display:none}.top-settings-btn{min-height:34px;padding:0 11px;border-radius:9px;font-size:14px}.top-actions .btn{min-height:34px;padding:0 11px;border-radius:9px;font-size:14px}.layout,.app.quick-independent .layout{display:grid;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr)!important;height:100%;overflow:hidden}.sidebar,.chat{grid-column:1;grid-row:1;height:100%;min-height:0}.sidebar{display:grid;grid-template-rows:auto minmax(0,1fr)}.chat{display:none;grid-template-rows:auto minmax(0,1fr) auto}.app.mobile-chat .sidebar{display:none}.app.mobile-chat .chat{display:grid}.panel-head{padding:13px 14px}.panel-head h2{font-size:18px}.search{height:40px}.conversation-list{padding:9px;background:#f4f7fb}.conversation{border-color:#e6edf6;border-radius:10px;padding:11px 44px 11px 10px;grid-template-columns:40px minmax(0,1fr);box-shadow:0 1px 2px rgba(15,23,42,.04)}.avatar-wrap,.visitor-device{width:40px;height:40px}.visitor-device{font-size:21px}.delete-conversation{right:8px;top:8px;padding:5px 7px}.visitor-code{font-size:16px}.conversation-sub{gap:7px}.last,.draft-preview{font-size:13px}.chat-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px;border-bottom:1px solid var(--line);min-height:58px}.mobile-back-btn{display:grid;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:28px;line-height:1;place-items:center;padding:0}.chat-title{min-width:0}.chat-title strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-title span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-head-actions{display:flex;align-items:center;gap:6px}.chat-head-actions .pill{display:none}.chat-head-actions .ai-paused-pill{height:32px;padding:0 8px;font-size:12px}.mobile-head-btn{display:inline-flex;align-items:center;justify-content:center;height:34px;border:1px solid #cfe0ff;border-radius:9px;background:#f0f6ff;color:#175cd3;font-weight:800;padding:0 9px;font-size:13px}.messages{padding:12px 10px;gap:8px}.msg{max-width:86%;padding:10px 12px;font-size:14px}.composer{padding:9px 10px calc(9px + env(safe-area-inset-bottom));overflow:visible}.compose-row{grid-template-rows:minmax(72px,auto) 40px;gap:7px 8px}.compose-input{min-height:72px;max-height:118px;border-radius:12px;padding:10px 11px 38px}.compose-tools{gap:10px}.compose-tool{width:34px;height:34px}.send{height:38px;padding:0 16px}.emoji-panel{left:10px!important;right:10px!important;bottom:102px!important;width:auto!important;max-height:min(260px,calc(100dvh - 170px));grid-template-columns:repeat(auto-fill,34px);padding:10px;gap:7px}.emoji-panel button{width:34px;height:34px}.profile,.profile.independent{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:min(74dvh,620px);display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto minmax(0,1fr)!important;z-index:120;background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -18px 50px rgba(15,23,42,.22);transform:translateY(110%);transition:transform .18s ease;overflow:hidden}.app.mobile-profile-open .profile{transform:translateY(0)}.app.mobile-profile-open .profile .profile-head,.app.mobile-profile-open .profile .side-tabs{touch-action:none}.profile:before{content:"";width:42px;height:4px;border-radius:999px;background:#cbd5e1;justify-self:center;margin:8px 0 0}.profile .profile-head{padding:10px 14px}.profile-head h2{font-size:17px}.side-tabs{grid-template-columns:1fr 1fr 1fr}.side-tab{padding:12px 6px;font-size:14px}.profile.independent .profile-head,.profile.independent .side-tabs,.profile.independent #quickPane,.profile.independent #detailPane,.profile.independent #logPane{grid-column:1!important;grid-row:auto!important}.profile.independent #quickPane{border-right:0}.profile.independent #detailPane{display:none}.profile.independent #detailPane.active{display:block}.profile.independent #logPane{display:none}.profile.independent #logPane.active{display:block}.side-pane.active{display:grid}.profile-body{padding:14px;overflow:auto}.quick-list{padding-bottom:54px}.quick-item{padding:12px 10px 12px 14px}.quick-send{opacity:1;transform:none}.quick-actions{display:flex}.quick-more{right:12px;bottom:8px}.quick-menu{right:10px;bottom:44px}.settings-modal{padding:0;place-items:stretch}.settings-box{width:100%;height:100dvh;max-height:none;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto}.settings-box h3{padding:16px 16px 12px;font-size:18px}.settings-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.settings-nav{grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;border-right:0;border-bottom:1px solid #eef2f7;padding:10px;background:#f7faff}.settings-tab{white-space:nowrap;padding:10px 12px}.settings-pane{padding:14px}.settings-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:8px}.settings-actions .btn{flex:1}.avatar-row{align-items:flex-start}.rich-toolbar{gap:6px}.rich-toolbar button{width:34px}.rich-toolbar select{max-width:118px}.card{border-radius:10px;padding:13px}.settings-fab{display:none!important}}@media(min-width:761px){.mobile-back-btn,.mobile-head-btn{display:none}.chat-head-actions{display:flex;align-items:center;gap:10px}}@media(max-width:760px){.profile,.profile.independent{grid-template-rows:auto auto minmax(0,1fr)!important;padding-top:12px}.profile:before{position:absolute;left:50%;top:7px;transform:translateX(-50%);margin:0}.profile .profile-head{grid-row:1}.profile .side-tabs{grid-row:2}.profile .side-pane,.profile .profile-body{grid-row:3;min-height:0}.profile .quick-panel{display:grid!important;height:100%;grid-template-rows:minmax(0,1fr)!important}.profile .quick-title{display:none!important}.profile #quickPane.active{display:grid!important;grid-template-rows:minmax(0,1fr)}.profile #detailPane.active{display:block!important}.profile #detailPane{min-height:0;overflow:auto}.profile .quick-list{display:grid!important;align-content:start;min-height:0;overflow:auto;padding:8px 0 58px}.profile .quick-item{min-height:48px}.profile .quick-text{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.app.mobile-profile-open .profile{transform:translateY(0)}}@media(max-width:760px){#quickReplyModal{align-items:end;padding:0;background:rgba(15,23,42,.42)}#quickReplyModal .settings-box{width:100%;height:auto;max-height:calc(100dvh - 10px);border-radius:16px 16px 0 0;grid-template-rows:auto minmax(0,1fr) auto}#quickReplyModal .settings-box h3{padding:18px 20px 10px;font-size:21px}#quickReplyModal .quick-type-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 14px 12px;padding:5px;border-radius:13px;overflow:hidden}#quickReplyModal .quick-type-tab{min-width:0;height:50px;padding:0 4px;border-radius:11px;font-size:17px;line-height:1;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:4px}#quickReplyModal .quick-type-tab svg,#quickReplyModal .quick-type-tab span{flex:0 0 auto}#quickReplyModal .quick-modal-panel,#quickReplyModal .field{margin-left:14px;margin-right:14px}#quickReplyModal .field label{font-size:15px}#quickReplyModal .textarea{min-height:108px}#quickReplyModal .settings-actions{padding:14px 14px calc(14px + env(safe-area-inset-bottom));gap:10px}#quickReplyModal .settings-actions .btn{min-height:48px;border-radius:12px;font-size:18px}}@media(max-width:760px){.profile .quick-item{grid-template-columns:minmax(0,1fr) auto!important;align-items:center}.profile .quick-text{display:block!important;min-width:0;width:100%;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;line-height:1.4}.profile .quick-kind{vertical-align:middle;margin-right:6px}.profile .quick-meta{flex:0 0 auto;min-width:max-content}.profile .quick-actions{flex:0 0 auto}.profile .quick-send{flex:0 0 48px}}
      .conversation-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.conversation-tab{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-weight:800;padding:9px;cursor:pointer}.conversation-tab.active{color:var(--blue);border-color:#9fc5ff;background:#f0f6ff}.top-settings-btn{min-height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-weight:800;cursor:pointer}.batch-menu{position:fixed;z-index:10080;display:none;min-width:150px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.22);overflow:hidden}.batch-menu.is-open{display:block}.batch-menu button{width:100%;border:0;background:#fff;color:var(--ink);text-align:left;padding:12px 16px;font-weight:800;cursor:pointer;white-space:nowrap}.batch-menu button:hover{background:#f0f6ff;color:var(--blue)}.batch-toolbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:8px;border:1px solid #cfe0ff;border-radius:10px;background:#f0f6ff;padding:9px;margin-bottom:8px}.batch-toolbar button{border:0;border-radius:8px;background:#fff;color:var(--ink);font-weight:800;padding:8px 10px;cursor:pointer;white-space:nowrap}.batch-count{font-weight:800;color:var(--blue);margin-right:auto}.batch-run{background:var(--blue)!important;color:#fff!important}.batch-run.delete{background:var(--red)!important}.conversation.is-batch{grid-template-columns:30px 42px minmax(0,1fr);padding-right:12px}.conversation.is-batch .batch-check{position:static;width:28px;height:28px;align-self:start;margin-top:6px;border:1px solid #b7cdf6;border-radius:6px;background:#fff;color:var(--blue);font-weight:900;line-height:1;display:grid;place-items:center}.conversation.is-batch .conversation-top{display:flex;align-items:center;justify-content:flex-start;gap:8px}.conversation.is-batch .conversation-top .visitor{flex:0 1 auto;min-width:0;max-width:calc(100% - 92px)}.conversation.is-batch .conversation-top .time{flex:0 0 auto;margin-left:0}.conversation-transfer-panel{position:fixed;z-index:10090;display:none;width:280px;max-width:calc(100vw - 16px);border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.24);overflow:hidden}.conversation-transfer-panel.is-open{display:block}.conversation-transfer-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eef2f7}.conversation-transfer-head button{border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.conversation-transfer-list{max-height:250px;overflow:auto;padding:6px}.conversation-transfer-list button{width:100%;border:0;border-radius:9px;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:11px 10px;cursor:pointer}.conversation-transfer-list button:hover{background:#f0f6ff;color:var(--blue)}.conversation-transfer-list small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-transfer-empty{padding:18px;color:var(--muted);text-align:center}.conversation-menu .has-submenu{display:flex;align-items:center;justify-content:space-between;gap:12px}.submenu-arrow{color:var(--muted)}.rich-toolbar [data-rich-action],.opening-toolbar [data-opening-action]{width:auto;min-width:56px;padding:0 12px;white-space:nowrap;word-break:keep-all}.icon-btn svg{display:block;margin:auto}.icon-btn{display:grid;place-items:center}@media(max-width:760px){.conversation-transfer-panel{left:8px!important;right:8px!important;top:auto!important;bottom:12px!important;width:auto}}.batch-toast{position:fixed;left:50%;top:20px;z-index:12000;transform:translateX(-50%) translateY(-12px);opacity:0;pointer-events:none;background:rgba(16,24,40,.94);color:#fff;border-radius:10px;padding:11px 18px;font-weight:800;box-shadow:0 14px 34px rgba(15,23,42,.22);transition:.18s}.batch-toast.is-open{opacity:1;transform:translateX(-50%) translateY(0)}.ai-paused-pill{display:inline-flex;align-items:center;height:34px;border:1px solid #fed7aa;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:900;padding:0 10px;white-space:nowrap}.resume-ai-btn,.pause-ai-btn{display:inline-flex;align-items:center;justify-content:center;height:34px;border:1px solid #fed7aa;border-radius:9px;background:#fff7ed;color:#c2410c;font-weight:900;padding:0 10px;font-size:13px;white-space:nowrap;cursor:pointer}.pause-ai-btn{border-color:#bfdbfe;background:#eff6ff;color:#175cd3}.resume-ai-btn:disabled,.pause-ai-btn:disabled{opacity:.7;cursor:not-allowed}.ai-suggest{border:1px solid #cfe0ff;border-radius:12px;background:#f0f6ff;margin-bottom:10px;padding:10px}.ai-suggest-head,.ai-suggest-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-suggest-head button{border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}.ai-suggest-text{margin:8px 0;color:var(--ink);line-height:1.6;white-space:pre-wrap}.msg-read-state.state-unread{color:#1769e0}.msg-read-state.state-read{color:#667085}.brand-avatar-wrap{position:relative;width:36px;height:36px;display:block}.admin-presence-dot{position:absolute;right:-4px;bottom:-4px;width:14px;height:14px;min-width:14px;min-height:14px;aspect-ratio:1/1;padding:0;border-radius:999px;border:2px solid #101828;background:#22c55e;box-shadow:0 0 0 1px #fff;cursor:pointer;display:block;line-height:0}.admin-presence-dot.hidden{background:#fb7185}.admin-presence-dot.offline{background:#cbd5e1}.admin-presence-menu{position:absolute;left:22px;top:34px;width:118px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#344054;box-shadow:0 12px 28px rgba(15,23,42,.18);padding:4px 0;display:none;z-index:60;font-size:14px;font-weight:400}.admin-presence-menu.is-open{display:block}.admin-presence-item{width:100%;height:38px;border:0;background:#fff;color:#344054;display:flex;align-items:center;gap:10px;padding:0 13px;cursor:pointer;text-align:left}.admin-presence-item .dot{width:8px;height:8px;border-radius:50%;background:#22c55e}.admin-presence-item[data-presence="hidden"] .dot{background:#fb7185}.admin-presence-item[data-presence="offline"] .dot{background:#cbd5e1}@media(max-width:760px){.brand{font-size:16px}.brand #adminBrandTitle{display:inline-block;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand:after{content:none}.conversation-tabs{margin:8px 0}.settings-fab{display:none!important}}
      @media(max-width:760px){
        .conversation-list{display:flex;flex-direction:column;gap:8px;padding:9px;background:#f4f7fb}
        .conversation{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:9px;width:100%;min-height:0;padding:10px!important;align-items:start}
        .conversation.is-batch{grid-template-columns:28px 38px minmax(0,1fr)!important;padding-left:9px!important}
        .conversation .batch-check{position:static;width:28px;height:28px;align-self:start;margin-top:6px;border:1px solid #b7cdf6;border-radius:6px;background:#fff;color:var(--blue);font-weight:900;line-height:1;display:grid;place-items:center;flex:0 0 28px}
        .conversation .avatar-wrap,.conversation .visitor-device{width:38px;height:38px;min-width:38px}
        .conversation .visitor-device{font-size:20px;border-radius:10px}
        .conversation-main{min-width:0;display:block}
        .conversation-top{display:flex!important;align-items:center;justify-content:flex-start;gap:7px;min-width:0;margin:0 0 4px}
        .conversation-top .visitor{flex:0 1 auto;min-width:0;max-width:calc(100% - 82px);display:flex;align-items:center;gap:5px}
        .conversation-top .visitor-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
        .conversation-top .time{margin-left:0;flex:0 0 auto;font-size:12px;white-space:nowrap;color:var(--muted)}
        .conversation-sub{display:flex!important;align-items:center;gap:7px;min-width:0;margin:0 0 1px}
        .visitor-code{font-size:18px;line-height:1.2;white-space:nowrap;flex:0 0 auto}
        .conversation-meta{display:flex!important;align-items:center;gap:6px;min-width:0;font-size:12px;white-space:nowrap}
        .conversation-meta span{display:inline!important;white-space:nowrap}
        .assignment-tags,.mini-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
        .conversation .tag{padding:3px 7px;font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
        .assignment-tags .quick-action{height:24px;padding:0 8px;white-space:nowrap}
        .last{margin-top:1px;font-size:13px;line-height:1.32;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
        .draft-preview{margin-top:6px;padding:6px 8px;font-size:12px;line-height:1.35;-webkit-line-clamp:1}
        .batch-toolbar{position:sticky;top:0;z-index:9;display:grid!important;grid-template-columns:38px minmax(88px,1fr) minmax(82px,auto) minmax(98px,auto);gap:7px;align-items:center;margin:0 0 8px;padding:8px;background:#eef5ff;border-radius:10px;border:1px solid #cfe0ff}
        .batch-toolbar .batch-back{width:36px;height:36px;padding:0}
        .batch-toolbar .batch-count{min-width:88px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;letter-spacing:0}
        .batch-toolbar button{height:36px;padding:0 10px;border-radius:10px;font-size:14px}
        .batch-toolbar .batch-select-all{padding:0 10px}
        .batch-toolbar .batch-run{padding:0 12px}
      }
      .chat-html-card,.settings-pane[data-settings-pane="integration"]>.card:last-child{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:0;border-color:#d8e4f2;border-radius:12px;background:#fbfdff}
      .chat-html-title,.settings-pane[data-settings-pane="integration"]>.card:last-child>h3{flex:1 1 auto;min-width:120px;margin:0!important;font-size:18px!important;line-height:1.2}
      .integration-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
      .integration-card-head h3{margin:0!important;font-size:18px!important;line-height:1.2}
      .integration-card-head .btn{min-height:36px;border-radius:10px;padding:0 16px}
      .integration-copy-card .field:last-child{margin-bottom:0}
      .chat-html-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
      .chat-html-toggle,.settings-pane[data-settings-pane="integration"]>.card:last-child>.switch-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;color:var(--ink);font-weight:800}
      .chat-html-card .btn,.settings-pane[data-settings-pane="integration"]>.card:last-child>.btn{min-height:38px;border-radius:10px;padding:0 18px}
      .conversation-time-wrap{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap;color:var(--muted);font-size:12px;flex:0 0 auto;margin-left:0}
      .mute-icon{width:15px;height:15px;color:#667085;display:inline-block;vertical-align:-2px;flex:0 0 auto}
      .conversation-sub{flex-wrap:nowrap;overflow:visible}
      .conversation-flags{display:inline-flex;align-items:center;gap:7px;min-width:0;flex:1 1 auto;overflow:visible;white-space:nowrap;padding:0 2px}
      .conversation-flag{display:inline-flex;align-items:center;height:24px;border:1px solid #cfe0ff;border-radius:999px;background:#f0f6ff;color:#175cd3;padding:0 8px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}
      .conversation-flag.assignment{height:auto;min-width:max-content;max-width:128px;border:0;background:transparent;color:#1769e0;padding:0 1px;font-size:13px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
      .conversation-flag.warn{border-color:#fed7aa;background:#fff7ed;color:#c2410c}
      .conversation-claim{flex:0 0 auto;height:24px;border:0;border-radius:999px;background:#e8f1ff;color:#1769e0;padding:0 9px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
      .conversation-claim:hover{background:#d8e8ff}
      .conversation-human-row{display:flex;align-items:center;justify-content:flex-start;margin:5px 0 0 0}
      .conversation-human-row{width:100%;justify-content:flex-start!important;margin:5px 0 0 0!important}
      .conversation-human-row .conversation-flag.warn{height:24px;padding:0 9px;line-height:1;margin:0!important}
      .draft-preview{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;line-height:1.35!important;max-width:100%}
      .draft-preview strong{display:inline;white-space:nowrap}
      @media(max-width:760px){.chat-html-card,.settings-pane[data-settings-pane="integration"]>.card:last-child{align-items:flex-start;gap:12px;padding:14px;flex-wrap:wrap}.chat-html-title,.settings-pane[data-settings-pane="integration"]>.card:last-child>h3{font-size:17px!important}.chat-html-actions{width:100%;justify-content:space-between}.chat-html-toggle,.settings-pane[data-settings-pane="integration"]>.card:last-child>.switch-row{font-size:14px}.chat-html-card .btn,.settings-pane[data-settings-pane="integration"]>.card:last-child>.btn{min-height:36px;padding:0 16px}}
     .conversation.is-muted .conversation-top{justify-content:flex-start;padding-right:22px}.conversation.is-muted .conversation-time-wrap{margin-left:0;justify-content:flex-start}.conversation.is-muted .mute-icon{position:absolute;right:12px;top:15px} @media(max-width:760px){.conversation.is-muted .conversation-top{justify-content:flex-start!important;padding-right:22px}.conversation.is-muted .conversation-time-wrap{margin-left:0}.conversation.is-muted .mute-icon{right:12px;top:15px}}@media(max-width:760px){
  .conversation-list{gap:10px!important;padding:10px!important;background:#f4f7fb!important}
  .conversation{grid-template-columns:44px minmax(0,1fr)!important;gap:11px!important;min-height:104px!important;padding:12px!important;align-items:start!important;border-radius:13px!important;overflow:hidden!important}
  .conversation.is-batch{grid-template-columns:30px 44px minmax(0,1fr)!important;min-height:104px!important}
  .avatar-wrap,.visitor-device{width:44px!important;height:44px!important}
  .visitor-device{border-radius:10px!important;font-size:21px!important}
  .unread{right:-9px!important;top:-8px!important;min-width:22px!important;height:22px!important;font-size:12px!important}
  .conversation-main{display:grid!important;grid-template-rows:auto auto auto auto;gap:3px!important;min-width:0!important;overflow:hidden!important}
  .conversation-top{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;margin:0!important;height:22px!important;overflow:hidden!important}
  .conversation-top .visitor{max-width:calc(100% - 84px)!important;min-width:0!important;flex:1 1 auto!important;font-size:16px!important;line-height:22px!important}
  .conversation-top .visitor-name{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .conversation-top .time{flex:0 0 auto!important;font-size:12px!important;line-height:22px!important;color:#667085!important;white-space:nowrap!important}
  .conversation-sub{height:24px!important;margin:0!important;display:flex!important;align-items:center!important;overflow:hidden!important}
  .visitor-code{font-size:20px!important;line-height:24px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
  .assignment-tags{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:7px!important;margin:0!important;min-width:0!important;overflow:hidden!important;height:25px!important}
  .assignment-tags .tag{flex:0 1 auto!important;min-width:0!important;max-width:calc(100% - 58px)!important;height:24px!important;border:0!important;background:transparent!important;color:#1769e0!important;padding:0!important;font-size:13px!important;font-weight:800!important;line-height:24px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .assignment-tags .quick-action{flex:0 0 auto!important;height:24px!important;border-radius:999px!important;background:#e8f1ff!important;color:#1769e0!important;padding:0 10px!important;font-size:12px!important;font-weight:900!important;line-height:24px!important;white-space:nowrap!important}
  .last{display:block!important;margin:0!important;color:#667085!important;font-size:13px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important}
  .mini-tags:not(.assignment-tags){margin-top:3px!important;gap:4px!important;max-height:24px!important;overflow:hidden!important}
}/* conversation-stable-v1 */.sidebar{width:330px;min-width:330px;max-width:330px}.conversation-list,.conversation-filters{scrollbar-width:none;-ms-overflow-style:none}.conversation-list::-webkit-scrollbar,.conversation-filters::-webkit-scrollbar{width:0;height:0;display:none}.conversation-tab{min-height:45px}.panel-title-row{min-height:34px}/* conversation-stable-v2 */
.sidebar{width:330px!important;min-width:330px!important;max-width:330px!important;contain:layout paint;}
.panel-head{width:330px!important;min-width:330px!important;max-width:330px!important;overflow:hidden;}
.conversation-tabs{grid-template-columns:calc((100% - 8px)/2) calc((100% - 8px)/2)!important;}
.conversation-filters{width:100%!important;min-width:0!important;overflow:hidden!important;}
.conversation-list{width:330px!important;min-width:330px!important;max-width:330px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 16px 10px 10px!important;scrollbar-width:none!important;-ms-overflow-style:none!important;}
.conversation-list::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
.conversation{width:100%!important;grid-template-columns:42px minmax(0,1fr)!important;column-gap:10px!important;contain:layout paint;}
.conversation-main{width:100%!important;min-width:0!important;overflow:hidden!important;}
.conversation-top{display:grid!important;grid-template-columns:minmax(0,1fr) 74px!important;gap:8px!important;align-items:center!important;width:100%!important;}
.conversation-top .visitor{max-width:none!important;width:100%!important;min-width:0!important;overflow:hidden!important;}
.conversation-time-wrap{width:74px!important;min-width:74px!important;max-width:74px!important;justify-content:flex-start!important;overflow:visible!important;}
.conversation-sub{display:grid!important;grid-template-columns:minmax(74px,max-content) minmax(0,1fr)!important;gap:9px!important;align-items:center!important;width:100%!important;overflow:hidden!important;}
.visitor-code{min-width:0!important;max-width:112px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.conversation-flags{min-width:0!important;overflow:hidden!important;white-space:nowrap!important;}
.conversation-flag.assignment{max-width:100%!important;}
.last{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
@media(max-width:760px){.sidebar,.panel-head,.conversation-list{width:100%!important;min-width:0!important;max-width:none!important}.conversation-list{padding:10px 16px 10px 10px!important}.conversation-top{grid-template-columns:minmax(0,1fr) 74px!important}.conversation-time-wrap{width:74px!important;min-width:74px!important}.conversation-sub{grid-template-columns:minmax(72px,max-content) minmax(0,1fr)!important}.visitor-code{max-width:112px!important}}/* history-filter-stable-v1 */.history-filter-btn{width:58px!important;min-width:58px!important;max-width:58px!important;padding-left:0!important;padding-right:0!important;text-align:center;justify-content:center!important}.conversation-filters{display:grid!important;grid-template-columns:max-content max-content max-content max-content 58px!important;gap:6px!important;align-items:center!important}.conversation-filter{min-height:31px!important}@media(max-width:760px){.history-filter-btn{width:58px!important;min-width:58px!important;max-width:58px!important}.conversation-filters{grid-template-columns:max-content max-content max-content max-content 58px!important}}/* history-filter-search-row-v1 */.conversation-search-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:8px;align-items:center;margin-top:10px}.conversation-search-row .search{width:100%;min-width:0}.conversation-search-row .history-filter-btn{margin-left:0!important;width:58px!important;min-width:58px!important;max-width:58px!important;height:42px!important;border-radius:10px!important;visibility:hidden;pointer-events:none}.conversation-search-row .history-filter-btn.is-visible{visibility:visible;pointer-events:auto}.conversation-filters{display:flex!important;grid-template-columns:none!important;width:100%!important;gap:6px!important;overflow:hidden!important}@media(max-width:760px){.conversation-search-row{grid-template-columns:minmax(0,1fr) 58px;gap:7px}.conversation-search-row .history-filter-btn{width:58px!important;min-width:58px!important;max-width:58px!important}}/* mobile-conversation-compact-v1 */
@media(max-width:760px){
  .app{grid-template-rows:56px minmax(0,1fr)!important;}
  .topbar{height:56px!important;padding:0 14px!important;gap:10px!important;}
  .brand-avatar-wrap,.mark{width:34px!important;height:34px!important;border-radius:9px!important;}
  .brand{font-size:17px!important;gap:8px!important;}
  .top-actions{gap:8px!important;}
  .top-settings-btn,.top-actions .btn,.topbar .btn{min-height:34px!important;height:34px!important;border-radius:10px!important;padding:0 13px!important;font-size:15px!important;}
  .panel-head{padding:12px 14px 10px!important;}
  .panel-title-row{min-height:28px!important;margin-bottom:6px!important;}
  .panel-title-row h2{font-size:21px!important;line-height:1.1!important;}
  .link-danger{font-size:16px!important;padding:4px 0!important;}
  .conversation-tabs{margin:8px 0!important;gap:7px!important;}
  .conversation-tab{min-height:42px!important;height:42px!important;padding:0 8px!important;border-radius:11px!important;font-size:17px!important;line-height:1!important;}
  .conversation-search-row{margin-top:7px!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:7px!important;}
  .conversation-search-row .search{height:40px!important;padding:8px 12px!important;border-radius:11px!important;font-size:16px!important;}
  .conversation-search-row .history-filter-btn{width:56px!important;min-width:56px!important;max-width:56px!important;height:40px!important;min-height:40px!important;border-radius:11px!important;font-size:14px!important;}
  .conversation-filters{margin-top:8px!important;gap:6px!important;}
  .conversation-filter{min-height:29px!important;height:29px!important;padding:0 9px!important;font-size:13px!important;line-height:29px!important;}
  .conversation-list{gap:9px!important;padding:9px 12px 12px 9px!important;background:#f4f7fb!important;}
  .conversation{grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important;min-height:92px!important;padding:10px!important;border-radius:12px!important;}
  .avatar-wrap,.visitor-device{width:40px!important;height:40px!important;min-width:40px!important;}
  .visitor-device{border-radius:9px!important;font-size:19px!important;}
  .conversation-top{height:20px!important;grid-template-columns:minmax(0,1fr) 70px!important;gap:6px!important;margin:0!important;}
  .conversation-top .visitor{font-size:15px!important;line-height:20px!important;}
  .conversation-time-wrap{width:70px!important;min-width:70px!important;max-width:70px!important;}
  .conversation-top .time,.time{font-size:12px!important;line-height:20px!important;}
  .conversation-sub{height:23px!important;grid-template-columns:minmax(70px,max-content) minmax(0,1fr)!important;gap:7px!important;margin:1px 0 0!important;}
  .visitor-code{font-size:19px!important;line-height:23px!important;max-width:104px!important;}
  .conversation-flag.assignment{font-size:13px!important;line-height:20px!important;}
  .conversation-claim{height:23px!important;padding:0 8px!important;font-size:12px!important;}
  .last{font-size:13px!important;line-height:17px!important;margin-top:2px!important;}
  .conversation-human-row{margin-top:4px!important;}
  .conversation-human-row .conversation-flag.warn{height:22px!important;padding:0 8px!important;font-size:12px!important;}
  .mini-tags:not(.assignment-tags){margin-top:3px!important;max-height:22px!important;}
}/* mobile-conversation-compact-v2 */
@media(max-width:760px){
  .app{grid-template-rows:48px minmax(0,1fr)!important;}
  .topbar{height:48px!important;min-height:48px!important;padding:0 12px!important;gap:8px!important;}
  .brand-avatar-wrap,.mark{width:30px!important;height:30px!important;border-radius:8px!important;}
  .admin-presence-dot{width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;right:-3px!important;bottom:-3px!important;}
  .brand{font-size:16px!important;gap:7px!important;}
  .top-actions{gap:7px!important;}
  .top-settings-btn,.top-actions .btn,.topbar .btn,#logoutBtn{height:32px!important;min-height:32px!important;border-radius:9px!important;padding:0 12px!important;font-size:15px!important;line-height:32px!important;}

  .panel-head{padding:10px 14px 8px!important;}
  .panel-title-row{min-height:26px!important;margin:0 0 6px!important;}
  .panel-title-row h2{font-size:20px!important;line-height:24px!important;}
  .link-danger{font-size:16px!important;line-height:24px!important;padding:0!important;}
  .conversation-tabs{margin:6px 0!important;gap:7px!important;}
  .conversation-tab{height:38px!important;min-height:38px!important;padding:0 8px!important;border-radius:10px!important;font-size:17px!important;line-height:38px!important;}
  .conversation-search-row{margin-top:6px!important;grid-template-columns:minmax(0,1fr) 54px!important;gap:6px!important;}
  .conversation-search-row .search{height:36px!important;min-height:36px!important;padding:7px 11px!important;border-radius:10px!important;font-size:16px!important;line-height:20px!important;}
  .conversation-search-row .history-filter-btn{width:54px!important;min-width:54px!important;max-width:54px!important;height:36px!important;min-height:36px!important;border-radius:10px!important;font-size:14px!important;line-height:36px!important;}
  .conversation-filters{margin-top:7px!important;gap:6px!important;height:28px!important;min-height:28px!important;}
  .conversation-filter{height:28px!important;min-height:28px!important;padding:0 9px!important;font-size:13px!important;line-height:28px!important;}

  .conversation-list{gap:7px!important;padding:8px 10px 10px 8px!important;background:#f4f7fb!important;}
  .conversation{grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;min-height:82px!important;padding:8px 9px!important;border-radius:11px!important;align-items:start!important;}
  .avatar-wrap,.visitor-device{width:38px!important;height:38px!important;min-width:38px!important;}
  .visitor-device{border-radius:9px!important;font-size:18px!important;}
  .conversation-main{min-width:0!important;overflow:hidden!important;}
  .conversation-top{height:19px!important;grid-template-columns:minmax(0,1fr) 68px!important;gap:6px!important;margin:0!important;align-items:center!important;}
  .conversation-top .visitor{font-size:15px!important;line-height:19px!important;max-width:none!important;width:100%!important;}
  .conversation-time-wrap{width:68px!important;min-width:68px!important;max-width:68px!important;}
  .conversation-top .time,.time{font-size:12px!important;line-height:19px!important;}
  .conversation-sub{height:22px!important;grid-template-columns:minmax(68px,max-content) minmax(0,1fr)!important;gap:7px!important;margin:0!important;align-items:center!important;}
  .visitor-code{font-size:18px!important;line-height:22px!important;max-width:100px!important;}
  .conversation-flags{height:22px!important;align-items:center!important;}
  .conversation-flag.assignment{font-size:13px!important;line-height:20px!important;}
  .conversation-claim{height:22px!important;padding:0 8px!important;font-size:12px!important;line-height:22px!important;}
  .last{font-size:13px!important;line-height:16px!important;margin-top:1px!important;}
  .conversation-human-row{margin-top:3px!important;}
  .conversation-human-row .conversation-flag.warn{height:21px!important;padding:0 8px!important;font-size:12px!important;}
}/* desktop-conversation-compact-v1 */
@media(min-width:761px){
  .panel-head{padding:14px 16px 12px!important;}
  .panel-title-row{min-height:30px!important;margin:0 0 7px!important;}
  .panel-title-row h2{font-size:19px!important;line-height:24px!important;}
  .link-danger{font-size:14px!important;line-height:24px!important;padding:0!important;}
  .conversation-tabs{margin:8px 0!important;gap:7px!important;}
  .conversation-tab{height:38px!important;min-height:38px!important;padding:0 10px!important;border-radius:9px!important;font-size:15px!important;line-height:38px!important;}
  .conversation-search-row{margin-top:7px!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:7px!important;}
  .conversation-search-row .search{height:38px!important;min-height:38px!important;padding:8px 11px!important;border-radius:9px!important;font-size:14px!important;line-height:20px!important;}
  .conversation-search-row .history-filter-btn{width:56px!important;min-width:56px!important;max-width:56px!important;height:38px!important;min-height:38px!important;border-radius:9px!important;font-size:13px!important;line-height:38px!important;}
  .conversation-filters{margin-top:8px!important;gap:6px!important;height:28px!important;min-height:28px!important;}
  .conversation-filter{height:28px!important;min-height:28px!important;padding:0 9px!important;font-size:12px!important;line-height:28px!important;}

  .conversation-list{gap:7px!important;padding:9px 12px 12px 9px!important;}
  .conversation{grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;min-height:84px!important;padding:9px!important;border-radius:11px!important;}
  .avatar-wrap,.visitor-device{width:38px!important;height:38px!important;min-width:38px!important;}
  .visitor-device{border-radius:8px!important;font-size:18px!important;}
  .conversation-top{height:19px!important;grid-template-columns:minmax(0,1fr) 70px!important;gap:6px!important;margin:0!important;align-items:center!important;}
  .conversation-top .visitor{font-size:14px!important;line-height:19px!important;max-width:none!important;width:100%!important;}
  .conversation-time-wrap{width:70px!important;min-width:70px!important;max-width:70px!important;}
  .conversation-top .time,.time{font-size:12px!important;line-height:19px!important;}
  .conversation-sub{height:22px!important;grid-template-columns:minmax(66px,max-content) minmax(0,1fr)!important;gap:7px!important;margin:0!important;align-items:center!important;}
  .visitor-code{font-size:17px!important;line-height:22px!important;max-width:96px!important;}
  .conversation-flags{height:22px!important;align-items:center!important;}
  .conversation-flag.assignment{font-size:12px!important;line-height:20px!important;}
  .conversation-claim{height:22px!important;padding:0 8px!important;font-size:12px!important;line-height:22px!important;}
  .last{font-size:13px!important;line-height:17px!important;margin-top:1px!important;}
  .conversation-human-row{margin-top:4px!important;}
  .conversation-human-row .conversation-flag.warn{height:21px!important;padding:0 8px!important;font-size:12px!important;}
}/* batch-conversation-layout-fix-v1 */
.conversation.is-batch{display:grid!important;grid-template-columns:28px 38px minmax(0,1fr)!important;column-gap:8px!important;align-items:start!important;width:100%!important;}
.conversation.is-batch .batch-check{grid-column:1!important;position:static!important;width:26px!important;height:26px!important;min-width:26px!important;margin:6px 0 0 0!important;align-self:start!important;}
.conversation.is-batch .avatar-wrap{grid-column:2!important;grid-row:1!important;width:38px!important;height:38px!important;min-width:38px!important;}
.conversation.is-batch .conversation-main{grid-column:3!important;grid-row:1!important;width:100%!important;min-width:0!important;overflow:hidden!important;}
.conversation.is-batch .conversation-top{grid-template-columns:minmax(0,1fr) 70px!important;width:100%!important;}
.conversation.is-batch .conversation-sub{grid-template-columns:minmax(66px,max-content) minmax(0,1fr)!important;width:100%!important;}
@media(max-width:760px){
  .conversation.is-batch{grid-template-columns:26px 38px minmax(0,1fr)!important;column-gap:8px!important;min-height:82px!important;padding:8px 9px!important;}
  .conversation.is-batch .batch-check{width:26px!important;height:26px!important;min-width:26px!important;margin-top:6px!important;}
  .conversation.is-batch .conversation-top{grid-template-columns:minmax(0,1fr) 68px!important;}
  .conversation.is-batch .conversation-sub{grid-template-columns:minmax(68px,max-content) minmax(0,1fr)!important;}
}/* batch-transfer-panel-fix-v1 */@media(max-width:760px){.conversation-transfer-panel.is-batch-transfer.is-open{display:block!important;left:10px!important;right:10px!important;top:auto!important;bottom:12px!important;width:auto!important;max-width:none!important;z-index:12050!important}.conversation-transfer-panel.is-batch-transfer .conversation-transfer-list{max-height:46vh!important;overflow:auto!important}.conversation-transfer-panel.is-batch-transfer .conversation-transfer-list button{min-height:46px!important;font-size:16px!important}}/* hide-settings-fab-v1 */.settings-fab{display:none!important}/* mobile-card-no-select-v1 */@media(max-width:760px){.conversation,.conversation *,.conversation-menu,.conversation-menu *,.conversation-transfer-panel,.conversation-transfer-panel *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}.conversation{-webkit-tap-highlight-color:transparent!important}}/* mobile-card-no-select-v2 */@media(max-width:760px){.conversation-list,.conversation-list *:not(input):not(textarea):not([contenteditable="true"]),.conversation-menu,.conversation-menu *,.conversation-transfer-panel,.conversation-transfer-panel *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none!important}.conversation-list{touch-action:pan-y!important}.conversation{touch-action:pan-y!important;-webkit-tap-highlight-color:transparent!important}}/* desktop-card-cursor-v1 */@media(min-width:761px){.conversation{cursor:default!important}.conversation-claim,.batch-check,.batch-toolbar button,.conversation-filter,.conversation-tab,.link-danger{cursor:pointer!important}}/* profile-cursor-v1 */@media(min-width:761px){.side-tab,.quick-item,.quick-text,.quick-action,.quick-more,.quick-menu,.quick-menu button{cursor:default!important}.quick-send{cursor:pointer!important}}/* conversation-card-no-select-all-v1 */.conversation-list .conversation,.conversation-list .conversation *:not(input):not(textarea):not([contenteditable="true"]){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none!important}.conversation-list .conversation{-webkit-tap-highlight-color:transparent!important}/* conversation-current-history-stable-v1 */
.conversation-tabs{height:38px!important;min-height:38px!important;align-items:stretch!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
.conversation-tab{box-sizing:border-box!important;height:38px!important;min-height:38px!important;padding:0 10px!important;line-height:36px!important;border-width:1px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.conversation-search-row{height:38px!important;min-height:38px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:7px!important;align-items:center!important;}
.conversation-search-row .search{height:38px!important;min-height:38px!important;line-height:20px!important;}
.conversation-search-row .history-filter-btn{visibility:visible!important;opacity:0!important;pointer-events:none!important;width:56px!important;min-width:56px!important;max-width:56px!important;height:38px!important;min-height:38px!important;line-height:36px!important;padding:0!important;}
.conversation-search-row .history-filter-btn.is-visible{opacity:1!important;pointer-events:auto!important;}
.conversation-filters{height:28px!important;min-height:28px!important;align-items:center!important;}
.conversation-filter{box-sizing:border-box!important;height:28px!important;min-height:28px!important;line-height:26px!important;padding-top:0!important;padding-bottom:0!important;border-width:1px!important;}
.conversation-list{grid-auto-rows:auto!important;align-content:start!important;}
.conversation{box-sizing:border-box!important;min-height:84px!important;border-width:1px!important;align-items:start!important;overflow:hidden!important;}
.conversation .avatar-wrap,.conversation .visitor-device{width:38px!important;height:38px!important;min-width:38px!important;}
.conversation-main{display:grid!important;grid-template-rows:19px 22px 17px auto auto!important;row-gap:1px!important;min-width:0!important;overflow:hidden!important;}
.conversation-top{height:19px!important;min-height:19px!important;margin:0!important;align-items:center!important;}
.conversation-sub{height:22px!important;min-height:22px!important;margin:0!important;align-items:center!important;}
.conversation-top .visitor,.conversation-top .visitor-name{line-height:19px!important;}
.conversation-time-wrap,.conversation-top .time,.time{line-height:19px!important;}
.visitor-code{line-height:22px!important;}
.conversation-flags,.conversation-claim,.conversation-flag.assignment{line-height:22px!important;}
.last{height:17px!important;min-height:17px!important;line-height:17px!important;margin:0!important;}
.conversation-human-row{min-height:21px!important;margin-top:4px!important;}
@media(max-width:760px){
  .conversation-tabs{height:38px!important;min-height:38px!important;}
  .conversation-tab{height:38px!important;min-height:38px!important;line-height:36px!important;}
  .conversation-search-row{height:38px!important;min-height:38px!important;grid-template-columns:minmax(0,1fr) 56px!important;}
  .conversation-search-row .search,.conversation-search-row .history-filter-btn{height:38px!important;min-height:38px!important;}
  .conversation{min-height:82px!important;}
}/* conversation-current-history-stable-v2 */
.sidebar{contain:strict!important;}
.panel-head{box-sizing:border-box!important;display:block!important;}
.panel-title-row{height:34px!important;min-height:34px!important;align-items:center!important;}
.conversation-tabs{box-sizing:border-box!important;height:38px!important;min-height:38px!important;margin:8px 0 7px!important;gap:7px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;}
.conversation-tab{box-sizing:border-box!important;height:38px!important;min-height:38px!important;padding:0 10px!important;border-width:1px!important;line-height:36px!important;font-size:15px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.conversation-search-row{box-sizing:border-box!important;height:38px!important;min-height:38px!important;margin-top:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:7px!important;align-items:center!important;}
.conversation-search-row .search,.conversation-search-row .history-filter-btn{box-sizing:border-box!important;height:38px!important;min-height:38px!important;line-height:20px!important;}
.conversation-search-row .history-filter-btn{visibility:visible!important;opacity:0!important;pointer-events:none!important;width:56px!important;min-width:56px!important;max-width:56px!important;padding:0!important;line-height:36px!important;}
.conversation-search-row .history-filter-btn.is-visible{opacity:1!important;pointer-events:auto!important;}
.conversation-filters{box-sizing:border-box!important;height:28px!important;min-height:28px!important;margin-top:8px!important;gap:6px!important;align-items:center!important;overflow:hidden!important;}
.conversation-filter{box-sizing:border-box!important;height:28px!important;min-height:28px!important;padding:0 9px!important;border-width:1px!important;line-height:26px!important;font-size:12px!important;}
.conversation-list{box-sizing:border-box!important;display:grid!important;grid-auto-rows:max-content!important;align-content:start!important;gap:7px!important;padding:9px 12px 12px 9px!important;overflow-y:auto!important;overflow-x:hidden!important;}
.conversation{box-sizing:border-box!important;width:100%!important;min-height:84px!important;padding:9px!important;border-width:1px!important;border-radius:11px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;overflow:hidden!important;}
.conversation .avatar-wrap,.conversation .visitor-device{width:38px!important;height:38px!important;min-width:38px!important;}
.conversation-main{box-sizing:border-box!important;display:grid!important;grid-template-rows:19px 22px 17px auto auto!important;row-gap:1px!important;min-width:0!important;overflow:hidden!important;}
.conversation-top{box-sizing:border-box!important;height:19px!important;min-height:19px!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;gap:6px!important;align-items:center!important;overflow:hidden!important;}
.conversation-top .visitor,.conversation-top .visitor-name{min-width:0!important;line-height:19px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.conversation-time-wrap{height:19px!important;min-height:19px!important;line-height:19px!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;white-space:nowrap!important;}
.conversation-top .time,.time{line-height:19px!important;font-size:12px!important;}
.conversation-sub{box-sizing:border-box!important;height:22px!important;min-height:22px!important;margin:0!important;display:grid!important;grid-template-columns:minmax(66px,max-content) minmax(0,1fr)!important;gap:7px!important;align-items:center!important;overflow:hidden!important;}
.visitor-code{line-height:22px!important;}
.conversation-flags{height:22px!important;min-height:22px!important;align-items:center!important;overflow:hidden!important;}
.conversation-flag.assignment,.conversation-claim{height:22px!important;line-height:22px!important;}
.last{box-sizing:border-box!important;height:17px!important;min-height:17px!important;margin:0!important;line-height:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.draft-preview{box-sizing:border-box!important;margin-top:4px!important;max-height:28px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.conversation-human-row{box-sizing:border-box!important;min-height:21px!important;margin:4px 0 0!important;justify-content:flex-start!important;}
.conversation-human-row .conversation-flag.warn{height:21px!important;line-height:19px!important;padding:0 8px!important;}
.mini-tags{margin-top:4px!important;max-height:24px!important;overflow:hidden!important;}
.history-load-more{box-sizing:border-box!important;margin:0!important;padding:8px 0 12px!important;min-height:64px!important;}
@media(max-width:760px){
  .sidebar,.panel-head,.conversation-list{width:100%!important;min-width:0!important;max-width:none!important;}
  .conversation-tabs,.conversation-tab{height:38px!important;min-height:38px!important;}
  .conversation-tab{line-height:36px!important;font-size:15px!important;}
  .conversation-search-row{height:38px!important;min-height:38px!important;grid-template-columns:minmax(0,1fr) 56px!important;}
  .conversation-search-row .search,.conversation-search-row .history-filter-btn{height:38px!important;min-height:38px!important;}
  .conversation{min-height:82px!important;}
}/* mobile-sidebar-native-menu-kill-v1 */@media(max-width:760px){.sidebar,.sidebar *:not(input):not(textarea):not([contenteditable="true"]){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-user-drag:none!important}.sidebar input,.sidebar textarea{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}}/* conversation-head-one-row-v1 */.sidebar .panel-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"tabs batch" "search search" "filters filters"!important;align-items:center!important;gap:7px!important}.sidebar .panel-title-row{display:contents!important}.sidebar .panel-title-row h2{display:none!important}.sidebar .conversation-tabs{grid-area:tabs!important;margin:0!important;width:100%!important}.sidebar #clearConversationsBtn{grid-area:batch!important;white-space:nowrap!important;text-decoration:none!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#e54b4b!important;padding:0 6px!important;min-height:38px!important;height:38px!important;line-height:36px!important}.sidebar #clearConversationsBtn:hover{background:#fff1f1!important;border-color:#ffc9c9!important}.sidebar .conversation-search-row{grid-area:search!important;margin-top:0!important}.sidebar .conversation-filters{grid-area:filters!important;margin-top:0!important}@media(max-width:760px){.sidebar .panel-head{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;padding-top:9px!important}.sidebar .conversation-tabs{gap:6px!important}.sidebar .conversation-tab{font-size:15px!important;padding:0 8px!important}.sidebar #clearConversationsBtn{font-size:14px!important;padding:0 4px!important;min-width:64px!important}}/* conversation-menu-active-v1 */.conversation.menu-active{border-color:rgba(23,105,224,.22)!important;background:#eef5ff!important;}@media(max-width:760px){.conversation.menu-active{border-color:#bfdbfe!important;background:#eef5ff!important;}}/* mobile-chat-menu-toolbar-fix-v1 */@media(max-width:760px){body.admin-mobile-chat-open #conversationActionMenu,body.admin-mobile-chat-open .conversation-menu.is-open{display:none!important;visibility:hidden!important;pointer-events:none!important}.chat-head{grid-template-columns:38px minmax(0,1fr) auto!important}.chat-head-actions{min-width:0!important;display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:nowrap!important}.chat-head-actions .ai-paused-pill{height:32px!important;padding:0 7px!important;font-size:12px!important;white-space:nowrap!important;flex:0 0 auto!important}.chat-head-actions .pause-ai-btn,.chat-head-actions .resume-ai-btn{height:32px!important;padding:0 7px!important;font-size:12px!important;white-space:nowrap!important;word-break:keep-all!important;flex:0 0 auto!important}.mobile-head-btn{height:32px!important;min-width:42px!important;padding:0 7px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;word-break:keep-all!important;flex:0 0 auto!important}}/* profile-head-layout-fix-v1 */.profile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:72px!important}.profile-head h2{margin:0!important;line-height:1.2!important;white-space:nowrap!important}.profile-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}.profile-actions .icon-btn{flex:0 0 38px!important}@media(max-width:760px){.profile .profile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:56px!important}.profile-head h2{font-size:17px!important}}/* unread badge above active mobile cards */.conversation,.avatar-wrap{overflow:visible}.conversation .unread{z-index:20;box-shadow:0 0 0 2px #fff}.conversation.active .unread,.conversation.menu-active .unread{display:inline-grid!important;opacity:1!important;visibility:visible!important}/* mobile-batch-toolbar-count-fit-v1 */.batch-count{white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;font-weight:700!important}@media(max-width:760px){.batch-toolbar{grid-template-columns:38px minmax(64px,.75fr) minmax(72px,auto) minmax(88px,auto)!important;gap:6px!important}.batch-toolbar .batch-count{min-width:0!important;font-size:12px!important;font-weight:600!important;white-space:nowrap!important;word-break:keep-all!important;overflow:hidden!important;text-overflow:clip!important}.batch-toolbar button{font-size:13px!important;padding:0 8px!important}.batch-toolbar .batch-select-all{padding:0 8px!important}.batch-toolbar .batch-run{padding:0 10px!important}}

/* style block 2 */
/* batch-controls-smaller-v2 */
      .batch-toolbar .batch-back{width:32px!important;height:32px!important;border-radius:9px!important;font-size:15px!important;padding:0!important}
      .conversation.is-batch{grid-template-columns:24px 38px minmax(0,1fr)!important;column-gap:8px!important}
      .conversation.is-batch .batch-check{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important;margin-top:8px!important;border-radius:6px!important;font-size:13px!important}
      @media(max-width:760px){
        .batch-toolbar{grid-template-columns:34px minmax(64px,.75fr) minmax(72px,auto) minmax(88px,auto)!important}
        .batch-toolbar .batch-count{font-size:13px!important;font-weight:700!important}
        .batch-toolbar button{font-size:14px!important}
        .conversation.is-batch{grid-template-columns:22px 38px minmax(0,1fr)!important;column-gap:8px!important}
        .conversation.is-batch .batch-check{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important;margin-top:8px!important;border-radius:6px!important;font-size:13px!important}
      }

/* style block 3 */
/* admin-polish-v1 */
      :root{--admin-bg:#eef3f8;--admin-panel:#fff;--admin-panel-soft:#f8fafc;--admin-line:#d9e2ee;--admin-line-soft:#edf2f7;--admin-ink:#162033;--admin-muted:#667085;--admin-blue:#1769e0;--admin-blue-soft:#edf5ff;--admin-red:#dc3545;--admin-green:#0f9f6e;--admin-shadow:0 12px 30px rgba(15,23,42,.08)}
      body{background:var(--admin-bg)!important;color:var(--admin-ink)!important}
      .app{grid-template-rows:60px minmax(0,1fr)!important;background:var(--admin-bg)!important}
      .topbar{height:60px!important;padding:0 18px!important;background:#111827!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
      .brand{min-width:0!important;font-size:16px!important}
      #adminBrandTitle{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
      .top-actions{gap:8px!important}
      .top-settings-btn,.top-actions .btn{height:34px!important;min-height:34px!important;border-radius:8px!important;padding:0 12px!important;font-size:13px!important}
      .top-actions .btn-light{border-color:rgba(255,255,255,.24)!important;background:rgba(255,255,255,.08)!important;color:#fff!important}
      .layout{grid-template-columns:332px minmax(430px,1fr) 348px!important;gap:1px!important;background:var(--admin-line)!important}
      .app.quick-independent .layout{grid-template-columns:332px minmax(430px,1fr) 690px!important}
      .sidebar,.chat,.profile{background:var(--admin-panel)!important}
      .sidebar{border-right:0!important}
      .sidebar .panel-head{padding:12px!important;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;border-bottom:1px solid var(--admin-line)!important}
      .conversation-tabs{padding:2px!important;border:1px solid var(--admin-line)!important;border-radius:10px!important;background:#f2f6fb!important}
      .conversation-tab{border:0!important;border-radius:8px!important;background:transparent!important;color:#5c6b80!important;font-weight:800!important}
      .conversation-tab.active{background:#fff!important;color:var(--admin-blue)!important;box-shadow:0 1px 4px rgba(15,23,42,.08)!important}
      .sidebar #clearConversationsBtn{min-width:66px!important;border-color:#f6c4c9!important;background:#fff!important;color:#c92f3e!important;font-size:13px!important;font-weight:800!important}
      .sidebar #clearConversationsBtn:hover{background:#fff4f5!important}
      .search,.input,.textarea{border-color:var(--admin-line)!important;background:#fff!important;border-radius:9px!important}
      .search:focus,.input:focus,.textarea:focus,.profile-edit-input:focus{border-color:#9fc5ff!important;box-shadow:0 0 0 3px rgba(23,105,224,.1)!important}
      .conversation-filters{height:auto!important;min-height:28px!important;display:flex!important;flex-wrap:nowrap!important}
      .conversation-filter{border-color:#d8e2ee!important;background:#fff!important;color:#5e6b7c!important;font-weight:800!important}
      .conversation-filter.active{background:#eaf3ff!important;border-color:#9fc5ff!important;color:var(--admin-blue)!important}
      .conversation-list{background:#f3f6fa!important;padding:10px!important;gap:8px!important}
      .conversation{border-color:#e6edf5!important;background:#fff!important;border-radius:10px!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease!important}
      .conversation:hover,.conversation.active,.conversation.menu-active{border-color:#9fc5ff!important;background:#f8fbff!important;box-shadow:0 6px 16px rgba(23,105,224,.09)!important}
      .visitor-device{background:#94a3b8!important;color:#fff!important;font-size:16px!important;font-weight:900!important;letter-spacing:0!important}
      .visitor-device.online{background:var(--admin-blue)!important}
      .visitor-name{font-weight:900!important;color:#172033!important}
      .visitor-code{font-size:16px!important;color:#0f172a!important}
      .conversation-time-wrap,.time{color:#8a96a8!important}
      .conversation-flag.assignment{border:1px solid #dce8f6!important;border-radius:999px!important;background:#f7faff!important;color:#48617f!important;padding:0 7px!important;font-size:12px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
      .conversation-claim{border:1px solid #b7d4ff!important;border-radius:999px!important;background:#fff!important;color:var(--admin-blue)!important;font-weight:900!important}
      .conversation-human-row .conversation-flag.warn{border-color:#fed7aa!important;background:#fff7ed!important;color:#c2410c!important}
      .tag{border-color:#d8e6f6!important;background:#f7fbff!important;color:#31506f!important;font-weight:800!important}
      .last{color:#64748b!important}
      .unread{right:-6px!important;top:-7px!important;background:#e5484d!important;box-shadow:0 0 0 2px #fff!important}
      .chat-head{height:62px!important;min-height:62px!important;padding:0 18px!important;background:#fff!important;border-bottom:1px solid var(--admin-line)!important}
      .chat-title{min-width:0!important}
      .chat-title strong{font-size:17px!important;line-height:22px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
      .chat-title span{font-size:12px!important;color:#7a8798!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
      .messages{background:#f6f8fb!important;padding:18px!important;gap:9px!important}
      .msg{border-radius:12px!important;line-height:1.55!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important}
      .msg.visitor{border-color:#e3ebf5!important;background:#fff!important}
      .msg.agent{background:#2278df!important}
      .composer{padding:12px!important;background:#fff!important}
      .compose-row{grid-template-rows:minmax(78px,auto) 38px!important;gap:8px 10px!important}
      .compose-input{min-height:78px!important;max-height:128px!important;border-radius:12px!important;padding:12px 13px 40px!important}
      .send{height:38px!important;border-radius:9px!important;padding:0 18px!important}
      .compose-tool{width:30px!important;height:30px!important;border-radius:8px!important}
      .profile-head{min-height:62px!important;padding:0 14px!important;background:#fff!important;border-bottom:1px solid var(--admin-line)!important}
      .profile-head h2{font-size:17px!important}
      .icon-btn{width:34px!important;height:34px!important;border-radius:9px!important}
      .side-tabs{background:#fbfdff!important}
      .side-tab{height:42px!important;padding:0 8px!important;font-size:13px!important}
      .side-tab.active{background:#fff!important;color:var(--admin-blue)!important}
      .quick-list{background:#fff!important;padding:4px 0 46px!important}
      .quick-item{min-height:44px!important;padding:9px 12px!important;border-bottom:1px solid var(--admin-line-soft)!important}
      .quick-item:hover{background:#f4f8fd!important}
      .quick-text{font-size:13px!important;line-height:1.45!important;color:#24344d!important}
      .quick-more{right:12px!important;bottom:10px!important;width:34px!important;height:34px!important;padding:0!important;border:1px solid var(--admin-line)!important;background:#fff!important;box-shadow:0 4px 12px rgba(15,23,42,.08)!important}
      .profile-body{padding:14px!important;background:#f8fafc!important}
      .card{border-color:#e1e9f2!important;border-radius:10px!important;padding:14px!important;margin-bottom:12px!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important}
      .card h3{font-size:14px!important;margin-bottom:10px!important}
      .profile-detail-body.active{display:grid!important;gap:12px!important;align-content:start!important}
      .profile-detail-body .card{margin-bottom:0!important}
      .profile-primary-card{border-color:#cfe0ff!important;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)!important}
      .profile-primary-card h3,.profile-env-card h3,.profile-tags-card h3,.profile-note-card h3{display:flex!important;align-items:center!important;justify-content:space-between!important;color:#172033!important;font-weight:900!important}
      .profile-primary-card .kv{gap:12px!important}
      .profile-primary-card .profile-edit-line{grid-template-columns:minmax(0,1fr) 30px!important}
      .profile-primary-card .profile-edit-input{min-height:34px!important;border-color:#e4edf7!important;background:#fff!important;color:#172033!important;font-weight:800!important}
      .profile-primary-card #profileSource{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#475569!important}
      .profile-env-card .kv{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
      .profile-env-card .kv>div{min-width:0!important;border:1px solid #edf2f7!important;border-radius:9px!important;background:#fbfdff!important;padding:9px!important}
      .profile-env-card .kv span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#475569!important}
      .profile-env-card .switch-row{grid-column:1/-1!important;display:flex!important}
      .profile-tags-card .field,.profile-note-card .field{margin-bottom:10px!important}
      .profile-tags-card .btn,.profile-note-card .btn{width:100%!important;min-height:38px!important}
      .ai-status-pill{display:inline-flex;align-items:center;gap:6px;height:34px;border:1px solid #d8e2ee;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:900;padding:0 10px;white-space:nowrap}
      .ai-status-pill:before,.conversation-ai-status:before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor;box-shadow:0 0 0 3px rgba(100,116,139,.12)}
      .ai-status-pill.is-ai,.conversation-ai-status.is-ai{border-color:#b7d4ff;background:#eff6ff;color:#175cd3}
      .ai-status-pill.is-human,.conversation-ai-status.is-human{border-color:#fed7aa;background:#fff7ed;color:#c2410c}
      .ai-status-pill.is-request,.conversation-ai-status.is-request{border-color:#fecaca;background:#fff1f2;color:#dc2626}
      .ai-status-pill.is-standby,.conversation-ai-status.is-standby{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}
      .ai-status-pill.is-off,.ai-status-pill.is-history,.conversation-ai-status.is-off{border-color:#e2e8f0;background:#f8fafc;color:#64748b}
      .conversation-ai-status{display:inline-flex!important;align-items:center!important;gap:6px!important;width:max-content!important;max-width:100%!important;margin-top:7px!important;border:1px solid #d8e2ee!important;border-radius:999px!important;padding:4px 8px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important}
      .conversation.is-ai-taking{border-color:#b7d4ff!important;background:#f7fbff!important}
      .conversation.is-human-request{border-color:#fed7aa!important;background:#fffaf4!important}
      .chat-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
      .kv{gap:9px!important;font-size:13px!important}
      .kv strong{font-size:12px!important;color:#475569!important}
      .settings-modal{background:rgba(15,23,42,.5)!important;padding:18px!important}
      .settings-box{width:min(920px,calc(100vw - 28px))!important;max-height:calc(100vh - 36px)!important;border-radius:14px!important;box-shadow:0 24px 72px rgba(15,23,42,.28)!important}
      .settings-box h3{height:58px!important;display:flex!important;align-items:center!important;padding:0 22px!important;border-bottom:1px solid var(--admin-line)!important;font-size:18px!important}
      .settings-layout{grid-template-columns:174px minmax(0,1fr)!important;background:#fff!important}
      .settings-nav{padding:10px!important;background:#f7f9fc!important;border-right:1px solid var(--admin-line)!important}
      .settings-tab{min-height:38px!important;border-radius:9px!important;padding:0 11px!important;text-align:left!important;font-size:13px!important;color:#536176!important}
      .settings-tab.active{background:#fff!important;color:var(--admin-blue)!important;box-shadow:0 1px 4px rgba(15,23,42,.08)!important}
      .settings-pane{padding:16px 18px!important;background:#fff!important}
      .settings-pane .field{margin-bottom:14px!important}
      .settings-pane label{font-size:13px!important;color:#344054!important}
      .rich-toolbar{border-color:#dce6f2!important;border-radius:9px 9px 0 0!important;background:#f8fafc!important}
      .rich-editor{border-color:#dce6f2!important;border-radius:0 0 9px 9px!important}
      .settings-actions{height:58px!important;padding:10px 16px!important;border-top:1px solid var(--admin-line)!important;background:#fbfdff!important}
      .btn{border-radius:9px!important;font-size:14px!important}
      .btn-primary{background:var(--admin-blue)!important}
      .btn-light{border-color:var(--admin-line)!important;background:#fff!important}
      .btn-danger{background:var(--admin-red)!important}
      .ai-suggest{border-color:#b7d4ff!important;border-radius:12px!important;background:#f7fbff!important}
      .settings-pane-ai.active{display:grid!important;gap:14px!important;background:#f8fafc!important}
      .settings-group{border:1px solid var(--admin-line)!important;border-radius:10px!important;background:#fff!important;padding:14px!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important}
      .settings-group h4{margin:0 0 12px!important;font-size:14px!important;line-height:20px!important;color:#172033!important;font-weight:900!important}
      .settings-group .field{margin-bottom:12px!important}
      .settings-group .field:last-child{margin-bottom:0!important}
      .settings-field-hint{margin-top:8px;color:#64748b;font-size:13px;line-height:1.5}
      #settingAiWelcomeText:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}
      .settings-group-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
      .ai-quick-question-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:10px!important}
      .ai-quick-question-manager{grid-column:1/-1;display:grid;gap:10px}.ai-quick-question-list{display:grid;gap:9px}.ai-quick-question-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center}.ai-quick-question-row .input{min-width:0}.ai-quick-question-remove,.ai-quick-question-add{min-height:44px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center}.ai-quick-question-remove{width:44px;padding:0}.ai-quick-question-remove svg{width:19px;height:19px}.ai-quick-question-remove:hover{border-color:#fecaca;background:#fff5f5;color:#d92d20}.ai-quick-question-add{justify-self:start;gap:7px;padding:0 14px;color:#1769e0;font-weight:800}.ai-quick-question-add svg{width:18px;height:18px}.ai-quick-question-add:hover{border-color:#9fc5ff;background:#eef5ff}.ai-quick-question-add:disabled{opacity:.5;cursor:not-allowed}
      .ai-knowledge-grid .textarea{min-height:112px!important}
      .ai-knowledge-extra{margin-top:12px!important}
      @media(max-width:1080px){
        .layout{grid-template-columns:320px minmax(380px,1fr) 320px!important}
        .app.quick-independent .layout{grid-template-columns:320px minmax(380px,1fr) 640px!important}
      }
      @media(max-width:760px){
        .app{grid-template-rows:50px minmax(0,1fr)!important}
        .topbar{height:50px!important;padding:0 12px!important}
        .brand{font-size:15px!important}
        .top-settings-btn,.top-actions .btn{height:31px!important;min-height:31px!important;font-size:13px!important;padding:0 10px!important}
        .layout{display:block!important;background:#fff!important}
        .sidebar,.chat,.profile{position:absolute!important;inset:50px 0 0!important;width:100%!important;height:auto!important;min-width:0!important;max-width:none!important}
        .sidebar{z-index:1!important}
        .chat{z-index:2!important;transform:translateX(100%)!important;transition:transform .18s ease!important}
        .app.mobile-chat .chat{transform:translateX(0)!important}
        .profile{z-index:3!important;top:auto!important;height:min(76vh,620px)!important;border-radius:16px 16px 0 0!important;box-shadow:0 -18px 50px rgba(15,23,42,.22)!important;transform:translateY(110%)!important;transition:transform .18s ease!important}
        .app.mobile-profile-open .profile{transform:translateY(0)!important}
        .sidebar .panel-head{padding:9px 10px!important}
        .conversation-list{padding:8px 10px 12px!important}
        .conversation{border-radius:10px!important}
        .chat-head{height:52px!important;min-height:52px!important;padding:0 10px!important}
        .messages{padding:12px!important}
        .composer{padding:10px!important}
        .compose-row{grid-template-rows:minmax(72px,auto) 38px!important}
        .settings-modal{padding:0!important;align-items:end!important;place-items:end center!important}
        .settings-box{width:100%!important;max-height:92vh!important;border-radius:16px 16px 0 0!important}
        .settings-layout{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
        .settings-nav{display:flex!important;overflow-x:auto!important;gap:6px!important;border-right:0!important;border-bottom:1px solid var(--admin-line)!important;padding:8px 10px!important}
        .settings-tab{flex:0 0 auto!important;min-height:34px!important;white-space:nowrap!important}
        .settings-pane{padding:14px!important}
        .settings-group{padding:12px!important}
        .settings-group-grid,.ai-quick-question-grid{grid-template-columns:1fr!important}
        .settings-actions{height:56px!important}
        .profile-env-card .kv{grid-template-columns:1fr!important}
        .ai-status-pill{height:32px!important;padding:0 8px!important;font-size:12px!important}
      }


/* quick-reply-search-v1 */
.quick-panel{grid-template-rows:auto auto minmax(0,1fr)!important}.quick-search-wrap{position:relative;padding:10px 12px 8px;border-bottom:1px solid var(--admin-line-soft,#edf2f7);background:#fff}.quick-search-input{width:100%;height:34px;border:1px solid #d9e2ee;border-radius:9px;background:#f8fafc;padding:0 34px 0 11px;color:#172033;outline:none;font-size:13px}.quick-search-input:focus{border-color:#9fc5ff;background:#fff;box-shadow:0 0 0 3px rgba(23,105,224,.1)}.quick-search-clear{position:absolute;right:18px;top:15px;width:24px;height:24px;border:0;border-radius:7px;background:transparent;color:#94a3b8;font-weight:900;visibility:hidden;cursor:pointer}.quick-search-clear:hover{background:#eef5ff;color:#1769e0}.quick-row-head{display:flex;align-items:center;gap:7px;min-width:0}.quick-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900;color:#172033}.quick-summary{display:block;margin-top:3px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:12px;line-height:1.35}.quick-kind{flex:0 0 auto;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#175cd3;padding:2px 6px;font-size:11px;font-weight:900;line-height:1}.quick-item-image .quick-kind{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.quick-item-rich .quick-kind{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.quick-empty-state{display:grid;place-items:center;gap:5px;padding:38px 18px;color:#667085;text-align:center}.quick-empty-state strong{color:#172033;font-size:14px}.quick-empty-state span{font-size:12px}@media(max-width:760px){.quick-search-wrap{padding:9px 12px}.profile .quick-list{padding-top:6px}.profile .quick-text{white-space:normal!important}.quick-summary{white-space:nowrap!important}}


/* quick-reply-single-line-v1 */
.quick-item{min-height:48px!important}.quick-text{display:block!important;min-width:0!important}.quick-row-head{min-width:0!important}.quick-summary{display:none!important}.quick-label{font-size:14px!important;line-height:1.35!important}.quick-kind{margin-right:2px!important}@media(max-width:760px){.profile .quick-text{white-space:nowrap!important}.quick-label{font-size:15px!important}}


/* quick-reply-normal-weight-v1 */
.quick-label{font-weight:400!important}.quick-text{font-weight:400!important}


/* conversation-tabs-contained-v1 */
.sidebar .conversation-tabs{box-sizing:border-box!important;height:38px!important;min-height:38px!important;padding:2px!important;overflow:hidden!important;border-radius:10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:2px!important;align-items:stretch!important}.sidebar .conversation-tab{box-sizing:border-box!important;height:32px!important;min-height:32px!important;line-height:30px!important;padding:0 10px!important;border-radius:8px!important;box-shadow:none!important;display:block!important;min-width:0!important}.sidebar .conversation-tab.active{box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
@media(max-width:760px){.sidebar .conversation-tabs{height:36px!important;min-height:36px!important}.sidebar .conversation-tab{height:30px!important;min-height:30px!important;line-height:28px!important;font-size:15px!important}}


/* conversation-active-clear-v1 */
.sidebar .conversation.active,.sidebar .conversation.menu-active{border-color:#5b9cff!important;background:#f2f7ff!important;box-shadow:inset 4px 0 0 #1769e0,0 8px 20px rgba(23,105,224,.14)!important}
.sidebar .conversation.active .visitor-device,.sidebar .conversation.menu-active .visitor-device{box-shadow:0 0 0 3px rgba(23,105,224,.14)!important}
.sidebar .conversation.active .visitor,.sidebar .conversation.menu-active .visitor,.sidebar .conversation.active .visitor-code,.sidebar .conversation.menu-active .visitor-code{color:#071a38!important}
@media(max-width:760px){.sidebar .conversation.active,.sidebar .conversation.menu-active{box-shadow:inset 4px 0 0 #1769e0,0 6px 16px rgba(23,105,224,.13)!important}}


/* conversation-controls-tune-v1 */
.sidebar .panel-head{gap:8px!important}
.sidebar #clearConversationsBtn{min-width:74px!important;height:36px!important;min-height:36px!important;line-height:34px!important;border-color:#f3c6cb!important;border-radius:10px!important;background:#fff!important;color:#cf3441!important;font-size:13px!important;font-weight:800!important;padding:0 10px!important}
.sidebar #clearConversationsBtn:hover{background:#fff5f6!important;border-color:#ef9aa4!important;color:#b91c1c!important}
.sidebar .conversation-search-row{height:40px!important;min-height:40px!important}
.sidebar .conversation-search-row .search{height:40px!important;min-height:40px!important;border-radius:11px!important}
.sidebar .conversation-filters{height:30px!important;min-height:30px!important;gap:7px!important;overflow:hidden!important}

/* composer-popup-active-v1 */
.compose-tool.is-active{color:var(--blue)!important;background:#eef5ff!important}

/* emoji-panel-offset-v4 */
.emoji-panel{position:absolute!important;left:0!important;right:auto!important;bottom:50px!important;width:min(368px,calc(100vw - 64px))!important}
@media(max-width:760px){.emoji-panel{position:absolute!important;left:0!important;right:auto!important;bottom:50px!important;width:min(368px,calc(100vw - 32px))!important}}
.sidebar .conversation-filter{height:30px!important;min-height:30px!important;line-height:28px!important;padding:0 12px!important;border-color:#d9e5f2!important;border-radius:999px!important;background:#fff!important;color:#516172!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.sidebar .conversation-filter:hover{border-color:#b7d4ff!important;background:#f6faff!important;color:#175cd3!important}
.sidebar .conversation-filter.active{border-color:#8fc0ff!important;background:#eaf3ff!important;color:#1769e0!important;font-weight:800!important;box-shadow:inset 0 0 0 1px rgba(23,105,224,.05)!important}
.sidebar .conversation-filter[data-conversation-filter="human"].active{border-color:#fed7aa!important;background:#fff7ed!important;color:#c2410c!important}
.sidebar .conversation-filter[data-conversation-filter="unread"].active{border-color:#fecaca!important;background:#fff1f2!important;color:#dc2626!important}
@media(max-width:760px){.sidebar #clearConversationsBtn{min-width:68px!important;padding:0 8px!important;font-size:13px!important}.sidebar .conversation-filter{height:29px!important;min-height:29px!important;line-height:27px!important;padding:0 10px!important;font-size:13px!important}.sidebar .conversation-filters{height:29px!important;min-height:29px!important;gap:6px!important}}


/* conversation-filter-no-jump-v1 */
.sidebar .conversation-filter,.sidebar .conversation-filter:hover,.sidebar .conversation-filter.active{font-weight:700!important;transition:background-color .14s ease,border-color .14s ease,color .14s ease!important}


/* mobile-conversation-filter-tune-v1 */
@media(max-width:760px){
  .sidebar .conversation-filters{height:28px!important;min-height:28px!important;gap:5px!important;overflow:hidden!important}
  .sidebar .conversation-filter,.sidebar .conversation-filter:hover,.sidebar .conversation-filter.active{height:28px!important;min-height:28px!important;line-height:26px!important;padding:0 9px!important;font-size:12px!important;font-weight:700!important;border-width:1px!important;letter-spacing:0!important}
  .sidebar .conversation-filter.active{background:#eaf3ff!important;border-color:#8fc0ff!important;color:#1769e0!important;box-shadow:none!important}
}

/* knowledge-management-v1 */
.settings-pane-knowledge{padding:0!important;background:#f8fafc!important}
.knowledge-entry-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}
.knowledge-entry-card h4{margin:0 0 7px!important}
.knowledge-entry-card p{margin:0!important;color:#667085!important;line-height:1.6!important}
.knowledge-shell{min-height:100%;padding:24px 28px 84px;color:#172033}
.knowledge-titlebar{display:grid;grid-template-columns:40px 52px minmax(0,1fr);align-items:center;gap:14px;margin-bottom:18px}
.knowledge-back{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:#475467;display:grid;place-items:center;cursor:pointer}
.knowledge-back:hover{background:#edf3fb;color:#1769e0}
.knowledge-back svg,.knowledge-brand-icon svg,.knowledge-toolbar svg,.knowledge-more svg,.knowledge-dialog-head svg,.knowledge-empty svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.knowledge-brand-icon{width:52px;height:52px;border-radius:12px;background:#eaf2ff;color:#1769e0;display:grid;place-items:center}
.knowledge-brand-icon svg{width:26px;height:26px}
.knowledge-titlecopy h3{margin:0!important;padding:0!important;border:0!important;height:auto!important;font-size:22px!important;line-height:1.25!important}
.knowledge-titlecopy p{margin:5px 0 0;color:#667085;font-size:14px}
.knowledge-tabs{display:inline-flex;align-items:center;padding:4px;border-radius:9px;background:#edf2f8;margin-bottom:18px}
.knowledge-tabs button{height:38px;border:0;border-radius:7px;background:transparent;color:#475467;padding:0 15px;font-weight:800;cursor:pointer}
.knowledge-tabs button.active{background:#fff;color:#172033;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.knowledge-tabs span{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:#eaf2ff;color:#1769e0;font-size:11px;margin-left:4px}
.knowledge-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) 120px 120px 96px 120px;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0;margin-bottom:18px}
.knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:minmax(220px,1fr) 120px minmax(20px,1fr) 130px}
.knowledge-toolbar-fill{display:block;min-width:0}
.knowledge-search{height:44px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 13px;color:#667085}
.knowledge-search:focus-within{border-color:#82b6ff;box-shadow:0 0 0 3px rgba(23,105,224,.1)}
.knowledge-search svg{width:19px;height:19px;flex:0 0 auto}
.knowledge-search input{min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:#172033}
.knowledge-toolbar select{height:44px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;color:#344054;padding:0 35px 0 12px;outline:0}
.knowledge-toolbar .btn{height:44px;min-height:44px;min-width:0;padding:0 10px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border-radius:9px}
.knowledge-source-placeholder{display:block;min-width:0}
.knowledge-toolbar .btn svg{width:18px;height:18px}
.knowledge-table-wrap{min-height:430px;border:1px solid #e1e8f0;border-radius:12px;background:#fff;overflow:visible}
.knowledge-table-head,.knowledge-table-row{display:grid;align-items:center;column-gap:16px;padding:0 18px}
.knowledge-table-head.faq,.knowledge-table-row.faq{grid-template-columns:minmax(320px,1fr) 110px 82px 64px 44px}
.knowledge-table-head.asset,.knowledge-table-row.asset{grid-template-columns:minmax(280px,1fr) minmax(120px,180px) 82px 100px 44px}
.knowledge-table-head{min-height:52px;border-bottom:1px solid #e6ebf2;background:#f5f8fc;color:#475467;font-size:13px;font-weight:800}
.knowledge-table-row{position:relative;min-height:86px;border-bottom:1px solid #eef2f6;color:#344054}
.knowledge-table-row:last-child{border-bottom:0}
.knowledge-table-row:hover{background:#fbfdff}
.knowledge-table-row>div:first-child{min-width:0;padding:15px 0}
.knowledge-table-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:15px}
.knowledge-table-row p{margin:6px 0 0;color:#667085;font-size:13px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.knowledge-table-row a{color:#1769e0;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.knowledge-source{display:inline-flex;border-radius:999px;background:#eef3f8;color:#475467;padding:5px 9px;font-style:normal;font-size:12px;white-space:nowrap}
.knowledge-status{display:inline-flex;border-radius:999px;background:#dcfce7;color:#15803d;padding:5px 10px;font-size:12px;font-weight:800}
.knowledge-status.disabled{background:#f2f4f7;color:#667085}
.knowledge-row-actions{position:relative;display:grid;place-items:center}
.knowledge-more{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#667085;display:grid;place-items:center;cursor:pointer}
.knowledge-more:hover{background:#eef4fb;color:#1769e0}
.knowledge-action-menu{position:absolute;right:0;top:34px;z-index:80;width:120px;border:1px solid #e1e7ef;border-radius:9px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.16);padding:5px;display:none}
.knowledge-action-menu.is-open{display:block}
.knowledge-action-menu button{width:100%;height:36px;border:0;border-radius:6px;background:#fff;color:#344054;text-align:left;padding:0 12px;cursor:pointer}
.knowledge-action-menu button:hover{background:#f0f6ff;color:#1769e0}
.knowledge-action-menu button.danger{color:#dc2626}
.knowledge-action-menu button.danger:hover{background:#fff1f2}
.knowledge-empty{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#98a2b3;text-align:center;padding:40px}
.knowledge-empty svg{width:42px;height:42px;margin-bottom:14px;color:#b7c0cc}
.knowledge-empty strong{color:#475467;font-size:16px}
.knowledge-empty span{margin-top:7px;font-size:13px}
.knowledge-modal{position:fixed;inset:0;z-index:14000;display:none;place-items:center;padding:20px;background:rgba(15,23,42,.46)}
.knowledge-modal.is-open{display:grid}
.knowledge-dialog{width:min(680px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto;border-radius:12px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.28);padding:22px}
.knowledge-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.knowledge-dialog-head h3{margin:0!important;padding:0!important;border:0!important;height:auto!important;font-size:20px!important}
.knowledge-dialog-head button{width:36px;height:36px;border:0;border-radius:8px;background:#f5f7fa;color:#667085;display:grid;place-items:center;cursor:pointer}
#knowledgeEditorFields{display:grid;gap:16px}
#knowledgeEditorFields label{display:grid;gap:7px;color:#344054;font-weight:800}
#knowledgeEditorFields .textarea{min-height:150px;line-height:1.65}
#knowledgeEditorFields .knowledge-editor-large{min-height:260px}
.knowledge-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #eef2f6}
.knowledge-import-dialog{width:min(620px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto;border-radius:12px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.3)}
.knowledge-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 20px;border-bottom:1px solid #e8edf3}
.knowledge-import-head h3{margin:0!important;padding:0!important;border:0!important;height:auto!important;font-size:22px!important;line-height:1.25!important}
.knowledge-import-head p{margin:8px 0 0;color:#667085;line-height:1.55}
.knowledge-import-head>button{width:36px;height:36px;flex:0 0 auto;border:0;border-radius:8px;background:transparent;color:#667085;display:grid;place-items:center;cursor:pointer}
.knowledge-import-head>button:hover{background:#f2f4f7;color:#172033}
.knowledge-import-head svg,.knowledge-dropzone svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.knowledge-import-body{padding:26px}
.knowledge-dropzone{min-height:170px;border:2px dashed #d8e2ef;border-radius:12px;background:#fbfdff;color:#475467;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;cursor:pointer;transition:border-color .16s,background .16s}
.knowledge-dropzone:hover,.knowledge-dropzone:focus,.knowledge-dropzone.is-dragging{outline:0;border-color:#6da8ff;background:#f2f7ff}
.knowledge-dropzone-icon{width:46px;height:46px;border-radius:12px;background:#eaf2ff;color:#1769e0;display:grid;place-items:center}
.knowledge-dropzone strong{color:#344054;font-size:16px}
.knowledge-dropzone>span:last-child{color:#667085;font-size:13px}
.knowledge-selected-file{margin-top:12px;border:1px solid #dce5f0;border-radius:9px;background:#f8fafc;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.knowledge-selected-file strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344054}
.knowledge-selected-file span{flex:0 0 auto;color:#667085;font-size:13px}
.knowledge-page-label{display:grid;gap:10px;color:#344054;font-weight:800}
.knowledge-page-urls{min-height:150px!important;line-height:1.65!important;resize:vertical}
.knowledge-import-tip{margin:10px 0 0;color:#667085;font-size:13px}
.knowledge-import-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid #e8edf3}
.knowledge-import-actions .btn{min-width:76px;min-height:42px;border-radius:9px}
.knowledge-import-actions .btn:disabled{opacity:.48;cursor:not-allowed}
.knowledge-toast{position:fixed;left:50%;top:24px;z-index:15000;transform:translate(-50%,-12px);opacity:0;pointer-events:none;border-radius:9px;background:#101828;color:#fff;padding:11px 18px;font-weight:800;box-shadow:0 14px 36px rgba(15,23,42,.24);transition:.16s}
.knowledge-toast.error{background:#b42318}
.knowledge-toast.is-open{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){
  .knowledge-toolbar{grid-template-columns:minmax(200px,1fr) 135px 135px;}
  .knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:minmax(200px,1fr) 135px minmax(12px,1fr) 130px}
  .knowledge-source-placeholder{display:none}
  .knowledge-import,.knowledge-add{width:100%}
  .knowledge-table-head.faq,.knowledge-table-row.faq{grid-template-columns:minmax(240px,1fr) 95px 72px 50px 40px}
  .knowledge-table-head.asset,.knowledge-table-row.asset{grid-template-columns:minmax(230px,1fr) 120px 72px 90px 40px}
}
@media(max-width:760px){
  .knowledge-entry-card{align-items:flex-start!important;flex-direction:column!important}
  .knowledge-shell{padding:18px 14px 84px}
  .knowledge-titlebar{grid-template-columns:36px 44px minmax(0,1fr);gap:10px}
  .knowledge-back{width:36px;height:36px}
  .knowledge-brand-icon{width:44px;height:44px}
  .knowledge-titlecopy h3{font-size:18px!important}
  .knowledge-titlecopy p{font-size:12px}
  .knowledge-tabs{display:flex;width:100%}
  .knowledge-tabs button{flex:1;padding:0 8px}
  .knowledge-toolbar{grid-template-columns:1fr 1fr;gap:9px}
  .knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:1fr 1fr}
  .knowledge-search{grid-column:1/3}
  .knowledge-toolbar-doc .knowledge-toolbar-fill,.knowledge-toolbar-page .knowledge-toolbar-fill{display:none}
  .knowledge-toolbar-doc .knowledge-add,.knowledge-toolbar-page .knowledge-add{grid-column:2}
  .knowledge-toolbar select{width:100%}
  .knowledge-toolbar-spacer{display:none}
  .knowledge-import,.knowledge-add{width:100%;padding:0 8px!important}
  .knowledge-table-head{display:none}
  .knowledge-table-wrap{border:0;background:transparent;min-height:320px}
  .knowledge-table-row.faq,.knowledge-table-row.asset{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px;margin-bottom:10px;border:1px solid #e1e8f0;border-radius:10px;background:#fff;padding:12px}
  .knowledge-table-row>div:first-child{grid-column:1/4;padding:0}
  .knowledge-table-row>span,.knowledge-table-row>a{font-size:12px}
  .knowledge-table-row .knowledge-row-actions{grid-column:3;grid-row:2}
  .knowledge-empty{min-height:320px;border:1px solid #e1e8f0;border-radius:10px;background:#fff}
  .knowledge-import-modal{padding:12px}
  .knowledge-import-dialog{width:100%;max-height:calc(100vh - 24px)}
  .knowledge-import-head{padding:20px 18px 16px}
  .knowledge-import-body{padding:20px 18px}
  .knowledge-import-actions{padding:14px 18px}
}

.ai-learning-panel{padding:0!important;overflow:hidden!important;background:#f8fbff!important}
.ai-learning-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 20px;background:#f5f9ff;border-bottom:1px solid #e6eef8}
.ai-learning-icon,.ai-learning-media-icon,.ai-faq-entry-icon{width:38px;height:38px;border-radius:12px;background:#e8f1ff;color:#1769e0;display:grid;place-items:center;flex:0 0 auto}
.ai-learning-icon svg,.ai-learning-media-icon svg,.ai-faq-entry-icon svg,.ai-learn-icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ai-learning-head h4{margin:0!important;font-size:18px!important;line-height:1.2!important}
.ai-learning-head p,.ai-learning-media-row p,.ai-learned-title span,.ai-faq-entry p{margin:4px 0 0;color:#667085;line-height:1.6}
.ai-learning-switch-wrap{display:flex;align-items:center;gap:10px;color:#667085;font-weight:800}
.ai-learning-media-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 20px;background:#fff9e8;border-bottom:1px solid #f2ead5}
.ai-learning-media-icon{background:#fff1c9;color:#d97706}
.ai-learned-title{display:flex;align-items:baseline;gap:10px;padding:18px 20px 10px}
.ai-learned-title h5{margin:0;font-size:17px;font-weight:900}
.ai-learn-card-list{display:grid;gap:12px;padding:0 20px 16px}
.ai-learn-card{border:1px solid #e1eaf4;border-radius:12px;background:#fff;padding:14px 16px}
.ai-learn-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.ai-learn-card h6{margin:0;font-size:16px;line-height:1.4;font-weight:900}
.ai-learn-card h6 span,.ai-learn-badge{display:inline-flex;align-items:center;border-radius:999px;background:#eaf2ff;color:#1769e0;font-size:12px;font-weight:900;padding:3px 8px;margin-left:6px;vertical-align:2px}
.ai-learn-card p{margin:0;color:#344054;line-height:1.75;white-space:normal;word-break:break-word}
.ai-learn-icon-btn{width:38px;height:38px;border:1px solid transparent;border-radius:10px;background:#fff;color:#172033;display:grid;place-items:center;cursor:pointer;flex:0 0 38px}
.ai-learn-icon-btn:hover{border-color:#bfd6ff;background:#f2f7ff;color:#1769e0}
.ai-faq-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 20px 16px;padding:14px 16px;border:1px solid #e1eaf4;border-radius:12px;background:#fff}
.ai-faq-entry-main{display:flex;align-items:center;gap:14px;min-width:0}
.ai-faq-entry strong{display:block;font-size:16px}
.ai-learning-note{margin:0 20px 20px;border-radius:12px;background:#eef4fb;color:#42526b;padding:12px 14px;line-height:1.7}
.ai-learning-error{margin:14px 20px 0;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#dc2626;padding:10px 12px;font-weight:800}
.ai-learning-modal{position:fixed;inset:0;z-index:10080;display:none;place-items:center;background:rgba(15,23,42,.44);padding:20px}
.ai-learning-modal.is-open{display:grid}
.ai-learning-dialog,.ai-faq-dialog{width:min(760px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto;border-radius:14px;background:#fff;box-shadow:0 26px 80px rgba(15,23,42,.28);padding:22px}
.ai-learning-dialog h3,.ai-faq-dialog h3{margin:0 0 16px!important;padding:0!important;border:0!important;height:auto!important;font-size:20px!important}
.ai-editor-textarea{min-height:260px}
.ai-faq-answer-input{min-height:160px}
.ai-learning-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.ai-faq-dialog{width:min(1080px,calc(100vw - 40px));padding:0}
.ai-faq-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #e6eef8}
.ai-faq-head p{margin:4px 0 0;color:#667085}
.ai-faq-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 22px}
.ai-faq-table-wrap{overflow:auto;padding:0 22px 22px}
.ai-faq-table{width:100%;border-collapse:collapse;border:1px solid #e6eef8;border-radius:12px;overflow:hidden;background:#fff}
.ai-faq-table th{background:#f3f7fc;color:#344054;text-align:left;font-size:13px;padding:12px 14px}
.ai-faq-table td{border-top:1px solid #eef2f7;padding:13px 14px;vertical-align:top;color:#344054}
.ai-faq-table td:first-child{min-width:360px}
.ai-faq-table strong{display:block;margin-bottom:6px;color:#172033}
.ai-faq-table p{margin:0;color:#667085;line-height:1.6;max-height:72px;overflow:hidden}
.ai-status-badge{display:inline-flex;border-radius:999px;background:#dcfce7;color:#15803d;font-size:12px;font-weight:900;padding:4px 9px}
.ai-status-badge.off{background:#f1f5f9;color:#64748b}
.ai-faq-actions{display:flex;gap:6px;white-space:nowrap}
.ai-faq-actions button{border:0;border-radius:8px;background:#f1f5f9;color:#172033;font-weight:800;padding:7px 9px;cursor:pointer}
.ai-faq-actions button:hover{background:#e8f1ff;color:#1769e0}
.ai-faq-actions .danger{color:#dc2626;background:#fff1f2}
.ai-faq-empty{padding:28px;text-align:center;color:#667085}
.ai-learning-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,16px);z-index:10100;border-radius:999px;background:#101828;color:#fff;font-weight:900;padding:10px 16px;opacity:0;pointer-events:none;transition:.18s}
.ai-learning-toast.is-open{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){
  .ai-learning-head{grid-template-columns:38px minmax(0,1fr);align-items:start}
  .ai-learning-switch-wrap{grid-column:1/-1;justify-content:space-between}
  .ai-learning-media-row{grid-template-columns:34px minmax(0,1fr) auto;padding:12px 14px}
  .ai-learned-title{display:grid;padding:14px}
  .ai-learn-card-list{padding:0 14px 14px}
  .ai-faq-entry{margin:0 14px 14px;display:grid;align-items:flex-start}
  .ai-learning-note{margin:0 14px 14px}
  .ai-learning-modal{padding:0;place-items:end}
  .ai-learning-dialog,.ai-faq-dialog{width:100%;max-height:92vh;border-radius:16px 16px 0 0}
  .ai-faq-toolbar{grid-template-columns:1fr;padding:14px}
  .ai-faq-head{padding:16px 14px}
  .ai-faq-table-wrap{padding:0 14px 14px}
  .ai-faq-table{min-width:780px}
}


/* conversation-active-no-left-bar-v1 */
.sidebar .conversation.active,.sidebar .conversation.menu-active{border-color:#5b9cff!important;background:#f2f7ff!important;box-shadow:0 7px 18px rgba(23,105,224,.13)!important}
@media(max-width:760px){.sidebar .conversation.active,.sidebar .conversation.menu-active{box-shadow:0 6px 16px rgba(23,105,224,.12)!important}}


/* conversation-card-lighter-v1 */
.sidebar .conversation-list{background:#f7f9fc!important}
.sidebar .conversation{background:#fff!important;border-color:#dbeafe!important}
.sidebar .conversation:hover{background:#fbfdff!important}
.sidebar .conversation.is-ai-taking{background:#fcfdff!important;border-color:#d6e8ff!important}
.sidebar .conversation.active,.sidebar .conversation.menu-active{background:#f8fbff!important;border-color:#6aa5ff!important;box-shadow:0 6px 16px rgba(23,105,224,.1)!important}
.sidebar .conversation.is-human-request{background:#fffdf9!important}
@media(max-width:760px){.sidebar .conversation-list{background:#f8fafc!important}.sidebar .conversation{background:#fff!important}.sidebar .conversation.is-ai-taking{background:#fcfdff!important}.sidebar .conversation.active,.sidebar .conversation.menu-active{background:#f8fbff!important;box-shadow:0 5px 14px rgba(23,105,224,.09)!important}}


/* admin-color-balance-v1 */
:root{--admin-ink:#172033;--admin-muted:#667085;--admin-blue:#1769e0;--admin-blue-border:#9fc5ff;--admin-blue-soft:#f3f8ff;--admin-bg:#f8fafc;--admin-panel-soft:#fbfdff;--admin-line:#dbe6f2;--admin-danger:#c93444;--admin-danger-soft:#fff6f7}
body{background:#f3f6fa!important}
.topbar{background:#172033!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
.top-settings-btn,.top-actions .btn-light{border-color:rgba(255,255,255,.22)!important;background:rgba(255,255,255,.08)!important;color:#fff!important}
.top-settings-btn:hover,.top-actions .btn-light:hover{background:rgba(255,255,255,.14)!important}
.layout{background:#dfe8f2!important}
.sidebar .panel-head{background:#fff!important;border-bottom-color:var(--admin-line)!important}
.sidebar .conversation-tabs{background:#f4f7fb!important;border-color:var(--admin-line)!important}
.sidebar .conversation-tab{color:#5f6f84!important}
.sidebar .conversation-tab.active{color:var(--admin-blue)!important;background:#fff!important;box-shadow:0 1px 3px rgba(15,23,42,.06)!important}
.sidebar #clearConversationsBtn{border-color:#f1cbd0!important;background:#fff!important;color:var(--admin-danger)!important}
.sidebar #clearConversationsBtn:hover{background:var(--admin-danger-soft)!important;border-color:#e8a8b0!important;color:#b42332!important}
.search,.input,.textarea,.quick-search-input{border-color:var(--admin-line)!important;background:#fff!important}
.search:focus,.input:focus,.textarea:focus,.quick-search-input:focus,.profile-edit-input:focus{border-color:var(--admin-blue-border)!important;box-shadow:0 0 0 3px rgba(23,105,224,.09)!important}
.sidebar .conversation-list{background:var(--admin-bg)!important}
.sidebar .conversation{border-color:#dce9f7!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}
.sidebar .conversation:hover{border-color:#c5dcf7!important;background:#fbfdff!important;box-shadow:0 4px 12px rgba(15,23,42,.045)!important}
.sidebar .conversation.is-ai-taking{border-color:#dce9f7!important;background:#fff!important}
.sidebar .conversation.active,.sidebar .conversation.menu-active{border-color:var(--admin-blue-border)!important;background:var(--admin-blue-soft)!important;box-shadow:0 4px 12px rgba(23,105,224,.075)!important}
.sidebar .conversation-filter.active,.sidebar .conversation-ai-status.is-ai,.ai-status-pill.is-ai{border-color:var(--admin-blue-border)!important;background:#eff6ff!important;color:var(--admin-blue)!important}
.messages,.chat-main{background:var(--admin-bg)!important}
.msg.agent{background:#1769e0!important}
.msg.visitor{border-color:#e4edf7!important;background:#fff!important}
.profile-body,.settings-nav,.settings-pane-ai.active{background:var(--admin-bg)!important}
.card,.settings-group,.activity-item{border-color:#e1eaf4!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}
.msg-video{display:block;width:min(420px,60vw);max-height:320px;border-radius:10px;background:#0f172a}
.msg-file{display:flex;align-items:center;gap:10px;min-width:220px;max-width:360px;padding:11px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc;color:#172033;text-decoration:none}
.msg-file:hover{border-color:#93c5fd;background:#eff6ff}
.msg-file-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:9px;background:#e8f1ff;color:#1769e0}
.msg-file-icon svg{width:22px;height:22px}.msg-file-info{min-width:0;display:grid;gap:3px}.msg-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.msg-file-size{font-size:12px;color:#64748b}
.side-tab.active,.settings-tab.active{color:var(--admin-blue)!important;box-shadow:none!important}
.quick-more{box-shadow:0 3px 10px rgba(15,23,42,.06)!important}
@media(max-width:760px){body{background:#fff!important}.topbar{background:#172033!important}.sidebar .conversation-list,.messages,.chat-main{background:#f8fafc!important}.sidebar .conversation.active,.sidebar .conversation.menu-active{box-shadow:0 3px 10px rgba(23,105,224,.07)!important}.settings-nav{background:#fff!important}}

/* mobile-wechat-like-selection-v1 */
@media(max-width:760px){
  .sidebar .conversation,
  .sidebar .conversation.active,
  .sidebar .conversation.menu-active,
  .sidebar .conversation.is-ai-taking.active,
  .sidebar .conversation.is-ai-taking.menu-active{
    background:#fff!important;
    border-color:#dce9f7!important;
    box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
    transform:none!important;
  }
  .sidebar .conversation:hover,
  .sidebar .conversation.active:hover,
  .sidebar .conversation.menu-active:hover{
    background:#fff!important;
    border-color:#dce9f7!important;
    box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
  }
  .sidebar .conversation:active{
    background:#e9eaec!important;
    border-color:#dce9f7!important;
    box-shadow:none!important;
  }
  .sidebar .conversation.is-pressing,
  .sidebar .conversation.is-pressing:hover,
  .sidebar .conversation.menu-active,
  .sidebar .conversation.menu-active:hover,
  .sidebar .conversation.is-ai-taking.menu-active{
    background:#e9eaec!important;
    border-color:#dce9f7!important;
    box-shadow:none!important;
  }
  .sidebar .conversation.active .visitor-device,
  .sidebar .conversation.is-pressing .visitor-device,
  .sidebar .conversation.menu-active .visitor-device{
    box-shadow:none!important;
  }
}


/* mobile-press-highlight-stable-v1 */
@media(max-width:760px){
  .sidebar .conversation,
  .sidebar .conversation:hover,
  .sidebar .conversation.active,
  .sidebar .conversation.menu-active,
  .sidebar .conversation.is-pressing{
    transition:none!important;
    -webkit-tap-highlight-color:transparent!important;
  }
}

/* conversation-selected-visible-v1 */
@media(max-width:760px){
  .sidebar .conversation.active,
  .sidebar .conversation.active:hover{
    background:#f2f7ff!important;
    border-color:#6aa5ff!important;
    box-shadow:0 5px 14px rgba(23,105,224,.12)!important;
  }
  .sidebar .conversation.active .visitor-device{
    box-shadow:0 0 0 3px rgba(23,105,224,.14)!important;
  }
}

/* mobile-hide-ai-chat-actions-v1 */
@media(max-width:760px){
  .chat-head-actions .ai-status-pill{
    display:none!important;
  }
}

/* quick-reply-scope-tabs-v1 */
.quick-scope-tabs{
  position:absolute;
  left:14px;
  bottom:10px;
  z-index:6;
  display:flex;
  align-items:center;
  gap:12px;
}
.quick-scope-tabs button{
  height:36px;
  min-width:50px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#42526b;
  font-weight:900;
  padding:0 14px;
  cursor:pointer;
}
.quick-scope-tabs button:hover{
  background:#f2f6fb;
  color:#1769e0;
}
.quick-scope-tabs button.active{
  background:#f0f4f9;
  color:#172033;
  box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.profile .quick-list{
  padding-bottom:64px!important;
}
.quick-pane-wrap .quick-more{
  z-index:7;
}
@media(max-width:760px){
  .quick-scope-tabs{
    left:12px;
    bottom:8px;
    gap:8px;
  }
  .quick-scope-tabs button{
    height:34px;
    min-width:48px;
    padding:0 12px;
  }
  .profile .quick-list{
    padding-bottom:66px!important;
  }
}

/* mobile-compose-tool-sticky-highlight-fix-v1 */
@media(max-width:760px){
  .compose-tool:not(.is-active),
  .compose-tool:not(.is-active):hover,
  .compose-tool:not(.is-active):focus,
  .compose-tool:not(.is-active):active{
    color:#7a8798!important;
    background:transparent!important;
    box-shadow:none!important;
    outline:0!important;
  }
  .compose-tool.is-active{
    color:var(--blue)!important;
    background:#eef5ff!important;
  }
}

/* quick-reply-view-mode-v1 */
.quick-search-wrap{
  padding-right:52px!important;
}
.quick-search-input{
  padding-right:62px!important;
}
.quick-search-clear{
  right:52px!important;
}
.quick-view-mode-btn{
  position:absolute;
  right:12px;
  top:10px;
  width:34px;
  height:34px;
  border:1px solid #dbe4ef;
  border-radius:10px;
  background:#fff;
  color:#42526b;
  display:grid;
  place-items:center;
  padding:0;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.05);
}
.quick-view-mode-btn:hover,
.quick-view-mode-btn:focus{
  color:#1769e0;
  border-color:#bfdbfe;
  background:#f8fbff;
  outline:0;
}
.quick-view-mode-btn svg{
  width:19px;
  height:19px;
  display:block;
}
.quick-view-mode-menu{
  position:absolute;
  right:12px;
  top:50px;
  z-index:30;
  width:168px;
  border:1px solid #dbe4ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 42px rgba(15,23,42,.18);
  padding:8px;
  display:none;
}
.quick-view-mode-menu.is-open{
  display:block;
}
.quick-view-mode-title{
  padding:8px 10px;
  color:#667085;
  font-weight:900;
  font-size:13px;
}
.quick-view-mode-menu button{
  width:100%;
  height:40px;
  border:0;
  border-radius:9px;
  background:#fff;
  color:#344054;
  display:grid;
  grid-template-columns:20px 22px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:0 10px;
  text-align:left;
  font-weight:900;
  cursor:pointer;
}
.quick-view-mode-menu button:hover,
.quick-view-mode-menu button.active{
  background:#f0f6ff;
  color:#1769e0;
}
.quick-view-mode-menu button.active .quick-view-check::before{
  content:"✓";
  color:#1769e0;
  font-weight:900;
}
.quick-view-icon{
  color:inherit;
  font-size:18px;
  line-height:1;
}
.quick-view-icon svg{
  width:19px;
  height:19px;
  display:block;
}
.quick-list.quick-view-card{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-content:start;
  padding:10px 12px 72px!important;
}
.quick-list.quick-view-card .quick-item{
  min-height:112px!important;
  border:1px solid #e1eaf4!important;
  border-radius:10px!important;
  box-shadow:0 2px 8px rgba(15,23,42,.035)!important;
  padding:12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto;
  gap:10px!important;
}

/* tenant billing settings */
.settings-pane-billing.active{display:grid!important;gap:14px!important;background:#f8fafc!important}
.billing-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.billing-badge{display:inline-flex!important;align-items:center!important;min-height:26px!important;border-radius:999px!important;padding:0 10px!important;background:#eef4ff!important;color:#1769e0!important;font-size:12px!important;font-weight:900!important}
.billing-badge.ok{background:#e8f8f0!important;color:#0f9f6e!important}
.billing-badge.warn{background:#fff7e6!important;color:#b76b00!important}
.billing-badge.danger{background:#fff1f2!important;color:#dc3545!important}
.billing-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.billing-grid>div{min-height:76px!important;border:1px solid #e1eaf4!important;border-radius:10px!important;background:#fbfdff!important;padding:12px!important}
.billing-grid small{display:block!important;color:#667085!important;font-size:12px!important;font-weight:800!important;margin-bottom:7px!important}
.billing-grid strong,.billing-grid a{font-size:16px!important;font-weight:900!important;color:#172033!important;text-decoration:none!important;word-break:break-word!important}
.billing-grid a{color:#1769e0!important}
.billing-seat-current{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.billing-link{border:0!important;background:transparent!important;color:#1769e0!important;padding:0!important;font-weight:900!important;cursor:pointer!important;white-space:nowrap!important}
.billing-muted{margin-top:10px!important;color:#667085!important;font-size:13px!important;line-height:1.6!important}
.billing-seat-panel{display:none!important}
.billing-seat-panel.is-open{display:block!important}
.billing-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
.billing-form-grid label{display:grid!important;gap:7px!important;margin:0!important}
.billing-form-grid label span{color:#344054!important;font-size:13px!important;font-weight:900!important}
.billing-seat-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;border-top:1px solid #edf2f7!important;border-bottom:1px solid #edf2f7!important;padding:12px 0!important;margin-bottom:12px!important}
.billing-seat-summary small{display:block!important;color:#667085!important;font-size:12px!important;font-weight:800!important;margin-bottom:6px!important}
.billing-seat-summary strong{font-size:18px!important;color:#172033!important}
.billing-seat-summary div:last-child strong{color:#dc3545!important;font-size:22px!important}
.billing-terms{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 12px!important;color:#344054!important;font-weight:800!important}
.billing-terms input{width:16px!important;height:16px!important}
.billing-inline-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
.billing-inline-actions .btn{text-decoration:none!important}
.billing-seat-chat{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;line-height:1!important;border-color:#b7d4ff!important;background:#fff!important;color:#1769e0!important}
.billing-seat-chat::before,.billing-seat-chat::after{display:none!important;content:none!important}
.billing-seat-chat:hover{background:#edf5ff!important}
.billing-result{min-height:24px!important;margin-top:10px!important;font-size:13px!important;font-weight:900!important;line-height:1.7!important}
.billing-result.ok{color:#0f9f6e!important}
.billing-result.error{color:#dc3545!important}
.billing-option-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:12px!important}
.billing-option,.billing-year{border:1px solid #d9e2ee!important;border-radius:10px!important;background:#fff!important;color:#172033!important;cursor:pointer!important;font-weight:900!important}
.billing-option{min-height:72px!important;padding:10px 12px!important;text-align:left!important}
.billing-option span{display:block!important;margin-top:6px!important;color:#667085!important;font-size:12px!important;font-weight:800!important}
.billing-option.is-active,.billing-year.is-active{border-color:#1769e0!important;background:#edf5ff!important;color:#1769e0!important}
.billing-years{display:flex!important;gap:8px!important;margin-bottom:12px!important}
.billing-year{min-height:38px!important;padding:0 16px!important}
.billing-total{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border-top:1px solid #edf2f7!important;border-bottom:1px solid #edf2f7!important;padding:13px 0!important;margin-bottom:12px!important}
.billing-total span{color:#667085!important;font-weight:800!important}
.billing-total strong{color:#dc3545!important;font-size:22px!important}
.billing-note{color:#667085!important;line-height:1.7!important;font-size:13px!important;margin-bottom:12px!important}
.billing-contact-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
@media(max-width:760px){.billing-grid,.billing-option-row,.billing-form-grid,.billing-seat-summary{grid-template-columns:1fr!important}.billing-years{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.billing-year{padding:0 8px!important}}
.quick-list.quick-view-card .quick-item:hover{
  background:#f8fbff!important;
  border-color:#bfdbfe!important;
}
.quick-list.quick-view-card .quick-text{
  width:100%!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  text-align:left!important;
}
.quick-list.quick-view-card .quick-row-head{
  align-items:flex-start!important;
}
.quick-list.quick-view-card .quick-label{
  white-space:normal!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.quick-list.quick-view-card .quick-summary{
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  white-space:normal!important;
  margin-top:8px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.quick-list.quick-view-card .quick-meta{
  justify-content:space-between!important;
  width:100%;
}
.quick-list.quick-view-card .quick-actions{
  display:flex!important;
}
.quick-list.quick-view-card .quick-send{
  opacity:1!important;
  transform:none!important;
}
.quick-list.quick-view-card .quick-empty-state,
.quick-list.quick-view-card .empty{
  grid-column:1/-1!important;
  width:100%!important;
  min-height:auto!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  justify-items:center!important;
  gap:5px!important;
  align-self:start!important;
  margin-top:-6px!important;
}
@media(max-width:760px){
  .quick-search-wrap{
    padding-right:50px!important;
  }
  .quick-view-mode-btn{
    right:12px;
    top:9px;
    width:34px;
    height:34px;
  }
  .quick-view-mode-menu{
    top:48px;
    right:12px;
  }
  .quick-list.quick-view-card{
    grid-template-columns:1fr;
    padding-bottom:74px!important;
  }
}

/* quick-reply-density-polish-v1 */
.quick-list.quick-view-list .quick-item{
  min-height:50px!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:8px 12px!important;
}
.quick-list.quick-view-list .quick-text{
  min-width:0!important;
  font-size:15px!important;
  line-height:1.35!important;
}
.quick-list.quick-view-list .quick-row-head{
  align-items:center!important;
  gap:8px!important;
}
.quick-list.quick-view-list .quick-kind,
.quick-list.quick-view-card .quick-kind{
  height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:13px!important;
  line-height:20px!important;
  font-weight:800!important;
}
.quick-list.quick-view-list .quick-label{
  color:#172033!important;
  font-size:15px!important;
  line-height:22px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.quick-list.quick-view-list .quick-actions,
.quick-list.quick-view-card .quick-actions{
  align-items:center!important;
  gap:6px!important;
}
.quick-list.quick-view-list .quick-action,
.quick-list.quick-view-card .quick-action{
  min-height:32px!important;
  padding:0 9px!important;
  border-radius:9px!important;
  font-size:14px!important;
  line-height:30px!important;
  color:#42526b!important;
}
.quick-list.quick-view-list .quick-send,
.quick-list.quick-view-card .quick-send{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:12px!important;
}
.quick-list.quick-view-list .quick-send svg,
.quick-list.quick-view-card .quick-send svg{
  width:23px!important;
  height:23px!important;
}
.quick-list.quick-view-card .quick-item{
  min-height:104px!important;
  padding:12px 14px!important;
  gap:12px!important;
}
.quick-list.quick-view-card .quick-row-head{
  align-items:center!important;
  gap:8px!important;
}
.quick-list.quick-view-card .quick-label{
  color:#172033!important;
  font-size:15px!important;
  line-height:22px!important;
  font-weight:600!important;
}
.quick-list.quick-view-card .quick-summary{
  margin-top:8px!important;
  color:#667085!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.quick-list.quick-view-card .quick-meta{
  align-items:center!important;
}
@media(max-width:760px){
  .quick-list.quick-view-list .quick-item{
    min-height:52px!important;
    padding:8px 12px!important;
  }
  .quick-list.quick-view-list .quick-label{
    font-size:15px!important;
  }
  .quick-list.quick-view-card .quick-item{
    width:min(280px,100%)!important;
    min-height:106px!important;
  }
}

/* quick-reply-card-tone-v2 */
.quick-list.quick-view-card .quick-label{
  color:#667085!important;
  font-weight:400!important;
}
.quick-list.quick-view-card .quick-summary{
  color:#172033!important;
  font-weight:400!important;
}
.quick-list.quick-view-card .quick-send{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:11px!important;
}
.quick-list.quick-view-card .quick-send svg{
  width:20px!important;
  height:20px!important;
  stroke-width:2!important;
}

/* quick-reply-card-controls-v3 */
.quick-list.quick-view-card .quick-actions{
  gap:5px!important;
}
.quick-list.quick-view-card .quick-action{
  min-height:28px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:13px!important;
  line-height:26px!important;
}
.quick-list.quick-view-card .quick-send{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  flex:0 0 36px!important;
  border-radius:10px!important;
}
.quick-list.quick-view-card .quick-send svg{
  width:18px!important;
  height:18px!important;
}
@media(max-width:760px){
  .profile .quick-list.quick-view-card .quick-action{
    min-height:28px!important;
    padding:0 8px!important;
    font-size:13px!important;
    line-height:26px!important;
  }
  .profile .quick-list.quick-view-card .quick-send{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    flex:0 0 36px!important;
  }
  .profile .quick-list.quick-view-card .quick-send svg{
    width:18px!important;
    height:18px!important;
  }
}

/* quick-reply-list-controls-v1 */
.quick-list.quick-view-list .quick-actions{
  gap:5px!important;
}
.quick-list.quick-view-list .quick-action{
  min-height:28px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:13px!important;
  line-height:26px!important;
}
.quick-list.quick-view-list .quick-send{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  flex:0 0 36px!important;
  border-radius:10px!important;
}
.quick-list.quick-view-list .quick-send svg{
  width:18px!important;
  height:18px!important;
}
@media(max-width:760px){
  .profile .quick-list.quick-view-list .quick-action{
    min-height:28px!important;
    padding:0 8px!important;
    font-size:13px!important;
    line-height:26px!important;
  }
  .profile .quick-list.quick-view-list .quick-send{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    flex:0 0 36px!important;
  }
  .profile .quick-list.quick-view-list .quick-send svg{
    width:18px!important;
    height:18px!important;
  }
}

/* quick-reply-card-summary-3-lines-v1 */
.quick-list.quick-view-card .quick-item{
  min-height:118px!important;
}
.quick-list.quick-view-card .quick-summary{
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  word-break:break-all!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:760px){
  .profile .quick-list.quick-view-card .quick-item{
    min-height:118px!important;
  }
}

/* quick-reply-card-summary-3-lines-v2 */
.quick-list.quick-view-card .quick-item{
  grid-template-rows:auto auto!important;
  align-self:start!important;
  align-content:start!important;
}

/* mobile-quick-reply-card-layout-v1 */
@media(max-width:760px){
  .profile .quick-list.quick-view-card{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    align-content:start!important;
    padding:10px 12px 74px!important;
  }
  .profile .quick-list.quick-view-card .quick-item{
    width:100%!important;
    min-height:118px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    align-self:start!important;
    align-content:start!important;
    gap:12px!important;
    padding:12px 14px!important;
    border:1px solid #e1eaf4!important;
    border-radius:10px!important;
  }
  .profile .quick-list.quick-view-card .quick-text{
    display:block!important;
    width:100%!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  .profile .quick-list.quick-view-card .quick-row-head{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  .profile .quick-list.quick-view-card .quick-label{
    min-width:0!important;
    font-size:15px!important;
    line-height:22px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .profile .quick-list.quick-view-card .quick-summary{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    white-space:normal!important;
    overflow:hidden!important;
    word-break:break-all!important;
    overflow-wrap:anywhere!important;
    margin-top:8px!important;
  }
  .profile .quick-list.quick-view-card .quick-meta{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-width:0!important;
  }
}

/* mobile-quick-reply-list-start-v1 */
@media(max-width:760px){
  .profile .quick-panel{
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  .profile #quickPane.active{
    grid-template-rows:minmax(0,1fr)!important;
  }
  .profile .quick-list.quick-view-list,
  .profile .quick-list:not(.quick-view-card){
    display:block!important;
    align-content:initial!important;
    justify-content:initial!important;
    padding:8px 0 66px!important;
    overflow:auto!important;
  }
  .profile .quick-list.quick-view-list .quick-item,
  .profile .quick-list:not(.quick-view-card) .quick-item{
    width:100%!important;
    min-height:48px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    padding:10px 12px!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid #eef2f7!important;
    box-shadow:none!important;
  }
}

/* Tenant channels and bots */
.workspace-pane{padding:18px 22px;overflow:auto}.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid #e3e9f2}.workspace-head h4{margin:0 0 5px;font-size:20px}.workspace-head p,.workspace-item p,.workspace-channel-checks p{margin:0;color:#66758d;line-height:1.55}.workspace-list{display:grid;gap:12px;padding-top:16px}.workspace-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid #dfe7f2;border-radius:8px;background:#fff}.workspace-item-main{display:flex;align-items:center;gap:14px;min-width:0}.workspace-type-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:8px;background:#e9f2ff;color:#1769e0;font-weight:800;flex:0 0 auto}.workspace-type-icon.bot{background:#edf7f4;color:#087f5b}.workspace-item h5{margin:0 0 5px;font-size:17px}.workspace-item h5 span{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:4px;background:#e8f7ef;color:#15803d;font-size:12px}.workspace-item-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.workspace-item-actions button{border:1px solid #d7e1ef;background:#fff;color:#1769e0;border-radius:6px;padding:8px 10px;cursor:pointer}.workspace-item-actions button.danger{color:#dc3545}.workspace-empty{display:grid;place-items:center;min-height:240px;color:#7a879b}.workspace-editor{position:fixed;inset:0;z-index:16000;display:none;place-items:center;padding:24px;background:rgba(15,23,42,.56)}.workspace-editor.is-open{display:grid}.workspace-editor-box{width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border-radius:8px;box-shadow:0 24px 70px rgba(15,23,42,.26);overflow:hidden}.workspace-editor-head,.workspace-editor-actions{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5eaf2}.workspace-editor-head h4{margin:0;font-size:20px}.workspace-editor-head button{border:0;background:transparent;font-size:26px;cursor:pointer}.workspace-editor-body{padding:20px;overflow:auto}.workspace-editor-actions{justify-content:flex-end;border-top:1px solid #e5eaf2;border-bottom:0}.workspace-check{display:flex;align-items:center;gap:9px;padding:9px 0;cursor:pointer}.workspace-check input{width:18px;height:18px;accent-color:#1769e0}.workspace-check.primary{font-weight:700}.workspace-channel-checks{margin-top:10px;padding:14px;border:1px solid #dfe7f2;border-radius:8px;background:#f8fafc}.workspace-channel-checks p{margin:4px 0 8px;font-size:13px}@media(max-width:760px){.workspace-pane{padding:14px}.workspace-head,.workspace-item{align-items:flex-start;flex-direction:column}.workspace-item-actions{width:100%;flex-wrap:wrap}}

/* workspace-editor-layer-fix-v2 */
.workspace-editor{z-index:16000!important;align-items:center!important;justify-items:center!important}
.workspace-editor.is-open{display:grid!important}

/* channel-download-panel-v1 */
.channel-download-panel{margin-top:18px;padding:16px;border:1px solid #cfe0ff;border-radius:8px;background:#f6f9ff}.channel-download-panel>strong{display:block;font-size:16px}.channel-download-panel>p{margin:6px 0 12px;color:#66758d;line-height:1.6}.channel-test-link{padding:11px 12px;border:1px solid #dbe4ef;border-radius:7px;background:#fff;color:#1769e0;line-height:1.5;word-break:break-all}.channel-download-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.channel-download-actions .btn{min-height:40px}

/* Robot-owned learning detail */
.workspace-item-main[data-bot-open]{cursor:pointer;min-width:0}
.workspace-item-main[data-bot-open]:hover h5{color:#1769e8}
.channel-create-intro{margin:-2px 0 16px;padding:13px 14px;border-left:3px solid #1769e0;background:#f5f9ff;color:#52637a}.channel-create-intro span{display:block;margin-bottom:4px;color:#1769e0;font-size:13px;font-weight:800;letter-spacing:.04em}.channel-create-intro p,.channel-field-hint{margin:0;color:#66758d;font-size:13px;line-height:1.55}.channel-type-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.channel-type-card{min-height:132px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid #d9e2ef;border-radius:10px;background:#fff;color:#172033;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.channel-type-card:hover{border-color:#8cb8f5;background:#f8fbff}.channel-type-card.is-selected{border-color:#1769e0;background:#f2f7ff;box-shadow:0 0 0 3px rgba(23,105,224,.1)}.channel-type-card>span:last-child{display:grid;gap:7px}.channel-type-card strong{font-size:16px}.channel-type-card small{color:#66758d;font-size:13px;line-height:1.55}.channel-type-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:#e8f2ff;color:#1769e0;font-size:18px;font-weight:900}.channel-type-symbol.link{background:#f0edff;color:#6d50c8}.channel-field-hint{margin-top:7px}@media(max-width:560px){.channel-type-picker{grid-template-columns:1fr}.channel-type-card{min-height:104px}}
.channel-identity-panel{margin-top:20px;padding-top:18px;border-top:1px solid #e5ebf3}.channel-identity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.channel-identity-head strong{display:block;font-size:16px}.channel-identity-head p{margin:5px 0 0;color:#66758d;font-size:13px;line-height:1.55}.channel-identity-switch{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;color:#475569;font-size:13px;font-weight:800;cursor:pointer}.channel-identity-switch input{position:absolute;opacity:0;pointer-events:none}.channel-identity-switch span{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:background .16s ease}.channel-identity-switch span:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.22);transition:transform .16s ease}.channel-identity-switch input:checked+span{background:#1769e0}.channel-identity-switch input:checked+span:after{transform:translateX(16px)}.channel-identity-switch input:focus-visible+span{box-shadow:0 0 0 3px rgba(23,105,224,.18)}.channel-identity-fields{display:grid;gap:14px;margin-top:16px;padding:16px;border:1px solid #dce8f8;border-radius:10px;background:#f8fbff}.channel-avatar-row{display:flex;align-items:center;gap:13px}.channel-avatar-row img{width:58px;height:58px;border:1px solid #d8e3f0;border-radius:14px;object-fit:cover;background:#fff}.channel-avatar-row div{display:grid;gap:4px}.channel-avatar-row strong{font-size:14px}.channel-avatar-row p,.channel-identity-note{margin:0;color:#66758d;font-size:12px;line-height:1.5}.channel-avatar-row .btn{justify-self:start;min-height:34px;margin-top:4px;padding:0 11px;font-size:13px}.channel-signature-input{min-height:70px}.channel-identity-note{padding:10px 11px;border-radius:7px;background:#edf7f1;color:#287a50}@media(max-width:560px){.channel-identity-head{display:grid;gap:10px}.channel-identity-switch{justify-self:start}.channel-avatar-row{align-items:flex-start}}
.workspace-editor-box.channel-detail-box{width:min(1040px,calc(100vw - 40px));max-height:min(780px,calc(100vh - 36px)}.channel-detail-box .workspace-editor-body{padding:0;background:#f3f6fa}.channel-details-shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:510px}.channel-details-nav{padding:18px 12px;background:#fff;border-right:1px solid #e2e8f0}.channel-details-nav-title{display:grid;gap:4px;padding:0 12px 16px;margin-bottom:10px;border-bottom:1px solid #edf1f6}.channel-details-nav-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.channel-details-nav-title small{color:#718096;font-size:12px}.channel-details-nav button{display:block;width:100%;border:0;border-left:3px solid transparent;background:transparent;color:#58677c;font-weight:800;text-align:left;padding:12px;cursor:pointer}.channel-details-nav button:hover{background:#f5f8fc;color:#1769e0}.channel-details-nav button.is-active{border-left-color:#1769e0;background:#eff6ff;color:#1769e0}.channel-details-main{min-width:0;padding:24px;overflow:auto}.channel-setting-panel{display:none}.channel-setting-panel.is-active{display:block}.channel-setting-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.channel-setting-heading span{display:block;font-size:18px;font-weight:800}.channel-setting-heading p{margin:6px 0 0;color:#66758d;line-height:1.55;font-size:13px}.channel-setting-card,.channel-access-card{padding:20px;border:1px solid #e0e8f2;border-radius:10px;background:#fff}.channel-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.channel-readonly-field{display:grid;align-content:center;gap:7px;margin-bottom:14px}.channel-readonly-field span{font-size:14px;font-weight:800}.channel-readonly-field strong{color:#66758d;font-size:14px;font-weight:500}.channel-detail-box .channel-identity-panel{padding:20px;margin-top:2px;border:1px solid #e0e8f2;border-radius:10px;background:#fff}.channel-access-card{min-height:340px}.channel-access-kicker{display:inline-block;margin-bottom:10px;color:#1769e0;font-size:12px;font-weight:900;letter-spacing:.06em}.channel-access-card h5{margin:0 0 8px;font-size:18px}.channel-access-card>p{max-width:680px;margin:0;color:#66758d;line-height:1.65}.channel-access-card code{padding:1px 4px;border-radius:4px;background:#eef3f8;color:#1d4f91}.channel-access-value{margin-top:18px;padding:12px 14px;border:1px solid #dbe7f6;border-radius:8px;background:#f8fbff;color:#275080;font-size:13px;line-height:1.5;word-break:break-all}.channel-access-code{max-height:200px;margin:18px 0 0;padding:14px;overflow:auto;border:1px solid #dbe7f6;border-radius:8px;background:#10223d;color:#d7eaff;font:12px/1.6 Consolas,"Courier New",monospace;white-space:pre-wrap;word-break:break-word}.channel-access-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}@media(max-width:760px){.workspace-editor-box.channel-detail-box{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.channel-details-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.channel-details-nav{display:flex;gap:4px;padding:10px;overflow:auto;border-right:0;border-bottom:1px solid #e2e8f0}.channel-details-nav-title{display:none}.channel-details-nav button{width:auto;white-space:nowrap;border-left:0;border-bottom:3px solid transparent;padding:9px 11px}.channel-details-nav button.is-active{border-left:0;border-bottom-color:#1769e0}.channel-details-main{padding:14px}.channel-detail-grid{grid-template-columns:1fr}.channel-access-card{min-height:0}.channel-access-actions .btn{flex:1}}
.bot-learning-detail-head{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:2px 2px 14px;border-bottom:1px solid #dfe7f2}
.bot-learning-detail-head button{width:40px;height:40px;border:1px solid #d7e1ee;border-radius:6px;background:#fff;color:#172033;font-size:24px;line-height:1;cursor:pointer}
.bot-learning-detail-head div{display:flex;flex-direction:column;gap:3px;min-width:0}
.bot-learning-detail-head strong{font-size:20px;color:#172033}
.bot-learning-detail-head span{font-size:13px;color:#66758d}

/* settings-workspace-v2: scalable desktop settings shell */
.workspace-editor-box.channel-detail-box{max-height:min(780px,calc(100vh - 36px))}
@media(min-width:761px){
  .settings-modal{padding:24px!important;background:rgba(15,23,42,.5)!important}
  .settings-box{width:min(1480px,calc(100vw - 48px))!important;height:min(980px,calc(100dvh - 48px))!important;max-height:none!important;border-radius:20px!important;grid-template-rows:76px minmax(0,1fr) 76px!important;box-shadow:0 28px 80px rgba(15,23,42,.28)!important;overflow:hidden!important}
  .settings-box>h3{display:flex!important;align-items:center!important;margin:0!important;padding:0 32px!important;border-bottom:1px solid #e4eaf2!important;color:#172033!important;font-size:24px!important;letter-spacing:-.25px!important}
  .settings-layout{grid-template-columns:236px minmax(0,1fr)!important;background:#fff!important;min-height:0!important}
  .settings-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;align-content:stretch!important;gap:4px!important;padding:18px 12px!important;overflow:auto!important;background:#f7f9fc!important;border-right:1px solid #e4eaf2!important}
  .settings-nav:before{content:"工作区设置";display:block;padding:4px 12px 9px;color:#98a2b3;font-size:12px;font-weight:800;letter-spacing:.05em}
  .settings-tab{flex:0 0 46px!important;min-height:46px!important;margin:0!important;padding:0 14px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#536176!important;font-size:15px!important;font-weight:750!important;line-height:44px!important;text-align:left!important;transition:background .16s,color .16s,border-color .16s!important}
  .settings-tab:hover{background:#eef4fb!important;color:#1769e0!important}
  .settings-tab.active{border-color:#e5edf8!important;background:#fff!important;color:#1769e0!important;box-shadow:0 2px 8px rgba(15,23,42,.05)!important}
  .settings-tab:focus-visible{outline:3px solid rgba(23,105,224,.22)!important;outline-offset:2px!important}
  .settings-pane{min-height:0!important;padding:32px clamp(32px,5vw,72px) 48px!important;overflow:auto!important;background:#fff!important}
  .settings-pane.active>.field{width:min(920px,100%)!important;margin-bottom:20px!important}
  .settings-pane.active>.field label{color:#344054!important;font-size:14px!important;font-weight:800!important}
  .settings-pane.active>.field .input,.settings-pane.active>.field .textarea{border-color:#dce5f0!important;border-radius:12px!important;background:#fff!important}
  .settings-pane.active>.field .input{min-height:52px!important;padding:13px 16px!important}
  .settings-pane.active>.field .textarea{min-height:124px!important;padding:14px 16px!important;line-height:1.6!important}
  .settings-pane.active>.btn{min-height:46px!important;border-radius:11px!important}
  .settings-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin:0!important;padding:0 28px!important;border-top:1px solid #e4eaf2!important;background:#fff!important}
  .settings-actions .btn{min-height:44px!important;border-radius:11px!important}
}

/* quick-reply-modal-isolation-v1: do not inherit the settings workspace grid */
@media(min-width:761px){
  #quickReplyModal{padding:24px!important}
  #quickReplyModal .settings-box{display:flex!important;flex-direction:column!important;width:min(680px,calc(100vw - 48px))!important;height:auto!important;max-height:calc(100dvh - 48px)!important;grid-template-rows:none!important;border-radius:16px!important;overflow:auto!important}
  #quickReplyModal .settings-box>h3{display:flex!important;flex:0 0 68px!important;align-items:center!important;margin:0!important;padding:0 28px!important;border-bottom:1px solid #e4eaf2!important;font-size:21px!important}
  #quickReplyModal .quick-type-tabs{display:flex!important;flex:0 0 auto!important;gap:6px!important;padding:14px 24px 0!important;border:0!important;background:#fff!important}
  #quickReplyModal .quick-type-tab{flex:1!important;min-height:42px!important;border-radius:10px!important}
  #quickReplyModal .quick-modal-panel{display:none!important;min-height:0!important;padding:18px 24px 4px!important;background:#fff!important}
  #quickReplyModal .quick-modal-panel.active{display:block!important}
  #quickReplyModal>.settings-box>.field{width:auto!important;margin:0!important;padding:10px 24px 20px!important}
  #quickReplyModal .textarea{min-height:150px!important;max-height:320px!important}
  #quickReplyModal .rich-editor{min-height:190px!important}
  #quickReplyModal .settings-actions{display:flex!important;flex:0 0 70px!important;align-items:center!important;justify-content:flex-end!important;margin-top:0!important;padding:0 24px!important;border-top:1px solid #e4eaf2!important;background:#fff!important}
}

/* knowledge-management-workspace-v2 */
.settings-pane-knowledge{background:#f6f8fc!important}
.knowledge-shell{max-width:1440px;margin:0 auto;padding:30px 36px 92px}
.knowledge-titlebar{grid-template-columns:40px 48px minmax(0,1fr);gap:12px;margin-bottom:22px}
.knowledge-brand-icon{width:48px;height:48px;border-radius:12px}
.knowledge-brand-icon svg{width:24px;height:24px}
.knowledge-titlecopy{min-width:0}
.knowledge-breadcrumb{display:block;margin:0 0 4px;color:#667085;font-size:12px;font-weight:700}
.knowledge-titlecopy h3{font-size:24px!important;letter-spacing:-.2px}
.knowledge-titlecopy p{margin-top:4px;font-size:14px}
.knowledge-section-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.knowledge-tabs{margin-bottom:0}
.knowledge-total{color:#667085;font-size:13px;font-weight:700;white-space:nowrap}
.knowledge-toolbar{grid-template-columns:minmax(280px,1fr) auto auto auto;gap:10px;margin-bottom:16px}
.knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:minmax(280px,1fr) auto}
.knowledge-filters{display:flex;align-items:center;gap:8px}
.knowledge-filters select{min-width:118px}
.knowledge-toolbar .btn{padding:0 14px!important}
.knowledge-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 10px;color:#344054}
.knowledge-list-heading strong{font-size:14px}
.knowledge-list-heading span{color:#667085;font-size:13px}
.knowledge-table-wrap{min-height:480px;border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.02)}
.knowledge-table-head{background:#f8fafc}
.knowledge-empty{min-height:480px}
.knowledge-empty .knowledge-empty-add{margin-top:18px;min-height:42px}
.knowledge-back:focus-visible,.knowledge-tabs button:focus-visible,.knowledge-toolbar select:focus-visible,.knowledge-empty-add:focus-visible{outline:3px solid rgba(23,105,224,.24);outline-offset:2px}
@media(max-width:1100px){
  .knowledge-shell{padding:24px 24px 84px}
  .knowledge-toolbar,.knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:minmax(220px,1fr) auto auto}
  .knowledge-toolbar-doc .knowledge-add,.knowledge-toolbar-page .knowledge-add{grid-column:auto}
  .knowledge-filters{grid-column:auto}
}
@media(max-width:760px){
  .knowledge-shell{padding:18px 14px 84px}
  .knowledge-titlebar{grid-template-columns:36px 44px minmax(0,1fr);margin-bottom:18px}
  .knowledge-breadcrumb{font-size:11px}
  .knowledge-titlecopy h3{font-size:19px!important}
  .knowledge-titlecopy p{font-size:12px;line-height:1.5}
  .knowledge-section-bar{align-items:flex-start;flex-direction:column;gap:10px}
  .knowledge-total{padding-left:2px}
  .knowledge-toolbar,.knowledge-toolbar-doc,.knowledge-toolbar-page{grid-template-columns:1fr 1fr;gap:9px}
  .knowledge-search{grid-column:1/3}
  .knowledge-filters{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .knowledge-filters select{width:100%;min-width:0}
  .knowledge-toolbar-doc .knowledge-filters,.knowledge-toolbar-page .knowledge-filters{grid-template-columns:1fr}
  .knowledge-toolbar-doc .knowledge-add,.knowledge-toolbar-page .knowledge-add{grid-column:1/3}
  .knowledge-list-heading{padding-top:4px}
  .knowledge-table-wrap,.knowledge-empty{min-height:340px}
}
