/* 设置页独立作用域，沿用 JARVIS 深色主题；不覆盖对话区状态。 */
.workspace-navigation { display: flex; flex-shrink: 0; gap: 5px; padding: 4px; border: 1px solid rgba(108, 158, 180, .13); border-radius: 9px; background: rgba(4, 15, 23, .5); }
.workspace-navigation button { min-width: 80px; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px; color: #92aab9; background: transparent; font-size: 13px; }
.workspace-navigation button span { margin-right: 5px; }
.workspace-navigation button[aria-pressed="true"] { color: #62e0dd; border-color: rgba(42, 198, 197, .35); background: rgba(27, 157, 157, .14); box-shadow: inset 0 0 15px rgba(36, 207, 204, .04); }
.workspace-navigation button:focus-visible, .settings-view button:focus-visible, .settings-view input:focus-visible, .settings-view select:focus-visible, .settings-dialog :focus-visible { outline: 2px solid #47ded8; outline-offset: 3px; }
body[data-workspace-view="settings"] .mission-strip, body[data-workspace-view="settings"] .environment-bar, body[data-workspace-view="settings"] .dashboard-grid, body[data-workspace-view="settings"] .footer-bar, body[data-workspace-view="settings"] .battle-focus-view { display: none !important; }
body[data-workspace-view="settings"] .app-shell > .topbar { display: flex !important; }
body[data-workspace-view="settings"] .topbar .location-chip, body[data-workspace-view="settings"] .topbar .clock-block { display: none; }
body[data-workspace-view="settings"] { overflow-y: auto !important; }
body[data-workspace-view="settings"] .app-shell { min-height: 100vh; height: auto; }
.settings-view { --settings-teal: #35d7d1; display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 680px; margin-top: 14px; border: 1px solid rgba(100, 163, 192, .19); border-radius: 12px; color: #dce9f1; background: linear-gradient(135deg, #0c1b27, #07131d 80%); box-shadow: 0 24px 65px rgba(0, 0, 0, .25); overflow: hidden; }
#settingsView[hidden], .settings-view [hidden] { display: none !important; }
.settings-sidebar { display: flex; flex-direction: column; padding: 24px 12px 18px; border-right: 1px solid rgba(111, 163, 185, .13); background: rgba(12, 29, 42, .55); }
.settings-sidebar h2 { margin: 0 14px 22px; font-size: 17px; font-weight: 600; }
.settings-sidebar nav { display: grid; gap: 8px; }
.settings-sidebar nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 0; border-left: 2px solid transparent; border-radius: 5px; color: #98acbc; background: transparent; font-size: 13px; text-align: left; }
.settings-sidebar nav button span { width: 18px; font-size: 19px; text-align: center; }
.settings-sidebar nav button[aria-current="page"] { border-left-color: #36d8ce; color: #50ddd5; background: rgba(30, 171, 165, .14); }
.settings-sidebar nav button:hover { background: rgba(43, 116, 143, .13); }
.settings-sidebar-foot { margin: auto 12px 0; padding-top: 80px; color: #879eae; font-size: 11px; line-height: 1.7; }
.settings-sidebar-foot small { display: block; font-size: 10px; color: #647f93; }
.settings-status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border: 1px solid #5a9bb1; border-radius: 50%; }
.settings-content { min-width: 0; padding: 25px; }
.settings-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.settings-heading h1, .settings-other-panel h1 { margin: 5px 0; font-size: 25px; font-weight: 600; letter-spacing: .5px; }
.settings-heading p { margin: 6px 0 0; color: #839eaf; font-size: 12px; }
.settings-eyebrow { color: #6f91a4; font-size: 10px; letter-spacing: 2px; }
.settings-heading-actions { display: flex; gap: 9px; }
.settings-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 13px; border: 1px solid rgba(115, 162, 183, .19); border-radius: 6px; color: #b1c7d4; background: rgba(22, 43, 58, .55); font-size: 12px; white-space: nowrap; }
.settings-button:hover { border-color: rgba(64, 201, 197, .5); color: #e1faf9; }
.settings-button.is-primary { border-color: #2bbeba; color: #052b34; background: #30c9c5; font-weight: 600; box-shadow: 0 3px 14px rgba(22, 193, 188, .12); }
.mcp-preview-notice { display: flex; gap: 9px; margin-bottom: 17px; padding: 9px 12px; border: 1px solid rgba(46, 149, 180, .25); border-radius: 6px; color: #81aabe; background: rgba(20, 79, 108, .13); font-size: 11px; line-height: 1.8; }
.mcp-preview-notice > span:first-child { color: #40c4cc; font-size: 15px; }
.mcp-preview-notice strong { color: #a4d1df; font-weight: 500; }
.mcp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 15px; }
.mcp-services { min-width: 0; }
.mcp-service-toolbar { display: flex; gap: 8px; margin-bottom: 13px; }
.mcp-search { display: flex; flex: 1; min-width: 0; align-items: center; gap: 7px; border: 1px solid rgba(103, 164, 190, .2); border-radius: 6px; padding: 0 10px; color: #668c9f; background: rgba(10, 29, 42, .72); }
.mcp-search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: #c2dae5; background: transparent; font-size: 12px; }
.mcp-search input::placeholder { color: #618397; }
.settings-view select, .settings-dialog select { min-width: 0; border: 1px solid rgba(112, 163, 188, .2); border-radius: 5px; padding: 8px; color: #a9c1d0; background: #102432; font-family: inherit; font-size: 11px; color-scheme: dark; }
.mcp-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.mcp-service-card { min-width: 0; border: 1px solid rgba(94, 150, 176, .18); border-radius: 8px; padding: 14px; background: linear-gradient(130deg, rgba(20, 40, 55, .7), rgba(12, 28, 41, .75)); transition: border-color .15s; }
.mcp-service-card.is-selected { border-color: rgba(54, 209, 202, .73); background: linear-gradient(140deg, rgba(19, 66, 73, .5), rgba(11, 33, 46, .8)); box-shadow: inset 0 0 20px rgba(38, 186, 185, .025); }
.mcp-card-heading { display: flex; align-items: center; gap: 10px; }
.mcp-service-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 42px; border: 1px solid rgba(115, 176, 204, .14); border-radius: 7px; color: #84a5bc; background: rgba(71, 124, 156, .1); font-size: 26px; font-family: var(--sans); }
.color-teal { color: #b0e9e3; }.color-coral { color: #e77d86; }.color-blue { color: #8bb9e4; }.color-orange { color: #f79971; }.color-violet { color: #8fa0ef; }
.mcp-card-title { min-width: 0; flex: 1; }
.mcp-card-title h2, .mcp-detail h2 { margin: 0 0 4px; color: #d2e3ee; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.mcp-state { display: inline-flex; align-items: center; gap: 5px; color: #c2a469; font-size: 10px; }
.mcp-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mcp-state.state-ready { color: #6cd9b3; }.mcp-state.state-unconfigured { color: #d78284; }
.mcp-switch { display: flex; flex-shrink: 0; align-items: center; width: 32px; height: 18px; padding: 3px; border: 0; border-radius: 15px; background: #293e50; }
.mcp-switch span { display: block; width: 12px; height: 12px; border-radius: 50%; background: #9bb2c6; transition: transform .15s; }
.mcp-switch[aria-checked="true"] { background: #26c5be; }.mcp-switch[aria-checked="true"] span { transform: translateX(14px); background: #e5fffe; }
.mcp-switch:disabled { opacity: .4; cursor: not-allowed; }
.mcp-card-description { min-height: 17px; margin: 10px 0 12px; color: #7594a8; font-size: 11px; }
.mcp-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.mcp-card-tags span { padding: 3px 6px; border: 1px solid rgba(97, 155, 178, .13); border-radius: 4px; color: #90afc0; font-size: 9px; background: rgba(20, 52, 69, .3); }
.mcp-card-actions { display: flex; justify-content: space-between; gap: 6px; }
.mcp-card-actions .settings-button { padding: 5px 9px; font-size: 10px; }.mcp-details-button { margin-left: auto; }
.mcp-service-count { margin: 12px 0; color: #648599; font-size: 10px; }
.mcp-detail { min-width: 0; padding: 17px; border: 1px solid rgba(98, 160, 186, .18); border-radius: 8px; background: linear-gradient(145deg, rgba(17, 36, 50, .9), rgba(10, 27, 38, .8)); }
.mcp-detail-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; }
.mcp-detail-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(98, 160, 186, .16); }
.mcp-detail-tabs button { flex: 1; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; color: #8ba6b8; background: transparent; font-size: 11px; }
.mcp-detail-tabs button[aria-selected="true"] { border-bottom-color: #30c9c5; color: #42d9d2; }
.mcp-section-caption { margin: 8px 0 12px; color: #7795a8; font-size: 10px; line-height: 1.8; }
.mcp-tool { padding: 12px 10px; margin-bottom: 9px; border: 1px solid rgba(111, 165, 188, .14); border-radius: 6px; background: rgba(18, 41, 57, .5); }
.mcp-tool-heading { display: flex; align-items: center; gap: 7px; }.mcp-tool-icon { color: #9dcbdc; font-size: 22px; }
.mcp-tool-heading > div { flex: 1; min-width: 0; }.mcp-tool h3 { margin: 0 0 3px; font-size: 11px; font-weight: 500; }.mcp-tool code { color: #6b90a5; font-size: 9px; overflow-wrap: anywhere; }
.mcp-tool-enable { color: #6f91a6; font-size: 9px; }.mcp-tool p { margin: 9px 0; color: #7f9fb1; font-size: 10px; line-height: 1.7; }
.mcp-policy-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; }.mcp-policy-row label { color: #7996a7; font-size: 10px; }.mcp-policy-row select { max-width: 170px; padding: 5px; font-size: 10px; }
.mcp-permission-note { display: flex; gap: 7px; padding: 9px; margin-top: 14px; border: 1px solid rgba(207, 171, 73, .28); border-radius: 5px; color: #c5b17b; background: rgba(147, 120, 39, .1); font-size: 10px; line-height: 1.7; }
.mcp-recent { border-top: 1px solid rgba(97, 146, 166, .14); margin-top: 18px; padding-top: 13px; }.mcp-recent h3 { color: #acbfcc; font-size: 11px; font-weight: 500; margin: 0; }.mcp-recent p { color: #7594a6; font-size: 10px; }.mcp-recent small { color: #5e7d91; font-size: 9px; }
.mcp-feedback { margin-top: 17px; padding-top: 12px; border-top: 1px solid rgba(105, 162, 181, .13); color: #83a5b8; font-size: 11px; line-height: 1.8; }
.mcp-empty { grid-column: 1 / -1; padding: 32px 12px; text-align: center; color: #a1bac9; font-size: 12px; line-height: 1.8; }.mcp-empty small { display: block; color: #6c8b9e; font-size: 10px; margin-top: 8px; }.mcp-empty-icon { display: block; margin-bottom: 14px; color: #5a8a9e; font-size: 28px; }
.mcp-config-list { margin: 0; }.mcp-config-list > div { padding: 12px 0; border-bottom: 1px solid rgba(98, 160, 186, .12); font-size: 11px; }.mcp-config-list dt { margin-bottom: 5px; color: #7394a8; }.mcp-config-list dd { margin: 0; color: #b2cbd8; overflow-wrap: anywhere; }
.settings-other-panel { padding: 26px 14px; }.settings-other-panel p { max-width: 580px; color: #88a4b5; font-size: 13px; line-height: 2; margin-bottom: 24px; }
.settings-dialog { width: min(480px, calc(100vw - 32px)); padding: 27px; border: 1px solid rgba(61, 175, 181, .4); border-radius: 13px; color: #c2d8e4; background: #0b1c29; box-shadow: 0 25px 100px rgba(0, 0, 0, .65); }
.settings-dialog::backdrop { background: rgba(1, 6, 14, .72); backdrop-filter: blur(5px); }.settings-dialog h2 { font-size: 21px; margin: 11px 0; }.settings-dialog p { font-size: 12px; line-height: 1.9; color: #87a6ba; }.settings-dialog label { display: block; color: #9cb6c7; font-size: 12px; margin: 17px 0 7px; }.settings-dialog input, .settings-dialog select { width: 100%; padding: 10px; border: 1px solid rgba(112, 163, 188, .25); border-radius: 5px; background: #102432; color: #c5e0eb; }.settings-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
@media (min-width: 1500px) { .settings-content { padding: 28px 35px; }.mcp-workspace { grid-template-columns: minmax(0, 1fr) 340px; }.mcp-service-card { padding: 19px; }.mcp-card-description { margin-top: 14px; margin-bottom: 16px; }.mcp-service-grid { gap: 15px; } }
@media (max-width: 1160px) { .settings-view { grid-template-columns: 155px minmax(0, 1fr); }.settings-content { padding: 19px; }.mcp-workspace { grid-template-columns: minmax(0, 1fr) 255px; }.mcp-service-grid { grid-template-columns: 1fr; }.mcp-detail { padding: 13px; }.settings-sidebar nav button { font-size: 12px; padding: 11px 7px; } }
@media (max-width: 720px) { .workspace-navigation { order: 5; }.settings-view { display: block; min-height: 0; }.settings-sidebar { padding: 14px 10px; border-right: 0; border-bottom: 1px solid rgba(111, 163, 185, .13); }.settings-sidebar h2, .settings-sidebar-foot { display: none; }.settings-sidebar nav { display: flex; gap: 5px; overflow-x: auto; }.settings-sidebar nav button { width: auto; flex-shrink: 0; padding: 8px; font-size: 11px; gap: 5px; }.settings-sidebar nav button span { font-size: 15px; width: 14px; }.settings-content { padding: 18px 13px; }.settings-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 16px; }.settings-heading h1 { font-size: 23px; }.settings-heading-actions { gap: 7px; }.settings-button { padding: 8px 11px; }.mcp-workspace { grid-template-columns: minmax(0, 1fr); }.mcp-service-grid { grid-template-columns: minmax(0, 1fr); }.mcp-service-toolbar > select { max-width: 135px; }.mcp-detail { padding: 17px; }.mcp-card-heading h2 { font-size: 14px; }.mcp-service-card { padding: 16px; }.mcp-preview-notice { font-size: 10px; }.mcp-feedback { font-size: 10px; }.mcp-policy-row select { max-width: 200px; } }
/* 真实控制面：状态、不可编辑策略、审计与公开目录只读结果。 */
body[data-mcp-mode="live"] .settings-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
body[data-mcp-mode="live"] .settings-view button:disabled, body[data-mcp-mode="live"] .settings-dialog button:disabled { cursor: not-allowed; opacity: .45; }
.mcp-state.state-connected { color: #6cd9b3; }
.mcp-state.state-available { color: #8fc8dc; }
.mcp-state.state-unavailable { color: #df9a96; }
.mcp-state.state-disabled { color: #91a1b0; }
.mcp-live-reason, .mcp-control-note { font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.mcp-live-reason { color: #c7b38c; margin: 8px 0; }
.mcp-control-note { color: #8ca6b6; margin: 6px 0 12px; }
.mcp-call-list { display: grid; gap: 8px; }
.mcp-call { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid rgba(97, 155, 178, .18); border-radius: 5px; color: #96b3c5; font-size: 10px; overflow-wrap: anywhere; }
.mcp-call strong, .mcp-call time, .mcp-call small { width: 100%; }
.mcp-call strong { color: #c1d8e3; font-weight: 500; }
.mcp-catalog-query { display: flex; gap: 8px; align-items: center; }
.mcp-catalog-query input { min-width: 0; }
.mcp-catalog-results { max-height: min(430px, 45vh); overflow-y: auto; margin-top: 18px; overflow-wrap: anywhere; font-size: 12px; }
.mcp-catalog-item { padding: 12px; border: 1px solid rgba(97, 155, 178, .18); border-radius: 6px; margin-bottom: 10px; }
.mcp-catalog-item h3 { margin: 0; font-size: 13px; }
.mcp-catalog-item a { color: #63d8d3; font-size: 11px; }
.mcp-catalog-item small { display: block; margin-bottom: 8px; }
@media (max-width: 720px) { body[data-mcp-mode="live"] .settings-heading-actions { justify-content: flex-start; width: 100%; }body[data-mcp-mode="live"] .mcp-state { flex-wrap: wrap; }.mcp-catalog-query { flex-wrap: wrap; }.mcp-catalog-query button { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .mcp-switch span, .mcp-service-card { transition: none; } }
