.header-actions,.header-account{display:flex;align-items:center;gap:14px;min-width:0}
.header-account{border-left:1px solid var(--line);padding-left:18px;font-size:13px}
.user-avatar{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#e7ecf1;color:#6c7986;font-size:13px}
#who{max-width:240px;overflow-wrap:anywhere}
#logout{white-space:nowrap}
.aside-footer .admin-nav{text-align:left;padding:12px 15px;font-size:14px;border:0;background:transparent;color:#596572}
.aside-footer .admin-nav.active{background:#f8eee9;color:#a84623;box-shadow:inset 3px 0 #b44a24}
.backup-actions{display:flex;gap:8px;flex-wrap:wrap}
.backup-actions button{white-space:nowrap}
#backupTable table{min-width:780px}
#backupLocation{overflow-wrap:anywhere}
.knowledge-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:8px 0 22px}
.knowledge-intro h2{margin:0 0 6px}
.knowledge-intro p{margin:0;color:var(--muted);font-size:13px}
.provider-search{width:290px;max-width:100%;margin:0}
.knowledge-toolbar{display:flex;align-items:center;gap:12px;min-width:0}
.knowledge-toolbar>button{white-space:nowrap}
#knowledgeGroupForm{display:flex;flex-direction:row;align-items:flex-end;gap:12px;padding:16px;background:#f6f8fa;border-radius:8px;margin-bottom:18px}
.group-editor>label{flex:1;min-width:0;margin:0}
.group-editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.group-editor-actions button{white-space:nowrap}
.knowledge-group-row{padding:16px 0;border-bottom:1px solid var(--line)}
.knowledge-group-row h3{font-size:14px;margin:0;overflow-wrap:anywhere}
.knowledge-group-row p{overflow-wrap:anywhere}
.knowledge-group-row .source-actions{margin-top:8px}
#knowledgeGroupsDialog .modal-body{min-height:0;overflow:auto}
#knowledgeGroupsDialog[open]{display:flex;flex-direction:column}
#knowledgeGroupsDialog .knowledge-group-row details{margin:8px 0;padding:8px 10px}
body:has(#knowledgeGroupsDialog[open]){overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.provider-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.integration-page{padding-bottom:60px}
.integration-tool-shell{display:grid;grid-template-columns:168px minmax(0,1fr);gap:24px;align-items:start}
.integration-subnav{position:sticky;top:18px;display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #dce2e8;border-radius:12px;background:#fff;box-shadow:0 1px 3px #24313d08}
.integration-subnav>p{margin:4px 8px 8px;color:#8a96a3;font-size:11px;font-weight:700;letter-spacing:.12em}
.integration-subnav>button{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:#536273;text-align:left;box-shadow:none}
.integration-subnav>button:hover{background:#f2f5f7}
.integration-subnav>button.active{background:#edf1f5;color:#1f2d3b;font-weight:600}
.integration-subnav>button>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
.integration-subnav small{min-width:22px;padding:2px 5px;border-radius:999px;background:#fff;color:#768392;font-size:10px;text-align:center}
.integration-nav-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#f4e9e4;color:#b64d29;font-size:15px}
.integration-tool-content{min-width:0}
.integration-section{margin:0 0 34px;min-width:0}
.integration-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 12px}
.integration-section-heading h2{font-size:18px;margin:0 0 5px;color:#263342}
.integration-section-heading p{font-size:13px;color:var(--muted);margin:0}
.integration-section-heading>button{white-space:nowrap}
.integration-wide-card{width:100%}
.provider-card{overflow:hidden;background:#fff;border:1px solid #dde3e8;border-radius:12px;box-shadow:0 1px 3px #24313d06;min-width:0}
.provider-card-head{padding:22px;display:flex;align-items:flex-start;gap:13px}
.provider-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid #cce5d8;background:#e8f6ee;color:#188253;border-radius:11px;font-size:24px;font-weight:700}
.provider-icon.dify{background:#eaf0ff;border-color:#d6e2ff;color:#396de5}
.provider-icon.http{background:#f1edff;border-color:#e2dafa;color:#7957bb;font-size:17px}
.provider-icon.integration-model{background:#eef0f2;border-color:#d9dfe4;color:#263342;font-size:14px}
.provider-icon.integration-service{background:#fff3e8;border-color:#f3dcc5;color:#a9562e;font-size:18px}
.provider-icon.integration-mcp{background:#edf6ff;border-color:#d6e8f8;color:#2773a9;font-size:18px}
.provider-icon.integration-http{background:#f1edff;border-color:#e2dafa;color:#7957bb;font-size:12px}
.provider-title{min-width:0;flex:1}
.provider-title h3{font-size:15px;margin:1px 0 7px;overflow-wrap:anywhere;color:#263342}
.provider-title p{font-size:12px;color:#718091;margin:0}
.provider-count{font-size:11px;color:#667588;white-space:nowrap;padding:4px 8px;background:#f0f3f6;border-radius:5px}
.provider-description{padding:0 22px 18px;margin:0;color:#68778a;font-size:12px}
.provider-connections{border-top:1px solid #eef1f4;background:#fbfcfe}
.source-connection{padding:17px 22px;border-bottom:1px solid #edf0f4;min-width:0}
.source-connection:last-child{border-bottom:0}
.source-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.source-heading h4{font-size:14px;margin:0;overflow-wrap:anywhere}
.source-state{font-size:11px;white-space:nowrap;border-radius:5px;padding:3px 7px;background:#e8f6ee;color:#217b53}
.source-state.off{background:#edf0f3;color:#77828f}
.source-meta{font-size:11px;color:#7a8794;margin:7px 0}
.source-url{font-size:12px;color:#566b80;overflow-wrap:anywhere;margin:6px 0}
.source-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:11px}
.source-actions button{padding:5px 9px;font-size:12px;background:#fff}
.source-probe{font-size:12px;margin:10px 0 0;white-space:pre-wrap;line-height:1.6;color:#39795d}
.source-probe.error{color:#a2443a}
.provider-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid #edf0f4}
.provider-footer span{color:#7c8995;font-size:11px}
.provider-footer button{padding:7px 13px;font-size:12px}
.provider-empty{padding:18px 22px;color:#84909c;font-size:13px;margin:0}
.knowledge-dialog{width:710px}
.integration-dialog{width:760px}
.integration-dialog .modal-body{overflow:auto}
.integration-roles{border:1px solid var(--line);border-radius:9px;margin:18px 0;padding:14px 16px}
.integration-roles legend{font-size:13px;font-weight:600;padding:0 6px}
.integration-roles .checks{margin:4px 0 0}
.integration-dialog code{background:#f3f5f7;border-radius:4px;padding:1px 4px}
.dify-provider-card{position:relative;width:100%;overflow:visible;border:1px solid #dde2e8;border-radius:12px;background:#fff;box-shadow:0 1px 3px #24313d08}
.dify-provider-top{display:flex;align-items:flex-start;gap:10px;min-height:72px;padding:14px 16px 11px}
.dify-provider-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px dashed #263342;border-radius:50%;font-weight:700;color:#253343;background:#fff}
.dify-provider-icon.service{border:0;border-radius:7px;background:#fff0e5;color:#b6532a}
.dify-provider-icon.mini{width:18px;height:18px;font-size:11px}
.dify-provider-identity{flex:1;min-width:0}
.dify-provider-name{display:flex;align-items:center;gap:7px;min-height:24px}
.dify-provider-name strong{font-size:15px;color:#17212d;overflow-wrap:anywhere}
.provider-version{padding:2px 5px;border:1px solid #d9dfe6;border-radius:5px;color:#687585;font-size:10px}
.model-badges{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:4px}
.model-badge{display:inline-flex;align-items:center;min-height:17px;padding:1px 5px;border:1px solid #dbe1e7;border-radius:5px;color:#637185;background:#fafbfc;font-size:9px;line-height:1}
.dify-provider-actions,.dify-list-actions{display:flex;align-items:center;gap:2px;margin-left:auto}
.dify-provider-actions{display:none}
.dify-list-actions button{border:0;background:transparent;padding:5px 8px;color:#526171;font-size:12px}
.dify-list-actions button:hover{background:#eef1f4}
.model-credential-control{position:relative}
.model-credential-menu{position:absolute;z-index:30;top:34px;right:0;width:min(440px,calc(100vw - 70px));padding:8px;border:1px solid #d9dfe6;border-radius:10px;background:#fff;box-shadow:0 12px 32px #17212d24}
.credential-menu-title{padding:7px 9px 10px;color:#697687;font-size:11px}
.credential-menu-list{max-height:350px;overflow:auto;border-radius:7px;background:#f7f8fa}
.credential-model-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:8px 10px;border-bottom:1px solid #e8ecf0}
.credential-model-row:last-child{border-bottom:0}
.credential-model-main{min-width:0}
.credential-model-name{display:flex;align-items:center;gap:7px}
.credential-model-name strong{font-size:12px}
.credential-model-key{display:block;margin:6px 0 0 25px;color:#687788;font-size:11px;overflow-wrap:anywhere}
.credential-model-key::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#21b86b;vertical-align:1px}
.credential-model-controls{display:flex;align-items:center;gap:5px;flex:none}
.credential-model-controls>button:not(.model-switch){padding:4px 6px;border-color:transparent;background:transparent;font-size:11px}
.credential-model-controls .credential-remove{font-size:16px;color:#a53939}
.dify-model-list-head{display:flex;align-items:center;min-height:39px;padding:5px 9px;border-top:1px solid #edf0f3;background:#fafbfc}
.dify-model-toggle{display:inline-flex;align-items:center;border:0;background:transparent;padding:5px 7px;color:#687585;font-size:12px}
.dify-model-toggle:hover{background:#eef1f4}
.collapse-chevron{display:inline-block;margin-left:2px;font-size:17px;line-height:10px;transition:transform .15s ease}
.collapse-chevron.expanded{transform:rotate(90deg)}
.dify-model-list{margin:0 8px 8px;padding:4px 0;border-radius:8px;background:#f6f8fa}
.dify-model-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:45px;padding:6px 10px;border-bottom:1px solid #eceff2}
.dify-model-row:last-child{border-bottom:0}
.dify-model-row:hover{background:#f0f3f6}
.dify-model-main{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.dify-model-title{display:flex;align-items:center;gap:7px;min-width:150px}
.dify-model-title strong{font-size:12px;font-weight:500;color:#263342;overflow-wrap:anywhere}
.dify-model-detail{width:100%;padding-left:25px;color:#788594;font-size:10px;overflow-wrap:anywhere}
.dify-model-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.dify-model-controls>button:not(.model-switch){padding:4px 7px;border-color:transparent;background:transparent;font-size:11px;color:#566575}
.dify-model-controls>button:not(.model-switch):hover{border-color:#d7dde3;background:#fff}
.dify-model-controls .model-remove{opacity:0}
.dify-model-row:hover .model-remove,.dify-model-controls .model-remove:focus{opacity:1}
.system-model-label{font-size:10px;color:#8a95a1;white-space:nowrap}
.dify-model-controls .model-delete,.credential-model-controls .model-delete{font-size:12px;padding:5px 8px;color:#a63333;opacity:1}
.model-switch{position:relative;width:28px;height:16px;padding:0;border:0;border-radius:999px;background:#cbd3dc;box-shadow:none}
.model-switch span{position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:left .15s}
.model-switch.on{background:#245ff5}
.model-switch.on span{left:14px}
.source-probe{grid-column:1/-1}
.secondary-provider{margin-top:4px}
.model-service-row{background:#f9fafb}
.mcp-tabbar{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:18px 0 16px;padding:3px;border-radius:9px;background:#f0f3f6}
.mcp-tabbar button{border:0;border-radius:7px;background:transparent;padding:9px;color:#677586;box-shadow:none}
.mcp-tabbar button.active{background:#fff;color:#1e2c3a;box-shadow:0 1px 3px #17212d16;font-weight:600}
.mcp-form-panel{min-height:210px;padding:4px 1px}
.mcp-form-panel[hidden]{display:none}
.credential-dialog{width:660px}
.credential-dialog[open]{display:flex;flex-direction:column;max-height:min(760px,90vh)}
.credential-dialog .modal-body{overflow:auto}
.credential-list{border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:20px}
.credential-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 15px;border-bottom:1px solid var(--line)}
.credential-row:last-child{border-bottom:0}
.credential-row strong{font-size:13px}
.credential-row p{margin:5px 0 0}
.credential-form{padding:17px;border-radius:9px;background:#f6f8fa}
.credential-form h3{margin:0 0 14px;font-size:14px}
.credential-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.settings-page>.card{width:100%;margin-bottom:18px}
.role-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.role-model-card{position:relative;display:grid;grid-template-columns:auto 1fr;gap:11px 13px;align-items:start;padding:18px;border:1px solid #dfe4e9;border-radius:10px;background:#fbfcfd}
.role-model-card .role-index{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#f5e9e3;color:#ae4723;font-size:11px;font-weight:700}
.role-model-card h3{margin:1px 0 5px;font-size:14px}
.role-model-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.role-model-card label{grid-column:1/-1;margin:4px 0 0;font-size:12px}
.role-model-card select{margin-top:6px;background:#fff}
.integration-form-section{margin:18px 0 8px;padding-top:14px;border-top:1px solid #e3e7eb;font-size:13px;color:#263443}
.model-capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;padding:10px 12px;border:1px solid #e1e6eb;border-radius:9px;background:#f8fafb}
.model-capability-grid .check{margin:0;font-size:12px}
.knowledge-dialog .modal-body{padding-top:4px}
.knowledge-endpoint{margin:20px 0 14px;border:1px solid var(--line);border-radius:9px;padding:16px;min-width:0;background:#fbfcfd}
.knowledge-endpoint legend{font-weight:600;font-size:13px;padding:0 6px}
.knowledge-endpoint label{font-size:13px}
.knowledge-endpoint .endpoint-delete{font-size:12px;color:#a63333;padding:5px 9px}
.knowledge-endpoint .form-row>label{min-width:0}
.knowledge-dialog .form-row{gap:14px}
.knowledge-dialog .check{font-size:13px}
#addKnowledgeEndpoint{font-size:12px}
body:has(#knowledgeDialog[open]){overflow:hidden}
@media(max-width:1150px){.header-actions{gap:8px}.header-account{gap:8px;padding-left:10px}#who{max-width:150px}}
@media(max-width:1050px){
 .integration-tool-shell{grid-template-columns:minmax(0,1fr);gap:16px}
 .integration-subnav{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px}
 .integration-subnav>p{display:none}
 .integration-subnav>button{grid-template-columns:auto minmax(0,1fr);padding:8px}
}
@media(max-width:760px){
 #page-backups .card-heading{align-items:flex-start;flex-direction:column}
 #page-backups .keys-toolbar-actions{gap:8px}
 #page-backups .keys-toolbar-actions button{font-size:12px}
 .aside-footer{display:flex;margin-top:12px;padding:0;align-items:flex-start}
 .aside-footer>span{display:none}
 .aside-footer .admin-nav{padding:8px 15px;font-size:13px}
 .workspace>header{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .header-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
 .header-account{font-size:12px}
 .knowledge-intro{flex-direction:column;align-items:stretch;gap:14px}
 .provider-search{width:100%}
 .knowledge-toolbar{flex-wrap:wrap}
 .knowledge-toolbar .provider-search{flex:1;min-width:170px}
 #knowledgeGroupForm{align-items:stretch;flex-direction:column}
 .integration-section-heading{align-items:flex-start;flex-direction:column;gap:10px}
 .role-model-grid{grid-template-columns:minmax(0,1fr)}
 .model-capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dify-model-row{grid-template-columns:minmax(0,1fr)}
 .dify-model-controls{justify-content:flex-start;padding-left:25px}
}
@media(max-width:420px){
 .header-actions{width:100%;justify-content:space-between}
 .header-account{gap:7px;padding-left:8px;flex:1;justify-content:flex-end}
 .user-avatar{display:none}
 #who{max-width:130px}
 #logout,#refresh{padding:7px 9px;font-size:12px}
 .provider-card-head{padding:18px 16px;gap:10px}
 .provider-count{display:none}
 .provider-description,.source-connection{padding-left:16px;padding-right:16px}
 .provider-footer{padding:14px 16px}
 .knowledge-endpoint{padding:12px}
}

/* Dify-style integration workspace. The inner navigation is a real full-height column. */
body.integration-route{background:#f7f8fa}
body.integration-route .workspace{max-width:none;padding-bottom:0}
body.integration-route #page-integrations{margin:0 -35px -50px;min-height:calc(100vh - 96px)}
.integration-tool-shell{grid-template-columns:210px minmax(0,1fr);gap:0;min-height:calc(100vh - 96px);align-items:stretch;background:#f7f8fa;border-top:1px solid #e5e8ec}
.integration-subnav{position:relative;top:auto;align-self:stretch;min-height:100%;padding:18px 10px;border:0;border-right:1px solid #e2e6ea;border-radius:0;background:#fff;box-shadow:none}
.integration-subnav-title{padding:0 10px 20px}
.integration-subnav-title h2{margin:0 0 4px;font-size:19px;color:#17212d}
.integration-subnav-title p{margin:0;color:#929ba5;font-size:11px}
.integration-subnav>button{grid-template-columns:28px minmax(0,1fr);min-height:40px;padding:8px 10px;border-radius:8px;color:#354457}
.integration-subnav>button.active{background:#e9edf2;color:#17212d;box-shadow:none}
.integration-subnav small{background:transparent;color:#8a95a2}
.integration-nav-icon{background:transparent;color:#48586a;font-size:18px}
.integration-tool-content{padding:24px 28px 60px;min-width:0}
.integration-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.integration-page-head h2{margin:0 0 4px;font-size:20px;color:#111b27}
.integration-page-head p{margin:0;color:#738091;font-size:12px}
.integration-section{margin:0}
.knowledge-head-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.external-api-legend{display:inline-flex;align-items:center;gap:6px;color:#617083;font-size:12px}
.external-api-legend i,.mcp-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#20b774;box-shadow:0 0 0 2px #dff6ea}
.dataset-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 16px}
.dataset-toolbar label{margin:0;font-weight:400}
.dataset-toolbar select{width:115px;background:#edf0f4;border-color:transparent}
.dataset-toolbar .provider-search{width:250px}
.dataset-all{display:flex;flex-direction:row;align-items:center;gap:7px;color:#647184;font-size:12px}
.dataset-all input{width:16px;height:16px}
.external-kb-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px;align-items:start}
.external-kb-card{min-height:168px;padding:16px;border:1px solid #e1e5ea;border-radius:12px;background:#fff;box-shadow:0 1px 2px #17212d05}
.external-kb-card-top{display:flex;align-items:center;gap:11px}
.external-kb-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid #f1d7c7;border-radius:10px;background:#fff2ea;color:#b64b25;font-size:19px}
.external-kb-card-main{min-width:0;flex:1}
.external-kb-card-main h3{margin:0 0 4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.external-kb-type{margin:0;color:#758294;font-size:11px}
.external-kb-description{height:40px;margin:15px 0 8px;color:#647386;font-size:12px;line-height:1.55;overflow:hidden}
.external-kb-tags{display:flex;gap:5px;min-height:22px}
.external-kb-tags span{padding:2px 6px;border-radius:5px;background:#f1f3f6;color:#687789;font-size:10px}
.external-kb-meta{display:flex;gap:14px;margin:12px -16px -2px;padding:10px 16px 0;border-top:1px solid #edf0f3;color:#7c8795;font-size:10px}
.external-kb-meta span:last-child{margin-left:auto;max-width:42%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.external-kb-actions{display:flex;gap:5px;margin-top:12px}
.external-kb-actions button{padding:4px 7px;border-color:transparent;background:transparent;font-size:11px}
.external-kb-actions button:hover{border-color:#d8dee5;background:#f8f9fa}
.external-kb-empty{grid-column:1/-1;display:grid;place-items:center;min-height:280px;padding:40px;border:1px dashed #d8dde3;border-radius:12px;color:#7a8795;text-align:center;background:#fff}
.external-kb-empty>span{font-size:30px;color:#b64b25}.external-kb-empty h3{margin:12px 0 2px;color:#2b3847}.external-kb-empty p{margin:0 0 16px}
.external-kb-connect-view{position:relative;max-width:1170px;margin:0 auto;padding:8px 0 50px}
.back-link{position:absolute;left:0;top:7px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#edf0f4;font-size:20px}
.external-kb-connect-layout{display:grid;grid-template-columns:minmax(520px,640px) 328px;gap:160px;justify-content:center}
.external-kb-form{min-width:0;padding-left:44px}
.external-kb-title{margin-bottom:28px}.external-kb-title h2{margin:0 0 4px;font-size:19px}.external-kb-title p{margin:0;color:#617083;font-size:12px;line-height:1.5}
.external-kb-form label{font-size:12px}.external-kb-form hr{margin:24px 0}
.retrieval-heading{margin:22px 0 4px;font-weight:650}
.retrieval-settings{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.retrieval-control{display:grid;grid-template-columns:100px 1fr;align-items:end;gap:14px}
.retrieval-control label{margin-bottom:0}.retrieval-control input[type=range]{margin-bottom:12px;padding:0;border:0;accent-color:#315cff}
.retrieval-control input[type=number]{height:38px}
.score-label>span{display:flex;align-items:center;gap:6px}.score-label>span input{width:28px;height:16px;accent-color:#315cff}
.field-help{display:inline-grid;place-items:center;width:14px;height:14px;border:1px solid #aeb7c2;border-radius:50%;color:#7a8794;font-size:9px}
.external-kb-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:28px}
.external-kb-help{position:static;inset:auto;display:block;width:auto;height:max-content;margin-top:52px;padding:28px;background:#f3f5f8;border:0;border-radius:14px;color:#536274}
.external-kb-help .help-book{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#fff;color:#315cff}.external-kb-help h3{margin:16px 0 8px;color:#293544}.external-kb-help p{font-size:12px;line-height:1.65}.external-kb-help a{color:#315cff;text-decoration:none;font-size:12px}
.external-api-dialog{width:480px;padding:0}.external-api-dialog .modal-heading{padding:24px 24px 8px}.external-api-dialog .modal-body{padding:8px 24px 18px}.external-api-dialog .modal-footer{padding:14px 24px;border-top:1px solid #edf0f3}.required{color:#d64545}.secure-note{margin:18px -24px -18px;padding:14px 24px;background:#f4f6f8;color:#7b8795;font-size:11px;text-align:center}
.external-api-list{margin-top:24px}.external-api-list h3{font-size:12px;color:#6d7a89}.external-api-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding:10px 0;border-top:1px solid #edf0f3}.external-api-row-main{display:flex;flex-direction:column;gap:3px;min-width:0}.external-api-row-main strong{font-size:12px}.external-api-row-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#738091;font-size:10px}.external-api-row-main small{color:#29905e}.external-api-row button{padding:4px 6px;border:0;background:transparent;font-size:10px}
.mcp-search{display:block;margin:0 0 16px}.mcp-card-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:16px}
.mcp-service-card{min-height:126px;border:1px solid #dfe4e9;border-radius:12px;background:#fff;overflow:hidden}.mcp-card-top{display:flex;align-items:center;gap:11px;padding:16px}.mcp-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#5964e9;color:#fff;font-size:26px}.mcp-card-identity{min-width:0;flex:1}.mcp-card-identity h3{margin:0 0 4px;font-size:14px}.mcp-card-identity p{margin:0;color:#768394;font-size:11px}.mcp-status-dot{margin-left:auto}.mcp-status-dot.off{background:#b7bec6;box-shadow:none}.mcp-card-description{min-height:36px;margin:0;padding:0 16px 12px;color:#697789;font-size:11px}.mcp-card-footer{display:flex;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid #edf0f3;color:#778392;font-size:10px}.mcp-card-footer>span{flex:1}.mcp-card-actions{display:flex;gap:3px}.mcp-card-actions button{padding:3px 5px;border:0;background:transparent;font-size:10px}
#mcpIntegrationDialog{width:520px;padding:0}#mcpIntegrationDialog .modal-heading{padding:22px 24px 8px}#mcpIntegrationDialog .modal-body{padding:6px 24px 18px;max-height:65vh}#mcpIntegrationDialog .modal-footer{padding:14px 24px;border-top:1px solid #edf0f3}.mcp-name-row{display:grid;grid-template-columns:minmax(0,1fr) 56px;align-items:end;gap:12px}.mcp-name-row label{margin-bottom:0}.mcp-icon-preview{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#5d61ee;color:#fff;font-size:30px}.field-description{display:block;color:#6f7d8e;font-size:10px;font-weight:400;line-height:1.45}.mcp-tabbar{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;border-radius:8px;background:#f2f4f7}.mcp-tabbar button{border:0;padding:7px;background:transparent}.mcp-tabbar button.active{background:#fff;color:#315cff;box-shadow:0 1px 3px #17212d14}.mcp-form-panel{padding-top:8px}
@media(max-width:1200px){.external-kb-grid,.mcp-card-grid{grid-template-columns:repeat(2,minmax(240px,1fr))}.external-kb-connect-layout{grid-template-columns:minmax(480px,640px) 280px;gap:50px}}
@media(max-width:760px){body.integration-route #page-integrations{margin:0}.integration-tool-shell{grid-template-columns:1fr}.integration-subnav{position:sticky;top:0;z-index:5;min-height:0;grid-template-columns:repeat(3,1fr);border-right:0;border-bottom:1px solid #e2e6ea}.integration-subnav-title{grid-column:1/-1;padding-bottom:8px}.integration-tool-content{padding:20px 0}.integration-page-head{align-items:flex-start;flex-direction:column}.knowledge-head-actions{flex-wrap:wrap}.dataset-toolbar{align-items:stretch;flex-direction:column}.dataset-toolbar .provider-search,.dataset-toolbar select{width:100%}.external-kb-grid,.mcp-card-grid{grid-template-columns:1fr}.external-kb-connect-layout{grid-template-columns:1fr}.external-kb-form{padding:42px 0 0}.external-kb-help{margin-top:0}.retrieval-settings{grid-template-columns:1fr}}
