/* Desktop workbench. Shared primitives and layouts; no page-specific overrides. */
:root {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: #263349;
  background: #f5f6f8;
  --blue: #3467dc;
  --line: #e6e9ee;
  --muted: #707c8e;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1,h2,h3,p,dl,dd { margin: 0; }
h2 { font-size: 15px; } h3 { font-size: 13px; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #dce1e9; border-radius: 5px; padding: 8px 12px; color: #43516a; background: #fff; }
button:hover { background: #f1f4f9; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible,summary:focus-visible { outline: 2px solid #719aee; outline-offset: 2px; }
input,select,textarea { width: 100%; border: 1px solid #dce1e9; border-radius: 5px; padding: 9px 10px; background: #fff; color: #263349; }
input:focus,select:focus,textarea:focus { outline: 2px solid #b4cdf8; outline-offset: 0; border-color: var(--blue); }
textarea { line-height: 1.7; resize: vertical; }
img { vertical-align: middle; }
.hidden { display: none !important; }
.connection-view { background: #f6f8fc; }
.connection-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:1160px; margin:5px auto 24px; }
.connection-kicker { display:block; color:#6671a3; font-size:12px; margin-bottom:9px; }
.connection-heading h2 { font-size:25px; color:#1c2c48; letter-spacing:-.5px; margin-bottom:10px; }
.connection-heading p { color:var(--muted); line-height:1.8; }
.setup-tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); max-width:1160px; margin:0 auto 25px; }
.setup-tabs button { border:0; border-radius:0; padding:12px 0; color:var(--muted); background:transparent; }
.setup-tabs .active { color:var(--blue); border-bottom:2px solid var(--blue); font-weight:600; }
.connection-layout { display:grid; grid-template-columns:minmax(300px,1.55fr) minmax(270px,1fr); align-items:start; gap:25px; max-width:1160px; margin:auto; }
.connection-card { padding:28px; border:1px solid #e3e8f2; border-radius:12px; background:white; min-width:0; }
.connection-card>header { display:flex; align-items:center; gap:14px; padding-bottom:22px; margin-bottom:22px; border-bottom:1px solid var(--line); }
.connection-card>header>img { width:44px; height:44px; padding:10px; border-radius:12px; background:#eff2ff; }
.connection-card h3 { font-size:17px; color:#233553; }.connection-card header p { color:var(--muted); font-size:12px; margin-top:6px; }.connection-card header .badge,.connection-card header .state-pill { margin-left:auto; white-space:nowrap; }
.connection-card label { display:block; color:#4a5972; line-height:1.8; margin:16px 0 7px; }
.connection-card input { margin-top:8px; border-radius:7px; padding:11px 12px; }.field-help { color:var(--muted); font-size:12px; line-height:1.85; margin:7px 0 14px; }
.model-label { display:flex; justify-content:space-between; align-items:center; }.model-label label { margin-bottom:0; }
.connection-card .toggle-line { display:flex; gap:12px; padding:17px; background:#f7f9fd; border:1px solid #e8edf6; border-radius:8px; margin:24px 0 16px; }.toggle-line input { width:16px; margin-top:4px; flex-shrink:0; }.toggle-line small { display:block; color:var(--muted); font-weight:400; margin-top:4px; }
.connection-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }.connection-actions button { padding:10px 15px; border-radius:7px; }.connection-result { font-size:12px; line-height:1.8; color:#53678c; min-height:24px; overflow-wrap:anywhere; }.connection-result.error { color:#b34545; }
.setup-steps { list-style:decimal; padding-left:25px; margin:22px 0; }.setup-steps li { padding:0 0 19px 8px; color:#697a95; }.setup-steps li:last-child { padding-bottom:0; }.setup-steps strong { color:#35465f; font-size:13px; }.setup-steps p { font-size:12px; color:var(--muted); line-height:1.9; margin-top:7px; }
.connection-note { border-left:3px solid #c1cef0; margin-top:22px; padding:5px 0 5px 18px; color:#52627c; }.connection-note p { color:var(--muted); line-height:1.9; font-size:12px; margin-top:8px; }
.permission-notice { background:#fffbf1; border:1px solid #f2e5c7; border-radius:8px; padding:16px; margin:15px 0 20px; }.permission-notice strong { color:#86682c; font-size:13px; }.permission-notice p { color:#897652; font-size:12px; line-height:1.9; margin-top:7px; }
.platform-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1160px; margin:0 auto 25px; }.platform-choice { display:flex; align-items:center; gap:12px; text-align:left; border:1px solid #dce4f2; border-radius:10px; background:white; padding:20px; }.platform-choice>img { width:28px; height:28px; }.platform-choice strong { color:#263e61; font-size:15px; }.platform-choice p { font-size:11px; color:var(--muted); margin-top:7px; }.platform-choice .badge,.platform-choice .state-pill { margin-left:auto; white-space:nowrap; }.platform-choice.unavailable { background:#fafbfd; }
.account-onboarding { display:flex; gap:12px; align-items:center; padding:21px 24px; border:1px solid #dce5f7; border-radius:10px; background:#eef3ff; margin:23px 0; }.account-onboarding>div { flex:1; }.account-onboarding p { color:#6c7e9b; font-size:12px; margin-top:7px; line-height:1.8; }.account-onboarding button { white-space:nowrap; }.account-advanced { border-top:1px solid var(--line); padding-top:16px; }.account-advanced summary { cursor:pointer; color:var(--muted); margin-bottom:15px; }.account-advanced .field-row { margin:10px 0; }
.connect-navigation { color:var(--blue); }
@media(max-width:850px){.connection-layout{grid-template-columns:1fr}.platform-choices{grid-template-columns:1fr}.account-onboarding{flex-wrap:wrap}.account-onboarding>div{flex-basis:100%}.connection-heading{align-items:flex-start}.connection-card{padding:20px}.connection-heading h2{font-size:21px}.connection-heading{flex-wrap:wrap}.connection-card header .badge{font-size:10px}.setup-tabs{gap:20px}}
.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: #2957c0; }
.small { font-size: 12px; padding: 6px 11px; }
.subtle { color: var(--muted); font-size: 12px; }
.text-button { padding: 3px 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; }
.text-button:hover { background: transparent; color: #214ea9; }
.icon-button { display: grid; place-items: center; padding: 6px; border: 0; background: transparent; border-radius: 4px; }
.icon-button img { width: 17px; height: 17px; opacity: .65; }
.logo { width: 38px; height: 38px; background: var(--blue); border-radius: 10px; display: grid; place-items: center; }
.logo img { width: 23px; height: 23px; filter: brightness(0) invert(1); }
.avatar { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #5d718a; background: #eaf0f7; font-size: 12px; font-weight: 600; }
.badge,.state-pill { padding: 4px 7px; background: #edf2fa; color: #536c99; border-radius: 4px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.state-pill.good { background: #eaf6ef; color: #39775a; }
.state-pill.neutral { background: #f1f3f6; color: #707c8e; }
/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.intro { background: #f0f3f8; padding: 60px; display: flex; justify-content: center; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 18px; font-weight: 600; }
.intro h1 { margin-top: 60px; font-size: 32px; font-weight: 600; color: #2b3e5b; }
.intro p { margin-top: 16px; color: #68788e; font-size: 14px; }
.intro-footer { margin-top: 90px; color: #7c899b; font-size: 12px; }
.login-card { width: 380px; max-width: 100%; padding: 30px; justify-self: center; align-self: center; }
.login-card h2 { font-size: 23px; font-weight: 600; margin-bottom: 12px; }
.login-card p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 26px; }
.login-card label { display: block; margin: 16px 0; font-size: 12px; color: #5d6c82; }
.login-card input { margin-top: 7px; }
.login-card button { width: 100%; margin: 8px 0; padding: 11px; }
.login-card small { display: block; font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #7c8797; font-size: 11px; }
.login-divider:before,.login-divider:after { content: ''; flex: 1; height: 1px; background: var(--line); }
.error { color: #ba4d4d; font-size: 12px; line-height: 1.7; }
/* App frame */
.workspace { height: 100vh; display: flex; overflow: hidden; }












.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 54px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fff; gap: 12px; }
.workspace-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-title>.logo { width: 29px; height: 29px; border-radius: 7px; }.workspace-title>.logo img { width: 19px; height: 19px; }
.main-navigation { display: flex; gap: 18px; align-items: center; margin-left: 26px; height: 54px; }
.main-navigation>button { height: 100%; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 8px; color: #65768b; font-size: 13px; background: transparent; }
.main-navigation>button.active { color: var(--blue); border-bottom-color: var(--blue); }
.settings-menu { position: relative; }.settings-menu>summary { display: flex; gap: 4px; align-items: center; color: #65768b; font-size: 13px; padding: 13px 0; }.settings-menu>summary img { width: 12px; height: 12px; opacity: .5; }.settings-menu.active>summary { color: var(--blue); }
.settings-options { position: absolute; top: 40px; left: -12px; width: 165px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px #26384f1a; z-index: 25; }
.settings-options button { display: block; width: 100%; border: 0; background: transparent; text-align: left; border-radius: 3px; font-size: 12px; padding: 11px 10px; }.settings-options button:hover,.settings-options button.active { background: #edf3fc; color: var(--blue); }
.product-name { font-size: 14px; font-weight: 600; white-space: nowrap; }
.title-divider { width: 1px; height: 16px; background: #dfe3e9; }
.topbar h1 { font-size: 13px; color: #68788d; font-weight: 400; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.connection { font-size: 11px; color: #7b8799; white-space: nowrap; }
.connection:before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #b07c50; vertical-align: middle; }
.connection.online { color: #47866d; }.connection.online:before { background: #47866d; }
.connection.offline { color: #b56745; }
#compact { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 6px 9px; }
#compact img { width: 15px; height: 15px; opacity: .6; }
.statusbar { height: 23px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 0 15px; background: #fff; color: #707e91; font-size: 10px; }
/* Menus */
details>summary { list-style: none; cursor: pointer; }
details>summary::-webkit-details-marker { display: none; }
.service-menu,.scope-filter,.status-filter,.control-menu { position: relative; }
.service-menu>summary { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9b7242; white-space: nowrap; }
.service-menu>summary img,.status-filter>summary img { width: 12px; height: 12px; opacity: .6; }
.service-popover,.scope-popover,.status-popover,.control-popover { position: absolute; border: 1px solid #dfe4eb; background: #fff; border-radius: 7px; box-shadow: 0 6px 24px #23334d1a; z-index: 20; }
.service-popover { top: 30px; right: 0; width: 300px; padding: 18px; }
.service-popover h3 { margin-bottom: 12px; }.service-popover p,.demo-banner,.channel-overview { font-size: 11px; color: #65748a; line-height: 1.8; margin-top: 10px; }
.runtime-chip { padding: 3px 6px; background: #f1f4f8; border-radius: 4px; color: #66778e; font-size: 11px; }
.demo-banner { padding: 10px; background: #fff8e9; border-radius: 4px; color: #8f713f; }
.scope-filter>summary,.control-menu>summary { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; }
.scope-filter>summary:hover,.control-menu>summary:hover { background: #edf2f8; }
.scope-filter>summary img,.control-menu>summary img { width: 17px; height: 17px; opacity: .6; }
.scope-filter.filtered>summary { background: #eaf1ff; }
.scope-popover { top: 32px; right: 0; width: 225px; padding: 14px; }
.scope-popover label { display: block; color: #66758b; font-size: 12px; margin-bottom: 12px; }.scope-popover select { margin-top: 7px; }
.status-filter>summary { height: 40px; display: flex; align-items: center; gap: 2px; font-size: 11px; color: #727f92; }
.status-filter.filtered>summary { color: var(--blue); }
.status-popover { top: 39px; right: 0; width: 160px; padding: 5px; }.status-popover button { width: 100%; padding: 10px; text-align: left; border: 0; border-radius: 3px; background: #fff; }
.status-popover button:hover { background: #f0f4fc; }
.control-popover { bottom: 35px; right: 0; width: 150px; padding: 5px; }.control-popover button { width: 100%; border: 0; padding: 10px; text-align: left; background: transparent; }
/* Conversation list */
.chat-section { display: flex; flex: 1; min-height: 0; }
.chat-layout { display: grid; grid-template-columns: 272px minmax(350px,1fr) 248px; flex: 1; min-height: 0; }
.conversation-panel { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); min-height: 0; padding: 0 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; height: 57px; flex-shrink: 0; gap: 8px; }
.panel-heading h2 { font-size: 14px; font-weight: 600; }.panel-heading h2 span { color: #7a889b; font-size: 12px; font-weight: 400; margin-left: 6px; }
.panel-tools { display: flex; gap: 4px; align-items: center; }
.search-box { display: flex; align-items: center; background: #f4f5f7; border: 1px solid transparent; border-radius: 5px; padding-left: 10px; margin-bottom: 10px; }
.search-box>img { width: 15px; height: 15px; opacity: .4; }
.search { min-width: 0; background: transparent; border: 0; font-size: 12px; padding: 9px 8px; }
#account-filter { padding: 8px 9px; font-size: 12px; color: #64758c; }
.list-tabs { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; margin-top: 12px; gap: 7px; }
.list-tabs>button { padding: 11px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 11px; color: #748196; white-space: nowrap; }
.list-tabs>button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.list-tabs span[id^=metric] { display: inline-block; margin-left: 2px; padding: 0 3px; color: #66758b; background: #f0f2f5; border-radius: 3px; font-size: 10px; }
.active-scope { font-size: 10px; color: #617ca2; padding: 7px 0; }
.conversation-list { flex: 1; overflow: auto; min-height: 0; margin: 5px -16px 0; }
.conversation { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 0; border-left: 3px solid transparent; border-bottom: 1px solid #f2f3f6; padding: 17px 14px 17px 12px; background: #fff; }
.conversation:hover { background: #f7f9fc; }.conversation.selected { background: #edf3fd; border-left-color: var(--blue); }
.conversation-avatar { margin-top: 2px; width: 35px; height: 35px; border-radius: 9px; background: #edf0f5; display: grid; place-items: center; flex-shrink: 0; }.conversation-avatar img { width: 19px; height: 19px; opacity: .35; }
.conversation-body { flex: 1; min-width: 0; }
.conversation-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.conversation-name { font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }.conversation-time { color: #7c889a; font-size: 10px; flex-shrink: 0; }
.conversation-preview { font-size: 12px; color: #748198; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; margin-bottom: 9px; }
.conversation-bottom { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #8a96a7; }
.conversation-bottom>span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.mode-text { white-space: nowrap; color: #607da6; }.mode-text.manual { color: #8d719a; }
.list-attention,.list-contact { font-size: 10px; line-height: 1.6; color: #a27844; margin-top: 7px; }.list-contact { color: #4e8b71; }
/* Chat */
.chat-panel { display: flex; min-width: 0; min-height: 0; background: #f5f6f8; }
.empty { margin: auto; padding: 25px; text-align: center; color: #7c899b; line-height: 2; }
.empty h2,.empty h3 { color: #60748f; font-size: 14px; font-weight: 500; }.empty p { font-size: 12px; margin-top: 9px; }.empty-symbol img,.empty>img { width: 40px; height: 40px; opacity: .25; margin-bottom: 14px; }
.active-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-heading { min-height: 65px; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.customer-avatar img { width: 19px; height: 19px; opacity: .5; }.chat-heading-info { flex: 1; min-width: 0; }
.chat-heading>div { min-width: 0; }.chat-heading h2 { font-size: 14px; font-weight: 600; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.chat-heading p { font-size: 11px; color: #77859a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-heading .badge { margin-left: 0; background: transparent; color: #7a8ca3; font-size: 10px; }
#back-list,#context-toggle,#context-close { display: none; }
.messages { flex: 1; min-height: 80px; overflow: auto; padding: 24px; background: #f7f8fa; }
.message-history { display: flex; flex-direction: column; gap: 24px; }
.message { max-width: 82%; align-self: flex-start; }.message.outgoing { align-self: flex-end; }
.message-meta { margin-bottom: 7px; font-size: 11px; color: #8490a2; }.outgoing .message-meta { text-align: right; }
.bubble { background: #fff; border: 1px solid #e5e8ed; border-radius: 7px; padding: 11px 14px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: #34425b; }
.outgoing .bubble { background: #e5edfb; border-color: #dce6f7; }
.message-image { max-width: 220px; max-height: 180px; border-radius: 4px; display: block; }
.message-result { text-align: right; font-size: 10px; margin-top: 5px; color: #8594a8; }.message-result.failed,.message-result.unknown { color: #b15f46; }
.draft-panel { margin: 23px 0 0 auto; padding: 0; max-width: 82%; }
.draft-title,.draft-actions { display: flex; gap: 9px; justify-content: flex-end; align-items: center; font-size: 11px; color: #8294af; }.draft-title { margin-bottom: 7px; flex-wrap: wrap; }.draft-title span:first-child { color: #778ca9; font-weight: 400; }.draft-actions { margin-top: 7px; flex-wrap: wrap; }.draft-panel textarea { font-size: 13px; background: #eaf0fa; border: 1px solid #d4dff0; line-height: 1.85; padding: 10px 13px; min-height: 64px; }.draft-panel textarea[readonly] { resize: none; outline: none; border-style: dashed; }
.composer { border-top: 1px solid #dee4ed; background: #fff; padding: 8px 18px 12px; flex-shrink: 0; }
.control-actions { display: flex; align-items: center; min-height: 32px; margin-bottom: 7px; }
.compose-tools { display: flex; gap: 19px; align-items: center; }.compose-tool { display: flex; gap: 6px; align-items: center; padding: 5px 0; color: #6a7b91; border: 0; background: transparent; font-size: 11px; }.compose-tool img { width: 17px; height: 17px; opacity: .55; }
.upload-button { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 5px 0; color: #6a7b91; font-size: 11px; }.upload-button img { width: 17px; height: 17px; opacity: .55; }
.reception-actions { display: flex; align-items: center; gap: 7px; }.reception-actions>button { border-color: #dce4ef; font-size: 11px; padding: 4px 8px; color: #617ca3; }
.composer textarea { border: 0; border-radius: 0; padding: 3px 0; resize: none; font-size: 13px; height: 95px; outline: none; }
.chat-heading .control-popover { bottom: auto; top: 34px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }.composer-footer span { font-size: 10px; color: #8a96a7; }.composer-footer button { min-width: 75px; }
/* Customer drawer */
.context-panel { overflow: auto; padding: 0 16px; background: #fff; border-left: 1px solid var(--line); }
.context-tabs { display: flex; align-items: center; justify-content: space-between; height: 46px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.context-tabs>button[role=tab] { height: 100%; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 12px; color: #78879d; }.context-tabs>button[role=tab].active { color: var(--blue); border-bottom-color: var(--blue); }
.erp-details { padding: 14px 0; border-bottom: 1px solid #eef0f3; }.erp-details>summary { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #7b8ba1; }.erp-details>summary img { width: 13px; height: 13px; opacity: .5; }.erp-details .erp-status { border: 0; padding: 13px 0 0; }
.quick-reply-note { font-size: 11px; line-height: 1.8; color: #8090a5; margin: 17px 0; }.phrase { display: block; width: 100%; text-align: left; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }.phrase strong { display: block; color: #577496; font-size: 12px; font-weight: 500; margin-bottom: 7px; }.phrase span { display: block; font-size: 11px; line-height: 1.8; color: #7a8ca3; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-identity { display: flex; align-items: center; gap: 10px; padding: 18px 0; }.customer-identity strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }.customer-identity p { font-size: 11px; color: #8591a3; }
.customer-facts { padding: 4px 0 17px; border-bottom: 1px solid #eef0f3; }.facts-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #3b4c66; font-weight: 600; font-size: 12px; }.facts-heading h3 { font-size: 12px; }
.contact-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 11px; font-size: 12px; color: #7a8799; }.contact-line strong { font-weight: 400; color: #344861; overflow-wrap: anywhere; }.customer-facts>.subtle { margin-top: 10px; color: #8693a5; font-size: 11px; }
.candidate-note { margin-top: 12px; background: #fff8ed; padding: 10px; font-size: 11px; color: #99774b; border-radius: 5px; }.attention-note { margin-top: 12px; font-size: 11px; line-height: 1.8; color: #ac6d3d; }
.profile-section { padding: 18px 0; border-bottom: 1px solid #eef0f3; }.profile-summary dl { margin-top: 14px; display: grid; grid-template-columns: 65px minmax(0,1fr); column-gap: 12px; row-gap: 13px; font-size: 12px; line-height: 1.7; }.profile-summary dt { color: #8390a3; }.profile-summary dd { color: #41556f; overflow-wrap: anywhere; white-space: pre-wrap; }.profile-summary dd.unset { color: #9aa4b3; }
.profile-form label { font-size: 11px; color: #7a879b; display: block; margin: 12px 0; }.profile-form input,.profile-form textarea { font-size: 12px; padding: 7px 8px; margin-top: 6px; }.profile-form .field-row { gap: 8px; }.profile-actions { display: flex; gap: 8px; margin-top: 12px; }
.erp-status { padding: 17px 0; border-bottom: 1px solid #eef0f3; }.erp-status p,.erp-status small { display: block; font-size: 11px; color: #8390a3; line-height: 1.8; margin-top: 9px; }.erp-status p { font-size: 10px; }
.context-knowledge { padding: 17px 0; }.context-knowledge>summary { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }.context-knowledge>summary img { width: 14px; height: 14px; opacity: .5; }.context-knowledge:not([open])>summary img { transform: rotate(-90deg); }
.context-details { padding-top: 13px; }.context-details .info-row { padding: 9px 0; }.context-details h3 { font-size: 11px; font-weight: 400; color: #8390a3; margin-bottom: 6px; }.context-details p { font-size: 12px; line-height: 1.8; color: #52677f; overflow-wrap: anywhere; }.context-details strong { font-weight: 500; }
.context-details details { border-top: 1px solid #eef0f3; margin-top: 12px; padding-top: 12px; }.context-details details>summary { font-size: 11px; color: #6883a7; margin-bottom: 8px; }
/* Settings */
.settings-view { flex: 1; overflow: auto; padding: 25px 32px; background: #f5f6f8; }
.section-intro { position: relative; padding-right: 125px; }
.section-action { position: absolute; right: 0; top: 0; }
.editor-dialog { padding: 0; width: 600px; max-width: calc(100vw - 32px); max-height: calc(100vh - 50px); border: 1px solid #dce3ed; border-radius: 8px; color: inherit; }
.editor-dialog::backdrop { background: #1f304954; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.dialog-heading h2 { font-size: 15px; font-weight: 600; }
.editor-dialog .editor-form { border: 0; border-radius: 0; margin: 0; }
.editor-dialog .editor-form>h3 { display: none; }
.account-ai-settings { border: 1px solid #e1e7f0; border-radius: 6px; padding: 12px 15px; margin: 10px 0 20px; min-width: 0; }
.account-ai-settings legend { font-size: 13px; color: #45648e; padding: 0 6px; }.account-ai-settings legend span { margin-left: 12px; font-size: 11px; color: #8696ac; }
.account-ai-settings .ai-enabled-label { display: flex; align-items: center; gap: 8px; }.account-ai-settings .ai-enabled-label input { width: auto; margin: 0; }
.account-ai-settings>.subtle { font-size: 11px; line-height: 1.8; }
.eyebrow { display: none; }.section-intro h2 { font-size: 19px; font-weight: 600; margin-bottom: 9px; }.section-intro p { color: #76849a; font-size: 12px; line-height: 1.8; max-width: 850px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 15px; margin: 22px 0; }
.info-card { background: #fff; padding: 20px; border: 1px solid var(--line); border-radius: 6px; }.info-card h3 { margin: 15px 0 9px; font-size: 15px; }.info-card p { font-size: 12px; color: #75859b; line-height: 1.9; white-space: pre-wrap; }.info-card .card-foot { color: #8c99ac; font-size: 10px; margin-top: 15px; }.info-card button { font-size: 12px; margin-top: 13px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; }.account-card dl { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; font-size: 11px; margin-top: 16px; line-height: 1.6; }.account-card dt { color: #8a97aa; }.account-card dd { color: #5e738d; overflow-wrap: anywhere; }
.editor-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; max-width: 760px; margin-bottom: 20px; }.editor-form h3 { font-size: 15px; margin-bottom: 18px; }.editor-form label { display: block; margin: 16px 0; color: #65768d; font-size: 12px; }.editor-form input,.editor-form select,.editor-form textarea { margin-top: 7px; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.checks { display: flex; flex-wrap: wrap; gap: 18px; }.checks label { display: flex; align-items: center; gap: 7px; }.checks input { width: auto; margin: 0; }
.test-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 20px; margin-top: 22px; max-width: 1300px; }.test-layout .editor-form { align-self: start; }.test-source { font-size: 11px; line-height: 1.9; color: #6f8199; white-space: pre-wrap; padding: 12px; background: #f3f5f8; border-radius: 4px; max-height: 180px; overflow: auto; }.test-actions { display: flex; gap: 8px; }.test-layout .editor-form>small { display: block; font-size: 10px; line-height: 1.8; color: #8391a4; margin-top: 16px; }
.test-results { border: 1px solid var(--line); border-radius: 6px; background: #fff; display: flex; flex-direction: column; min-height: 490px; overflow: hidden; }.test-results>.panel-heading { padding: 0 20px; border-bottom: 1px solid var(--line); }.test-messages { padding: 22px; background: #f5f6f8; overflow: auto; min-height: 260px; max-height: 540px; height: 400px; flex: 1; }.test-messages .empty { padding-top: 70px; }.test-message { max-width: 88%; margin-bottom: 20px; }.test-message>span { display: block; font-size: 11px; color: #8995a6; margin-bottom: 7px; }.test-message p { background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.9; padding: 12px 15px; white-space: pre-wrap; overflow-wrap: anywhere; }.test-message.customer { margin-left: auto; }.test-message.customer>span { text-align: right; }.test-message.customer p { background: #e5edfb; border-color: #dce6f7; }.test-message small { color: #b36949; font-size: 11px; }.test-references { padding: 14px 20px; font-size: 10px; line-height: 1.9; color: #8190a5; white-space: pre-wrap; border-top: 1px solid var(--line); }
.demo-inject { position: fixed; right: 20px; top: 73px; width: 330px; padding: 0 18px 18px; background: #fff; border: 1px solid #e1e5ec; border-radius: 7px; box-shadow: 0 8px 30px #26374c25; z-index: 25; }.demo-inject .panel-heading { height: 48px; }.demo-inject p { font-size: 11px; color: #8b7658; line-height: 1.8; }.demo-inject textarea { margin: 12px 0; font-size: 12px; }.demo-inject>button { width: 100%; }
.toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); padding: 11px 18px; background: #273951; color: #fff; border-radius: 5px; z-index: 40; max-width: 90%; font-size: 12px; line-height: 1.7; }
@media (max-width:1100px) {
  .chat-layout { grid-template-columns: 270px minmax(300px,1fr); }
  .context-panel { display: none; } #context-toggle { display: block; }
  body.context-open .context-panel { display: block; position: fixed; z-index: 30; width: 306px; top: 54px; right: 0; bottom: 23px; border-left: 1px solid #dce3ed; box-shadow: -8px 0 25px #27384f18; }
  body.context-open #context-close { display: grid; }
  .header-actions { gap: 10px; }.product-name,.title-divider { display: none; }
  .test-layout { grid-template-columns: 280px minmax(0,1fr); }
}
@media (max-width:750px) {
  
  .topbar { padding: 0 13px; }.test-layout { grid-template-columns: 1fr; }.settings-view { padding: 22px; }
  .chat-layout { grid-template-columns: 235px minmax(0,1fr); }.conversation-panel { padding: 0 12px; }.conversation-list { margin-left: -12px; margin-right: -12px; }
}
@media (max-width:680px) {
  
  .topbar { height: 48px; padding: 0 10px; }.main-navigation { height: 48px; margin-left: 0; gap: 12px; }.main-navigation>button,.settings-menu>summary { font-size: 12px; }.workspace-title { gap: 8px; }.workspace-title>.logo { width: 25px; height: 25px; }.header-actions { gap: 8px; }.header-actions>.avatar,.connection { display: none; } #demo-tool-toggle { font-size: 10px; } #compact { font-size: 10px; padding: 5px 7px; } #compact img { display: none; }.service-menu>summary { font-size: 10px; }#logout { padding: 4px; }
  .chat-layout { display: block; }.conversation-panel { height: 100%; padding: 0 16px; }.conversation-list { margin-left: -16px; margin-right: -16px; }.chat-panel { display: none; height: 100%; }body.chat-open .conversation-panel { display: none; }body.chat-open .chat-panel { display: flex; }
  #back-list { display: grid; }.chat-heading { padding: 10px 8px; gap: 6px; min-height: 65px; }.chat-heading .customer-avatar { display: none; }.chat-heading h2 { font-size: 13px; }.chat-heading p { font-size: 10px; }.chat-heading .badge { font-size: 9px; padding: 0; } #context-toggle { padding: 5px; }.chat-heading .reception-actions { gap: 4px; }.reception-actions>button { font-size: 10px; }.control-menu>summary { width: 23px; }
  .messages { padding: 18px 15px; }.message-history { gap: 19px; }.message { max-width: 90%; }.bubble { font-size: 12px; padding: 10px 12px; }.composer { padding: 8px 14px 12px; }.composer textarea { height: 84px; }.composer-footer span { font-size: 9px; }.draft-panel { margin: 19px 0 0 auto; max-width: 90%; }.draft-actions { font-size: 10px; }.draft-title { font-size: 10px; }
  body.context-open .context-panel { top: 48px; width: 100vw; max-width: 340px; }.statusbar span:last-child { display: none; }.statusbar { font-size: 9px; }.service-popover { right: -100px; width: 286px; }.demo-inject { right: 10px; top: 58px; max-width: calc(100vw - 24px); }
  .login-screen { display: block; }.intro { padding: 25px; }.intro h1,.intro p,.intro-footer { display: none; }.login-card { margin: 20px auto; padding: 22px; width: 360px; }.brand { font-size: 16px; }
  .settings-view { padding: 18px; }.section-intro { padding-right: 0; padding-top: 42px; }.field-row { grid-template-columns: 1fr; }.profile-form .field-row { grid-template-columns: 1fr 1fr; }.editor-form { padding: 17px; }.card-grid { grid-template-columns: 1fr; }.test-layout { gap: 15px; }.test-messages { padding: 16px; }.test-results { min-height: 430px; }
}
