/* Chat workspace fills the main panel and keeps the application sidebar visible. */
.layout.chat-mode{display:flex;height:100dvh;overflow:hidden}
.layout.chat-mode>.sidebar{display:flex}
.layout.chat-mode .app-shell>.topbar{display:none}
.layout.chat-mode .app-shell{flex:1;width:auto;height:100dvh;min-width:0}
.layout.chat-mode #view-root{padding:0;max-width:none;width:100%;height:100dvh;overflow:hidden}
.chat-workspace{height:100%;display:flex;flex-direction:column;background:#f7f9f6;overflow:hidden}
.chat-workspace-header{background:#fff;border-bottom:1px solid #e4ebe5;flex:none;z-index:10}
.chat-workspace-top{height:51px;display:flex;align-items:center;gap:11px;padding:0 19px;border-bottom:1px solid #eef2ed}
.chat-workspace-mobile-menu{display:none;width:29px;height:29px;border:0;background:transparent;color:#536c62;border-radius:7px;place-items:center}
.chat-workspace-mobile-menu .icon{width:17px;height:17px}
.chat-workspace-path{display:flex;align-items:center;gap:8px;color:#91a096;font-size:10px;font-weight:700;white-space:nowrap}
.chat-workspace-path i{font-style:normal;color:#c6d0c7}
.chat-workspace-path strong{color:#365e4d;font-weight:800}
.chat-workspace-spacer{flex:1}
.chat-workspace-demo{border-radius:99px;padding:6px 9px;background:#eef7e7;color:#658b66;font-size:8px;font-weight:800;letter-spacing:.7px;white-space:nowrap}
.chat-workspace-demo span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#78bd83;margin-right:5px}
.chat-workspace-user{width:30px;height:30px;border-radius:50%;background:#e1e9dc;color:#47705c;display:grid;place-items:center;font-size:11px;font-weight:800}
.chat-workspace-tabs{height:46px;display:flex;align-items:stretch;gap:4px;padding:0 14px;overflow:auto;scrollbar-width:none}
.chat-workspace-tabs::-webkit-scrollbar{display:none}
.chat-workspace-tabs button{position:relative;border:0;background:transparent;display:flex;align-items:center;gap:7px;padding:0 14px;color:#84948e;font-size:10px;font-weight:800;white-space:nowrap}
.chat-workspace-tabs button .icon{width:16px;height:16px}
.chat-workspace-tabs button:hover{color:#244f48}
.chat-workspace-tabs button.active{color:#244e46}
.chat-workspace-tabs button.active:after{content:'';height:3px;position:absolute;bottom:0;left:15px;right:15px;background:#b4d750;border-radius:3px 3px 0 0}
.chat-workspace-content{min-height:0;flex:1;overflow:auto;padding:17px 19px 20px}
.chat-workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}
.chat-workspace-heading h1{font-family:'Plus Jakarta Sans';font-weight:800;letter-spacing:-.45px;font-size:17px;line-height:1.25;margin:0}
.chat-workspace-heading p{font-size:10px;color:#8d9c94;margin:4px 0 0}
.chat-workspace-heading .eyebrow{display:none}
.chat-workspace-heading .button{font-size:10px;padding:8px 10px}
.chat-heading-count{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#e4f1d3;color:#4d7b57;font:800 10px 'DM Sans';letter-spacing:0;vertical-align:1px}
.chat-page-demo{display:inline-flex;align-items:center;gap:6px;color:#6f9381;background:#ecf6e9;border:1px solid #dce9d7;border-radius:8px;padding:8px 10px;font-size:10px;font-weight:700;white-space:nowrap}
.chat-page-demo .icon{width:14px;height:14px}
.chat-inbox-page{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.chat-inbox-page .chat-workspace-heading{flex:none;margin-bottom:12px}
.chat-workspace-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;flex:none}
.chat-queue-tabs{display:flex;align-items:center;gap:3px;background:#eaf0e9;padding:4px;border-radius:11px;overflow:auto;scrollbar-width:none}
.chat-queue-tabs button{border:0;background:transparent;color:#84968d;padding:8px 13px;border-radius:8px;font-size:10px;font-weight:800;white-space:nowrap}
.chat-queue-tabs button.active{background:#fff;color:#244740;box-shadow:0 1px 5px #1e463516}
.chat-queue-tabs button span{display:inline-block;border-radius:5px;background:#e7f0db;color:#6c9567;padding:2px 5px;margin-left:4px;font-size:9px}
.chat-filter-right{display:flex;align-items:center;gap:13px}
.chat-channel-select{display:flex;align-items:center;gap:5px;border:1px solid #e1e9df;border-radius:9px;background:#fff;padding:0 8px;color:#789287}
.chat-channel-select .icon{width:14px;height:14px}
.chat-channel-select select{border:0;background:transparent;color:#506b5d;font-size:10px;font-weight:800;padding:8px 3px;outline:none}
.chat-prototype-hint{font-size:10px;color:#a0aea4;white-space:nowrap}
.chat-workspace-inbox{grid-template-columns:minmax(275px,310px) minmax(330px,1fr) minmax(270px,310px);border:1px solid #dfe8df;border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 12px 35px #24473a0b;min-height:0;background:#fff;overflow:hidden}
.chat-workspace-inbox .inbox-list-head{padding:18px 14px 13px}
.chat-list-headline{display:flex;justify-content:space-between;align-items:center}
.chat-list-headline h3{margin:0 0 11px;font-size:12px}
.chat-list-headline span{font-size:10px;font-weight:800;color:#8c9f94}
.chat-workspace-inbox .chat-list-item{padding:16px 13px}
.chat-workspace-inbox .chat-list-item.active{background:#f0f7e9}
.chat-list-empty{padding:25px 18px;color:#8c9c90;font-size:11px;line-height:1.5}
.chat-workspace-inbox .thread-head{min-height:69px}
.thread-head-status{color:#528e68;background:#e9f5e7;padding:6px 8px;border-radius:7px;font-size:9px;font-weight:800;white-space:nowrap}
.thread-head-status.paused{color:#a98053;background:#fff3e6}
.chat-workspace-inbox .thread-messages{background:#fafcf9}
.chat-workspace-inbox .context-pane{background:#fff}
.context-edit{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin:10px 0;color:#a0afa8}
.context-edit select{border:1px solid #dce7dc;border-radius:7px;color:#3a6553;background:#fff;padding:6px;font-size:10px;font-weight:700;max-width:125px}
.chat-context-tags{display:flex;gap:6px;flex-wrap:wrap}
.chat-context-tags span{background:#eaf2e6;color:#5e825b;padding:5px 7px;border-radius:6px;font-size:9px;font-weight:700}
.chat-inline-action{display:inline-flex;align-items:center;gap:5px;margin-top:12px;padding:0;border:0;background:transparent;color:#48876f;font-size:10px;font-weight:800}
.chat-inline-action .icon{width:13px;height:13px}
.chat-config-grid,.chat-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1220px}
.chat-config-card{border:1px solid #e0e9e1;background:#fff;border-radius:14px;padding:21px 23px;box-shadow:0 8px 25px #214a3908;min-width:0}
.chat-config-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px}
.chat-config-card-head .op-icon{flex:none}
.chat-config-card-head h2{font-family:'Plus Jakarta Sans';font-size:14px;margin:0;letter-spacing:-.25px}
.chat-config-card-head p{font-size:10px;color:#90a097;margin:5px 0 0}
.chat-setting-row,.chat-setting-select{display:flex;align-items:center;gap:12px;position:relative;border-top:1px solid #eef2ed;padding:14px 0;min-height:58px}
.chat-setting-row>span:first-child,.chat-setting-select>span:first-child{flex:1;min-width:0}
.chat-setting-row strong,.chat-setting-select strong{display:block;font-size:11px;color:#2a4840}
.chat-setting-row small,.chat-setting-select small{display:block;font-size:10px;line-height:1.4;color:#99a89e;margin-top:4px}
.chat-setting-row input[type=checkbox],.chat-capability-row input[type=checkbox]{position:absolute;right:0;width:35px;height:20px;opacity:0;z-index:2;cursor:pointer}
.chat-switch{width:35px;height:20px;border-radius:99px;background:#dce6db;position:relative;flex:none;transition:background .15s}
.chat-switch:after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
input[type=checkbox]:checked+.chat-switch{background:#7db483}
input[type=checkbox]:checked+.chat-switch:after{transform:translateX(15px)}
.chat-setting-row:focus-within,.chat-capability-row:focus-within{outline:2px solid #9bcab0;outline-offset:2px;border-radius:5px}
.chat-setting-select select{border:1px solid #dce8de;border-radius:8px;padding:7px 8px;background:#fff;color:#3b6450;font-size:10px;font-weight:700;max-width:132px}
.chat-config-note{background:#f5f8f2;border-radius:8px;color:#93a398;padding:10px 11px;font-size:10px;line-height:1.5;margin-top:10px}
.chat-config-highlight{background:#173b3c;color:#fff;border-color:#173b3c}
.chat-config-highlight .chat-config-card-head h2{color:#fff}
.chat-config-highlight .chat-config-card-head p{color:#b1c8bd}
.chat-config-highlight-body{border-top:1px solid #3b5d57;padding:17px 0 21px;margin-top:17px}
.chat-config-highlight-body strong{display:block;font:800 21px 'Plus Jakarta Sans';letter-spacing:-.6px}
.chat-config-highlight-body span{display:block;color:#b5c7bd;font-size:11px;line-height:1.5;margin-top:7px;max-width:320px}
.chat-agents-layout{display:grid;grid-template-columns:minmax(210px,255px) minmax(370px,1fr) minmax(250px,290px);gap:15px;align-items:start}
.chat-agent-list,.chat-agent-editor,.chat-agent-capabilities{background:#fff;border:1px solid #e0e9e1;border-radius:14px;box-shadow:0 8px 25px #214a3908;min-width:0;overflow:hidden}
.chat-agent-list-top{display:flex;justify-content:space-between;gap:8px;padding:18px 17px 14px;font-size:11px}
.chat-agent-list-top span{color:#94a69a}
.chat-agent-item{display:flex;align-items:flex-start;gap:10px;border:0;border-top:1px solid #f0f3ef;background:#fff;padding:16px 13px;width:100%;text-align:left}
.chat-agent-item:hover{background:#f8fbf5}
.chat-agent-item.active{background:#eff8e8;box-shadow:inset 3px 0 #b3d456}
.chat-agent-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#e9f3dc;color:#6b9555;flex:none}
.chat-agent-icon .icon{width:14px;height:14px}
.chat-agent-item>span:nth-child(2){flex:1;min-width:0}
.chat-agent-item strong,.chat-agent-item small{display:block}
.chat-agent-item strong{font-size:10px;color:#294b3f}
.chat-agent-item small{font-size:9px;line-height:1.45;color:#9aa9a0;margin-top:4px}
.chat-agent-item i{width:7px;height:7px;border-radius:50%;background:#c8d2c8;flex:none;margin-top:4px}
.chat-agent-item i.on{background:#74bb81}
.chat-agent-list-foot{padding:15px 17px;color:#9caba1;font-size:9px;line-height:1.5;border-top:1px solid #eef2ed}
.chat-agent-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 23px 18px;border-bottom:1px solid #eaf0e9}
.chat-agent-kicker{font-size:9px;font-weight:800;letter-spacing:1.3px;color:#8ba891}
.chat-agent-editor-head h2{font:800 18px 'Plus Jakarta Sans';margin:7px 0 3px;letter-spacing:-.5px}
.chat-agent-editor-head p{font-size:10px;color:#9aaa9f;margin:0}
.chat-agent-form{padding:20px 23px}
.chat-agent-two{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.chat-field{display:block;margin-bottom:15px}
.chat-field>span{display:block;font-size:10px;font-weight:800;color:#5e7c69;margin-bottom:6px}
.chat-field input,.chat-field select,.chat-field textarea{display:block;width:100%;border:1px solid #dce8dc;background:#fff;border-radius:8px;padding:9px 10px;font-size:11px;line-height:1.5;color:#2b463a}
.chat-field textarea{resize:vertical;min-height:130px}
.chat-field small{display:block;color:#9aaba0;font-size:9px;line-height:1.5;margin-top:6px}
.chat-agent-enabled{border-bottom:1px solid #eef2ed;margin:0 0 17px}
.chat-agent-form-foot{display:flex;justify-content:space-between;gap:10px}
.chat-agent-form-foot .button{font-size:10px}
.chat-agent-test{background:#f5f9ef;border:1px solid #e1ebd9;border-radius:10px;padding:13px;margin-top:16px;color:#526959;font-size:10px;line-height:1.55}
.chat-agent-test strong{display:block;font-size:11px;color:#2d5c45}
.chat-agent-test p{margin:9px 0}
.chat-agent-test div{background:#fff;border-radius:7px;padding:9px}
.chat-agent-test small{display:block;color:#9aab9d;margin-top:7px}
.chat-agent-capabilities{padding:21px 17px}
.chat-capability-head{padding:0 4px 14px}
.chat-capability-head .op-icon{margin-bottom:11px}
.chat-capability-head h3{font:800 13px 'Plus Jakarta Sans';margin:0}
.chat-capability-head p{color:#97a69a;font-size:10px;line-height:1.5;margin:6px 0 0}
.chat-capability-row{display:flex;align-items:center;gap:9px;position:relative;padding:11px 4px;border-top:1px solid #eef2ed}
.chat-capability-row>span:first-child{flex:1;min-width:0}
.chat-capability-row strong,.chat-capability-row small{display:block}
.chat-capability-row strong{font-size:10px;color:#345246}
.chat-capability-row small{font-size:9px;color:#9dab9f;line-height:1.4;margin-top:3px}
.chat-capability-note{background:#f5f8f4;border-radius:8px;color:#9bab9e;font-size:9px;line-height:1.5;padding:9px;margin-top:10px}
.chat-team-grid{align-items:start}
.chat-team-member{display:flex;align-items:center;gap:11px;border-top:1px solid #edf2eb;padding:15px 0}
.chat-team-member>span:nth-child(2){flex:1}
.chat-team-member strong,.chat-team-member small{display:block}
.chat-team-member strong{font-size:11px}
.chat-team-member small{font-size:10px;color:#9baa9f;margin-top:4px}
.chat-label-list{display:flex;flex-wrap:wrap;gap:7px;margin:17px 0}
.chat-label-list span{background:#eaf3e4;color:#618459;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:700}
.chat-add-label{display:flex;gap:8px}
.chat-add-label input{flex:1;min-width:0;border:1px solid #dce8dc;border-radius:8px;padding:8px 10px;font-size:11px}

@media(max-width:1250px){.chat-workspace-inbox{grid-template-columns:minmax(255px,300px) minmax(300px,1fr)}.chat-workspace-inbox .context-pane{display:none}.chat-agents-layout{grid-template-columns:220px minmax(320px,1fr)}.chat-agent-capabilities{grid-column:2}}
@media(max-width:900px){.chat-workspace-content{padding:22px 20px 25px}.chat-inbox-page{padding-bottom:0}.chat-workspace-top{padding:0 17px}.chat-workspace-tabs{padding:0 14px}.chat-prototype-hint{display:none}.chat-agents-layout{grid-template-columns:190px minmax(0,1fr)}.chat-agent-capabilities{grid-column:2}.chat-config-grid,.chat-team-grid{grid-template-columns:1fr}}
@media(max-width:650px){.chat-workspace-top{height:57px;padding:0 12px;gap:8px}.chat-workspace-brand small,.chat-workspace-divider,.chat-workspace-store-label{display:none}.chat-workspace-brand strong{font-size:18px}.chat-workspace-demo{font-size:8px;padding:6px}.chat-workspace-tabs{height:49px;padding:0 5px}.chat-workspace-tabs button{font-size:10px;padding:0 11px;gap:5px}.chat-workspace-tabs button .icon{width:14px}.chat-workspace-heading{align-items:flex-start}.chat-workspace-heading h1{font-size:21px}.chat-workspace-heading p{font-size:10px}.chat-workspace-heading .button{padding:8px 9px;font-size:10px}.chat-workspace-content{padding:18px 13px 24px}.chat-inbox-page{padding-bottom:0}.chat-workspace-filters{align-items:flex-start;flex-direction:column;gap:8px}.chat-queue-tabs{width:100%;overflow:auto}.chat-queue-tabs button{padding:7px 9px;font-size:9px}.chat-filter-right{width:100%;justify-content:flex-end}.chat-workspace-inbox{flex:1;display:block;border-radius:12px 12px 0 0;position:relative;min-height:0}.chat-workspace-inbox .inbox-list-pane{height:100%}.chat-workspace-inbox .thread-pane{position:absolute;inset:0;display:none}.chat-workspace-inbox.thread-open .thread-pane{display:flex}.chat-workspace-inbox.thread-open .inbox-list-pane{display:none}.chat-workspace-inbox .context-pane{display:none}.chat-workspace-inbox .thread-head{padding:9px}.chat-workspace-inbox .thread-head-status{display:none}.chat-config-card{padding:17px}.chat-agents-layout{display:block}.chat-agent-list{margin-bottom:12px}.chat-agent-list-top,.chat-agent-list-foot{display:none}.chat-agent-list{display:flex;overflow:auto}.chat-agent-item{width:175px;flex:none;border-top:0;border-right:1px solid #eef2ed}.chat-agent-editor{margin-bottom:12px}.chat-agent-capabilities{margin-bottom:20px}.chat-agent-two{grid-template-columns:1fr}.chat-agent-form-foot{flex-wrap:wrap}.chat-page-demo{display:none}}
@media(max-width:650px){.chat-workspace-store-label{display:flex;font-size:0}.chat-workspace-store-label select{max-width:100px;font-size:9px;padding:6px 14px 6px 6px}}

/* Keep the conversation as the visual focus across workspace sizes. */
.chat-workspace-inbox .inbox-list-head{padding:12px 12px 10px}
.chat-workspace-inbox .chat-list-item{padding:12px 11px}
.chat-workspace-inbox .thread-head{min-height:57px;padding:9px 13px}
.chat-workspace-inbox .composer{padding:10px 12px}
.chat-workspace-inbox .thread-messages{padding:15px 20px}
.chat-workspace-inbox .context-profile{padding:15px 12px 12px}
.chat-workspace-inbox .context-section{padding:13px}

@media(max-width:900px){
  .chat-workspace-mobile-menu{display:grid}
  .chat-workspace-content{padding:15px 15px 18px}
  .chat-inbox-page{padding-bottom:0}
  .chat-workspace-top{height:49px;padding:0 13px}
  .chat-workspace-tabs{height:43px;padding:0 8px}
}
@media(max-width:650px){
  .chat-workspace-top{height:46px;padding:0 10px}
  .chat-workspace-path{font-size:9px;gap:5px}
  .chat-workspace-path strong{max-width:100px;overflow:hidden;text-overflow:ellipsis}
  .chat-workspace-demo{font-size:7px;padding:5px 6px;letter-spacing:0}
  .chat-workspace-user{display:none}
  .chat-workspace-tabs{height:40px}
  .chat-workspace-content{padding:11px 10px 13px}
  .chat-inbox-page{padding-bottom:0}
  .chat-workspace-heading h1{font-size:16px}
  .chat-workspace-heading p{font-size:9px;margin-top:2px}
  .chat-workspace-heading .button{padding:7px 8px;font-size:9px}
  .chat-workspace-filters{gap:5px;margin-bottom:7px}
  .chat-workspace-inbox .thread-messages{padding:13px}
}
