
#settingsModal.xwmcp-mode .settings-dialog{width:min(1200px,calc(100vw - 48px));max-width:1200px;height:min(820px,calc(100dvh - 56px));max-height:calc(100dvh - 56px)}
#settingsModal.xwmcp-mode .settings-body{min-height:0;flex:1}
#settingsModal.xwmcp-mode .settings-nav{flex-shrink:0}
#settingsModal.xwmcp-mode .settings-content{padding:26px 28px;overflow:auto;min-width:0;background:#fff;scrollbar-gutter:stable}
#settingsModal.xwmcp-member .settings-nav>button:not([data-settings-tab="mcp"]){display:none!important}
#settingsCenterBtn{display:flex!important}
#settingsModal #xwmcpPanel{--xw-ink:#172b45;--xw-muted:#697b91;--xw-line:#e2e8f0;color:var(--xw-ink);font-family:inherit;min-width:0;width:100%;max-width:none}
#xwmcpPanel *{box-sizing:border-box}
#xwmcpPanel [hidden]{display:none!important}
#xwmcpPanel .xwmcp-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}
#xwmcpPanel h3{font-size:23px;font-weight:700;margin:0}
#xwmcpPanel h4{font-size:15px;font-weight:650;margin:0}
#xwmcpPanel p{font-size:12px;line-height:1.7;margin:7px 0 0;color:var(--xw-muted)}
#xwmcpPanel .xwmcp-account{color:var(--xw-muted);padding-top:6px;font-size:12px;white-space:nowrap}
#xwmcpPanel .xwmcp-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid var(--xw-line);border-radius:8px;min-width:0}
#xwmcpPanel .xwmcp-connection-form{padding:24px 22px;background:#fafbfd;border-right:1px solid var(--xw-line);border-radius:8px 0 0 8px}
#xwmcpPanel .xwmcp-connection-main{padding:24px;min-width:0}
#xwmcpPanel .xwmcp-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#xwmcpPanel .xwmcp-full-badge{font-size:11px;font-weight:500;color:#168267;background:#edf8f3;border-radius:4px;padding:3px 8px;white-space:nowrap}
#xwmcpPanel .xwmcp-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;list-style:none;padding:0;margin:16px 0 10px}
#xwmcpPanel .xwmcp-modules li{display:flex;align-items:center;gap:8px;min-width:0;background:#f7f9fc;border:1px solid #e7ecf3;border-radius:5px;padding:12px 9px;font-size:12px;white-space:nowrap}
#xwmcpPanel .xwmcp-modules i{width:16px;text-align:center;color:#6785ac;font-size:13px}
#xwmcpPanel .xwmcp-connect-section{border-top:1px solid var(--xw-line);padding-top:20px;margin-top:20px}
#xwmcpPanel label{display:block;font-size:12px;color:#53647b;margin:19px 0 7px}
#xwmcpPanel .xwmcp-connect-section label{margin-top:14px}
#xwmcpPanel input,#xwmcpPanel select{width:100%;height:38px;border:1px solid #ced8e6;border-radius:5px;padding:0 11px;background:#fff;font:inherit;font-size:13px;color:#243c59;min-width:0}
#xwmcpPanel input[readonly]{background:#fafbfd;color:#52667f}
#xwmcpPanel button{font:inherit;cursor:pointer;border-radius:5px;line-height:1.4}
#xwmcpPanel button:focus-visible,#xwmcpPanel input:focus-visible,#xwmcpPanel select:focus-visible,#xwmcpPanel summary:focus-visible{outline:3px solid #b8d5ff;outline-offset:2px}
#xwmcpPanel button:disabled{cursor:default;opacity:.45}
#xwmcpPanel .xwmcp-primary{width:100%;margin-top:24px;padding:11px 14px;font-size:13px;font-weight:600;border:1px solid #1769e8;background:#1769e8;color:#fff}
#xwmcpPanel .xwmcp-primary:hover:enabled{background:#0d59cf}
#xwmcpPanel .xwmcp-secondary{padding:8px 12px;font-size:12px;font-weight:500;border:1px solid #cbd8e9;background:#fff;color:#235caa;white-space:nowrap}
#xwmcpPanel .xwmcp-secondary:hover:enabled{background:#f3f7fd}
#xwmcpPanel .xwmcp-link{border:0;background:transparent;color:#1261d9;padding:5px 0;font-size:12px;white-space:nowrap}
#xwmcpPanel .xwmcp-access{display:flex;justify-content:space-between;gap:8px;margin-top:24px;font-size:12px}
#xwmcpPanel .xwmcp-access>span{color:#53647b}
#xwmcpPanel .xwmcp-access strong{font-weight:500;color:#168267}
#xwmcpPanel .xwmcp-access i{margin-right:4px}
#xwmcpPanel .xwmcp-note{font-size:11px}
#xwmcpPanel #xwmcpAvailability:empty{display:none}
#xwmcpPanel .xwmcp-copyfield{display:flex;align-items:center;border:1px solid #ced8e6;border-radius:5px;background:#fafbfd;overflow:hidden}
#xwmcpPanel .xwmcp-copyfield input{border:0;border-radius:0;font-size:12px;height:36px}
#xwmcpPanel .xwmcp-copyfield button{border:0;border-left:1px solid #e2e8f0;border-radius:0;background:#fff;color:#536d8e;width:38px;height:36px;flex-shrink:0}
#xwmcpPanel .xwmcp-connect-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
#xwmcpPanel .xwmcp-connect-footer p{margin:0}
#xwmcpPanel .xwmcp-help{font-size:11px;color:#667b98;margin-top:12px}
#xwmcpPanel summary{cursor:pointer}
#xwmcpPanel .xwmcp-connections{margin-top:18px;border:1px solid var(--xw-line);border-radius:7px;font-size:13px}
#xwmcpPanel .xwmcp-connections>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;font-weight:600}
#xwmcpPanel .xwmcp-connections>summary::-webkit-details-marker{display:none}
#xwmcpPanel .xwmcp-connections-hint{font-size:11px;font-weight:400;color:#697b91}
#xwmcpPanel .xwmcp-connections-hint:after{content:"⌄";display:inline-block;margin-left:12px}
#xwmcpPanel .xwmcp-connections[open] .xwmcp-connections-hint:after{transform:rotate(180deg)}
#xwmcpPanel .xwmcp-count{font-weight:400;color:#697b91;font-size:11px;margin-left:8px}
#xwmcpPanel .xwmcp-connections-body{border-top:1px solid var(--xw-line);padding:0 18px 14px}
#xwmcpPanel .xwmcp-connections-toolbar{display:flex;justify-content:space-between;align-items:center;padding:8px 0}
#xwmcpPanel .xwmcp-connections-toolbar p{margin:0;font-size:11px}
#xwmcpPanel .xwmcp-table-scroll{overflow-x:auto}
#xwmcpPanel table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
#xwmcpPanel th,#xwmcpPanel td{padding:10px 8px;text-align:left;border-bottom:1px solid #edf1f6}
#xwmcpPanel th{background:#f8fafc;color:#697b91;font-size:11px;font-weight:500}
#xwmcpPanel .xwmcp-scopes{color:#697b91;font-size:11px}
#xwmcpPanel .xwmcp-badge{font-size:11px;white-space:nowrap;color:#137a65;background:#edf8f4;padding:3px 7px;border-radius:4px}
#xwmcpPanel .xwmcp-badge.off{color:#788797;background:#f1f3f6}
#xwmcpPanel .xwmcp-notice:empty{display:none}
#xwmcpPanel .xwmcp-notice{background:#eff6ff;border:1px solid #dbe8fa;color:#2b5d94;border-radius:5px;padding:9px 12px;font-size:12px;line-height:1.6;margin-bottom:16px}
#xwmcpPanel .xwmcp-notice.error{background:#fff4f1;border-color:#f6d3c9;color:#a8472d}
@media(max-width:1050px){#xwmcpPanel .xwmcp-workspace{grid-template-columns:210px minmax(0,1fr)}#xwmcpPanel .xwmcp-modules{grid-template-columns:repeat(3,minmax(0,1fr))}#xwmcpPanel .xwmcp-connection-main{padding:20px}#settingsModal.xwmcp-mode .settings-content{padding:22px}}
@media(max-width:800px){#xwmcpPanel .xwmcp-workspace{grid-template-columns:1fr}#xwmcpPanel .xwmcp-connection-form{border-right:0;border-bottom:1px solid var(--xw-line);border-radius:8px 8px 0 0}#xwmcpPanel .xwmcp-primary{margin-top:18px}#xwmcpPanel .xwmcp-connect-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){#settingsModal.xwmcp-mode .settings-dialog{width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}#settingsModal.xwmcp-mode .settings-body{grid-template-columns:92px minmax(0,1fr)}#settingsModal.xwmcp-mode .settings-nav{width:92px;padding:10px 6px}#settingsModal.xwmcp-mode .settings-content{padding:14px 12px}#xwmcpPanel .xwmcp-heading{display:block;margin-bottom:16px}#xwmcpPanel h3{font-size:20px}#xwmcpPanel .xwmcp-account{display:inline-block;margin-top:6px}#xwmcpPanel .xwmcp-connection-form,#xwmcpPanel .xwmcp-connection-main{padding:16px}#xwmcpPanel .xwmcp-modules{grid-template-columns:repeat(2,minmax(0,1fr))}#xwmcpPanel .xwmcp-connections>summary{padding:13px}#xwmcpPanel .xwmcp-connections-hint{font-size:0}}

.xwmcp-module-tools{display:flex;justify-content:flex-end;margin:0 0 8px}
.xwmcp-results-open{border:1px solid #d5dfed;background:#fff;color:#42648e;font:inherit;font-size:12px;padding:7px 12px;border-radius:7px;cursor:pointer}
.xwmcp-results-overlay{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:25000;display:flex;align-items:center;justify-content:center;padding:24px}
.xwmcp-results-dialog{background:white;color:#20334a;border-radius:12px;width:min(900px,100%);max-height:85dvh;display:flex;flex-direction:column;box-shadow:0 20px 80px #15283b30}
.xwmcp-results-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0;padding:20px 24px}
.xwmcp-results-head h3{font-size:18px;margin:0}
.xwmcp-results-body{padding:24px;overflow:auto;font-size:14px}
.xwmcp-results-body pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8}
.xwmcp-result-row{display:block;background:#f8fafc;border:1px solid #e1e7f0;border-radius:8px;width:100%;text-align:left;padding:14px;margin-bottom:10px;color:#243b58;cursor:pointer;font:inherit}
