/* 雾蓝 × 暖白配色，匹配所提供的调色板。 */
:root{--ink:#202c38;--muted:#71808a;--line:#e0e5e8;--green:#304c69;--surface:#fff;--subtle:#f8f7f3;--accent:#304c69}
/* 表格、审核徽章与描述文本共用同一组中性蓝 token。 */
#workspace table th,#workspace .table-wrap th,#workspace .analytics-table th{background:#eaf0f5;color:#304c69;border-color:#dce5ed}
#workspace table td{border-color:#e1e7ed}#workspace tbody tr:hover{background:#f6f8fb}
#experiencePanel .review-type{background:#e7eef5;color:#4b6984;border:1px solid #dce6ef;border-radius:7px}
#experiencePanel .review-callout strong,#experiencePanel .review-callout p{color:#304c69}
#experiencePanel .review-row-meta,#experiencePanel .experience-inbox-row>p,#experiencePanel .review-row-footer>small,#experiencePanel .review-empty,#experiencePanel .review-help{color:#71808a}
#experiencePanel .experience-processed{color:#426881;background:#e7eef5}
#experiencePanel .experience-inbox-row:hover{border-color:#c7d6e3;box-shadow:0 4px 18px #304c6908}
#experiencePanel .review-row-footer{border-color:#e2e8ee}#experiencePanel .review-link{color:#526e88}
#experiencePanel .review-link:hover{background:#e9f0f6;color:#304c69}
#experiencePanel .experience-inbox-title,#experiencePanel .experience-inbox-title:hover{color:#304c69}
#workspace .record-sidebar{position:relative;overflow:visible}
.record-resizer{position:absolute;z-index:3;touch-action:none;user-select:none;border-radius:8px;outline-offset:0}
.record-resizer:before{content:'';position:absolute;border-radius:4px;background:#cfdae4;transition:background-color .15s,opacity .15s;opacity:.65}
.record-resizer.resize-width{right:-15px;top:8px;bottom:8px;width:12px;cursor:col-resize}
.record-resizer.resize-width:before{width:3px;top:38%;bottom:38%;left:4px}
.record-resizer.resize-height{bottom:-15px;left:8px;right:8px;height:12px;cursor:row-resize}
.record-resizer.resize-height:before{height:3px;left:38%;right:38%;top:4px}
.record-resizer:hover:before,.record-resizer.dragging:before,.record-resizer:focus-visible:before{background:#80aab7;opacity:1}
.record-resizer.resize-width:hover:before,.record-resizer.resize-width.dragging:before{top:0;bottom:0}
.record-resizer.resize-height:hover:before,.record-resizer.resize-height.dragging:before{left:0;right:0}
.resizing-records,.resizing-records *{user-select:none!important}
#recordsWorkspace>.record-sidebar,#recordsWorkspace>.record-detail{height:var(--record-pane-height,calc(100dvh - 176px));min-height:320px}
#recordsWorkspace .record-item{grid-template-columns:minmax(0,1fr) auto;align-items:start}#recordsWorkspace .record-item strong{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#recordsWorkspace .record-kind{white-space:nowrap;font-size:11px}
@media(min-width:761px){#recordsWorkspace{grid-template-columns:var(--record-list-width,285px) minmax(0,1fr)}}
@media(min-width:1440px){#recordsWorkspace:has(#customerProfile:not([hidden])){grid-template-columns:var(--record-list-width,285px) minmax(0,1fr) 290px}}
@media(max-width:760px){.record-resizer.resize-width{display:none}#recordsWorkspace{display:block}}
/* 共享交互状态，包括继承自原 UI 的控件。 */
#workspace button,#workspace .button,body:has(#workspace:not([hidden]))>header button{transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s;cursor:pointer}
#workspace button:not(.primary),#workspace .button{border-color:#d7e1e9;color:#304c69}
#workspace button:not(.primary):not(:disabled):hover,#workspace .button:hover{background:#e9f0f6;border-color:#bacddd;color:#263f59}
#workspace button:not(.primary):not(:disabled):active,#workspace .button:active{background:#dbe7f1}
#workspace button.primary:not(:disabled):hover{background:#3e6081;border-color:#3e6081;box-shadow:0 3px 9px #304c6926}
#workspace button.primary:not(:disabled):active{background:#253e58;box-shadow:none}
#workspace button:disabled{cursor:default}
#workspace :is(button,a,summary,input,textarea,select,[tabindex]):focus-visible{outline:2px solid #80aab7;outline-offset:3px;box-shadow:0 0 0 4px #80aab718}
#workspace :is(input,textarea,select):focus{outline:2px solid #80aab7;outline-offset:1px}
#workspace .publish button[form=agentForm]{background:#e7eef5;border-color:#d9e4ee;color:#304c69}
#workspace .publish button[form=agentForm]:hover{background:#d8e5f0;border-color:#bbcedf}
#experiencePanel .experience-tabs button{border-bottom:0;color:#71808a;transition:background-color .16s,color .16s;padding:12px 10px;border-radius:8px 8px 0 0}
#experiencePanel .experience-tabs button[aria-pressed=true]{color:#304c69;background:#edf2f7;border-bottom:0;font-weight:600}
#experiencePanel .experience-tabs button[aria-pressed=true]:after{background:#80aab7;left:10px;right:10px}
#experiencePanel .experience-tabs button:hover{background:#e9f0f6;color:#304c69}
#workspace .workbench-tabs button:hover,#workspace .settings-nav button:hover{background:#edf2f7}
#workspace .sidebar button:hover{background:#e0eaf2;border-color:transparent}#workspace .sidebar button.selected{color:#304c69;background:#dce7f0}
#workspace .sidebar-children button{transition:background-color .16s,color .16s,box-shadow .16s}#workspace .sidebar-children button:hover{box-shadow:inset 3px 0 #80aab7}
#workspace .library-row:hover,#workspace #sources>li:hover{background:#f0f4f8;transition:background-color .16s}
body:has(#workspace:not([hidden]))>footer{display:none}
.analytics-line-chart+p:empty{display:none}.page-description{display:none}
.context-help{grid-column:1/-1;font-size:12px;color:#71808a;margin:0}.context-help>summary{cursor:pointer;list-style:none;display:inline-block;padding:5px 9px;border-radius:6px;color:#58728a;background:#f1f5f8}.context-help>summary:hover{background:#e5edf4}.context-help>p{margin:8px 0 0}
/* 使用浏览器的可定制 select，保留原生表单与键盘行为。 */
@supports (appearance:base-select){
 #workspace select:not([multiple]){appearance:base-select;display:flex;align-items:center;gap:12px;cursor:pointer;transition:border-color .16s,box-shadow .16s,background-color .16s}
 #workspace select:not([multiple]):hover{border-color:#a8bfce;background:#fafcfe}
 #workspace select:not([multiple]):open{border-color:#80aab7;background:#fff;box-shadow:0 0 0 3px #80aab71a}
 #workspace select:not([multiple])::picker(select){appearance:base-select;background:#fff;border:1px solid #dce5ed;border-radius:12px;box-shadow:0 8px 28px #203c3826;padding:6px;margin-top:7px;max-height:320px;overflow:auto;color:#304c69}
 #workspace select:not([multiple])::picker-icon{color:#758e9f;transition:rotate .18s;margin-left:auto;font-size:12px}
 #workspace select:not([multiple]):open::picker-icon{rotate:180deg}
 #workspace select:not([multiple]) option{border-radius:7px;padding:11px 13px;min-height:42px;line-height:1.5;font-size:13px;cursor:pointer;display:flex;gap:12px;align-items:center;white-space:normal;transition:background-color .12s,color .12s}
 #workspace select:not([multiple]) option:checked{color:#304c69;background:#eaf1f7;font-weight:600}
 #workspace select:not([multiple]) option:hover,#workspace select:not([multiple]) option:focus{background:#dce9f2;color:#243f5a;outline:none}
 #workspace select:not([multiple]) option::checkmark{color:#527b9a;order:2;margin-left:auto}
 #workspace select:not([multiple]) option:disabled{opacity:.45;cursor:default}
}
@media(prefers-reduced-motion:reduce){#workspace *,#workspace select::picker-icon{transition:none!important;animation:none!important}}
body,body:has(#workspace:not([hidden]))>header{background:#f8f7f3;color:#202c38}
body:has(#workspace:not([hidden])) .sidebar{background:#eef2f5;border-color:#dce3e9}
.sidebar-brand>.workbench-mark{background:#304c69}.sidebar-brand,.sidebar-brand span:not(.workbench-mark){color:#304c69}.sidebar-tenant{background:#e5edf3;border-color:#d9e2ea;color:#52677b}
.sidebar button{color:#536779}.sidebar button:hover{background:#e3ebf1}.sidebar button.selected{background:#dce7f0;color:#304c69}
.hierarchy-route-bank,#managementTabs,#settingsArea>.workbench-tabs,[data-view=library]>.settings-shell>.settings-nav,.sidebar>.knowledge-fallback,.sidebar>.management-fallback{display:none!important}
.sidebar-section{margin:0;padding:0}.sidebar-section-toggle .nav-chevron{margin-left:auto;font-size:16px;transition:transform .15s}.sidebar-section-toggle[aria-expanded=true] .nav-chevron{transform:rotate(180deg)}
.sidebar-children{margin:5px 0 10px 24px;padding-left:12px;border-left:1px solid #cad8e3;display:grid;gap:4px}
.sidebar .sidebar-children button{padding:8px 12px;min-height:37px;font-size:12px;font-weight:400;border-radius:7px;line-height:1.5}.sidebar .sidebar-children button.selected{color:#304c69;background:#dae6ef;font-weight:600}
.sidebar-section-toggle>span:not(.nav-chevron){flex:1;text-align:left}
.sidebar .sidebar-section-toggle{width:100%}.workspace-content .card{border-color:#e1e6e8;box-shadow:0 3px 18px #304c6905}
.workspace-content button.primary{background:#304c69;border-color:#304c69}.workspace-content button.primary:hover{background:#243e58}
.workspace-content input[type=checkbox],.workspace-content input[type=radio]{accent-color:#304c69}
.workspace-content .workbench-tabs button.selected,.settings-nav button.selected,.management-tabs button.selected,.experience-tabs button[aria-pressed=true]{color:#304c69}
.workbench-tabs button.selected:after,.settings-nav button.selected:after,.experience-tabs button[aria-pressed=true]:after{background:#80aab7}
.scope-pill,.capability-state{background:#e8eff4;color:#49637c}.capability-state.unavailable{background:#fcf1df;color:#87632e}
.record-item[aria-pressed=true]{background:#e6eef5;border-color:#cbdbe7}.record-item:hover{background:#f0f4f7}.conversation-message{background:#eff3f6}
.analytics-guide>button{background:#f7f9fb;border-color:#dfe6ec}.analytics-guide>button:hover{background:#eaf1f6}.shortcut-arrow{color:#80aab7}
.overview-metrics .analytics-kpis>div:before{display:none}.metric-symbol{position:absolute;left:20px;top:26px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e4edf5;color:#456986}
.metric-symbol svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
[data-metric=customer_messages] .metric-symbol{background:#e6f0f1;color:#608d99}[data-metric=ai_reply_messages] .metric-symbol{background:#eceaf5;color:#81769c}[data-metric=human_reply_messages] .metric-symbol{background:#f5ede3;color:#aa8964}
.analytics-line{stroke:#80aab7}.analytics-point{fill:#304c69}.library-expand{display:block;margin:16px auto 0;background:#edf2f6;color:#304c69;border:1px solid #dbe5ec;padding:8px 18px!important}
.settings-nav [data-workspace].selected{color:#71808a}.business-tabs button.selected{color:#304c69;background:#e6edf4;border-color:#bccfdf}
#conversationEmpty p:before{background:#edf2f6;color:#80aab7}.lean-disclosure>summary,.inline-help>summary{color:#526d83}
/* 保持导航栏可见（包括较窄窗口下）；不使用汉堡菜单。 */
#workspaceMenu{display:none!important}
body:has(#workspace:not([hidden])) .sidebar{margin:0;border-radius:0}
#capabilitySection{background:#f2f5f7;border-color:#dfe6ec}.settings-disclosure>summary{color:#304c69}.settings-disclosure>summary span{background:transparent}
@media(max-width:1199px){body:has(#workspace:not([hidden])) .sidebar{display:flex!important;position:fixed;inset:0 auto 0 0;width:210px;height:100dvh;max-height:100dvh;padding:24px 12px;box-shadow:none}body:has(#workspace:not([hidden]))>header{padding-left:234px}body:has(#workspace:not([hidden]))>main{padding-left:234px}.overview-columns{grid-template-columns:1fr}.records-workspace{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){body:has(#workspace:not([hidden])) .sidebar{width:154px;padding:20px 8px;gap:6px}body:has(#workspace:not([hidden]))>header{padding-left:170px;gap:8px}body:has(#workspace:not([hidden]))>main{padding-left:170px}.sidebar button{padding:10px 8px;gap:7px;font-size:12px}.sidebar-brand{padding-left:0;font-size:21px;min-height:0;margin-bottom:18px}.sidebar-brand>.workbench-mark{display:none}.sidebar-brand>span:not(.workbench-mark){font-size:10px}.sidebar-tenant{font-size:10px;padding:8px}.sidebar-children{margin-left:8px;padding-left:6px}.sidebar .sidebar-children button{font-size:11px;padding:8px}.nav-icon{width:16px;height:16px;flex-basis:16px}.sidebar-footnote{font-size:10px;padding:14px 6px}.records-workspace{display:block}#workspaceTitle{font-size:19px}.overview-metrics .analytics-kpis{grid-template-columns:1fr}.overview-metrics .analytics-kpis>div{padding-left:66px;min-height:100px}.metric-symbol{left:16px;top:22px}.workspace-content .card{padding:14px}#analyticsForm{flex-wrap:wrap}.page-description{font-size:12px}.basic-settings{display:block}.basic-settings label{margin-top:16px}.workspace-content input,.workspace-content select,.workspace-content textarea{max-width:100%;min-width:0}.library-toolbar label:first-child{min-width:0;flex-basis:100%}.library-row{flex-wrap:wrap}.library-row button{margin-left:auto}.settings-page fieldset{display:block;padding:12px}.settings-page fieldset>label{margin:12px 0}#settingsArea .publish>div:last-child{flex-wrap:wrap;justify-content:start}.publish .button{white-space:normal}.workspace-content .row{flex-wrap:wrap}.filter-options-body{right:0;max-width:calc(100vw - 185px)}#analyticsCustom{max-width:100%}.sidebar-tenant{overflow-wrap:anywhere}#accountSummary{padding:7px;max-width:90px}#workspaceTitle{overflow-wrap:anywhere}#sources .table-actions{flex-wrap:wrap}}
@media(max-width:500px){body:has(#workspace:not([hidden])) .sidebar{width:132px}body:has(#workspace:not([hidden]))>main,body:has(#workspace:not([hidden]))>header{padding-left:146px}.sidebar .nav-icon{display:none}.sidebar-children{margin-left:2px}.sidebar-tenant{font-size:10px}.sidebar button{font-size:12px;padding:10px 6px}#settingsArea .publish{position:static}.settings-disclosure>summary{display:flex;flex-wrap:wrap;gap:8px}.settings-disclosure>summary>span{max-width:100%;white-space:normal;font-size:11px}#capabilitySection>summary{padding:12px}#workspaceTitle{font-size:17px}#accountSummary{max-width:70px}.workspace-content button{padding:7px 10px}.filter-options-body{max-width:calc(100vw - 160px)}}

/* 发布是 Agent 指令中的单个最终步骤。 */
#settingsArea:not([data-local-page="advanced"]) .publish{display:none!important}
.overview-columns{grid-template-columns:minmax(0,1fr)!important}
#receptionSources{grid-column:1/-1;min-width:0;width:100%;max-height:360px;box-sizing:border-box;padding-right:8px;scrollbar-width:thin;scrollbar-color:#b8cbd9 transparent}
#receptionSources .choice-line{width:100%;min-width:0;overflow-wrap:anywhere;padding:12px;border-radius:8px;box-sizing:border-box;line-height:1.65;align-items:flex-start}
#receptionSources .choice-line:hover{background:#edf3f8}
#receptionSources input[type=checkbox]{margin-top:4px}
#receptionSources>p{font-size:12px;color:#71808a}
#navigationToggle{position:fixed;bottom:14px;left:18px;z-index:50;display:flex;align-items:center;gap:9px;background:#e6eef5;color:#304c69;border:1px solid #cadbe8;border-radius:10px;padding:10px 12px;font-size:12px;box-shadow:0 2px 8px #304c6910}
#navigationToggle:hover{background:#d9e6f0}
body:has(#workspace:not([hidden])) .sidebar{padding-bottom:70px}
body.navigation-collapsed:has(#workspace:not([hidden])) .sidebar{width:64px;padding:20px 8px 70px;gap:8px}
body.navigation-collapsed:has(#workspace:not([hidden]))>header,body.navigation-collapsed:has(#workspace:not([hidden]))>main{padding-left:88px}
body.navigation-collapsed .sidebar :is(.sidebar-brand,.sidebar-tenant,.sidebar-footnote,.sidebar-children){display:none!important}
body.navigation-collapsed #workspace .sidebar button{font-size:0!important;justify-content:center;padding:12px 8px;gap:0;width:46px;min-height:46px}
body.navigation-collapsed .sidebar button>span{display:none!important}
body.navigation-collapsed .sidebar .nav-icon{display:block!important;width:20px;height:20px;flex:0 0 20px}
body.navigation-collapsed #navigationToggle{left:10px;padding:10px}
body.navigation-collapsed #navigationToggle span{display:none}
body.navigation-collapsed #navigationToggle svg{transform:rotate(180deg)}
@media(max-width:760px){#navigationToggle{left:8px;max-width:138px}body.navigation-collapsed:has(#workspace:not([hidden]))>header,body.navigation-collapsed:has(#workspace:not([hidden]))>main{padding-left:76px}#receptionSources{max-height:320px}}
