Files
Agent-Workbench/docs/reading-s-evidence/source-bytes/src/client/McpPanel.css
T

100 lines
9.3 KiB
CSS

.mcp-panel { color: #253b4b; --mcp-line: #cad5dc; --mcp-ink: #183849; --mcp-muted: #607584; --mcp-surface: #f2f6f6; }
.mcp-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.mcp-kicker { display: flex; align-items: center; gap: 7px; color: #496f73; font-size: 11px; font-weight: 700; }
.mcp-heading h3 { margin: 8px 0; color: var(--mcp-ink); font: 700 23px/1.35 'Microsoft YaHei UI', 'Segoe UI', sans-serif; }
.mcp-heading p { max-width: 640px; margin: 0; color: var(--mcp-muted); font-size: 13px; line-height: 1.7; }
.mcp-heading > button { flex: 0 0 auto; }
.mcp-status-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 12px 2px; border-block: 1px solid var(--mcp-line); color: #496171; font-size: 12px; }
.mcp-status-bar > span { display: inline-flex; align-items: center; gap: 7px; }
.mcp-light { width: 7px; height: 7px; border-radius: 50%; background: #2f816b; }
.mcp-alert, .mcp-notice, .mcp-warning, .mcp-boundary { display: flex; align-items: start; gap: 9px; padding: 11px 12px; margin: 12px 0; border: 1px solid #d8c4b8; background: #fff7f1; color: #92563c; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.mcp-alert svg, .mcp-notice svg, .mcp-boundary svg { flex: 0 0 auto; margin-top: 2px; }
.mcp-notice { border-color: #bdd8cb; background: #eff7f3; color: #356b5e; }
.mcp-warning { border: 0; padding: 0; background: transparent; color: #8f642d; }
.mcp-boundary { border-color: #c5d8d8; background: #f0f7f6; color: #456d6a; }
.mcp-registration-list { display: grid; gap: 12px; margin-top: 14px; }
.mcp-registration { min-width: 0; padding: 16px; border: 1px solid var(--mcp-line); border-left: 4px solid #6c8990; border-radius: 5px; background: #fff; }
.mcp-registration.status-changed { border-left-color: #aa6548; }
.mcp-registration-heading { display: flex; align-items: start; gap: 10px; }
.mcp-registration-heading > svg { flex: 0 0 auto; margin-top: 2px; color: #4d7479; }
.mcp-registration-heading > div { flex: 1; min-width: 0; }
.mcp-registration-heading h4 { margin: 0 0 4px; color: #203f4b; font-size: 15px; overflow-wrap: anywhere; }
.mcp-registration-heading p { margin: 0; color: var(--mcp-muted); font-size: 11px; }
.mcp-enabled { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #d0d9dc; color: #60717a; font-size: 10px; border-radius: 3px; }
.mcp-enabled.on { color: #276855; border-color: #b6d2c7; background: #edf6f1; }
.mcp-source { display: grid; gap: 9px; margin: 14px 0; padding: 11px; background: var(--mcp-surface); font-size: 11px; }
.mcp-source > div { display: grid; gap: 3px; min-width: 0; }
.mcp-source > div > span, .mcp-source > span { color: #637781; }
.mcp-source code, .mcp-source small { overflow-wrap: anywhere; word-break: break-word; }
.mcp-source code { color: #243e4c; font: 11px/1.55 Consolas, monospace; }
.mcp-source small { display: flex; align-items: center; gap: 5px; color: #648077; font-size: 10px; }
.mcp-contract-line { display: flex; align-items: center; gap: 6px; margin: 12px 0; color: #357566; font-size: 11px; overflow-wrap: anywhere; }
.mcp-tool-list { border-top: 1px solid #e1e8e8; padding-top: 11px; }
.mcp-tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.mcp-tool-heading span { color: var(--mcp-muted); font-size: 10px; }
.mcp-tool-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 10px 7px; border-top: 1px solid #ebefef; }
.mcp-tool-option > input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #347b70; }
.mcp-tool-option > span { min-width: 0; display: grid; gap: 4px; }
.mcp-tool-option strong { color: #294a54; font-size: 12px; overflow-wrap: anywhere; }
.mcp-tool-option em { color: #9a5b42; font-size: 10px; font-style: normal; }
.mcp-tool-option small { color: #687c84; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.mcp-tool-option details { color: #526d72; font-size: 10px; }
.mcp-tool-option summary { width: fit-content; min-height: 26px; padding: 4px 0; cursor: pointer; }
.mcp-tool-option pre, .mcp-report pre { max-height: 260px; overflow: auto; padding: 10px; background: #f1f5f5; color: #314e59; white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.6 Consolas, monospace; }
.mcp-tool-option.unsupported { opacity: .7; }
.mcp-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mcp-register { margin-top: 18px; padding: 16px; border: 1px solid var(--mcp-line); border-radius: 5px; background: var(--mcp-surface); }
.mcp-register-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.mcp-register-heading h4 { display: flex; align-items: center; gap: 6px; margin: 0; color: #294753; font-size: 13px; }
.mcp-register-heading span { color: var(--mcp-muted); font-size: 10px; }
.mcp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 11px; }
.mcp-form-grid label { display: grid; gap: 5px; min-width: 0; color: #4d6571; font-size: 11px; font-weight: 600; }
.mcp-full { grid-column: 1 / -1; }
.mcp-panel input:not([type="checkbox"]) { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #c7d3d6; border-radius: 3px; background: #fff; color: #233d49; font: 12px/1.45 'Segoe UI', 'Microsoft YaHei UI', sans-serif; }
.mcp-panel input:focus-visible, .mcp-panel summary:focus-visible, .mcp-report pre:focus-visible { outline: 2px solid #4b8580; outline-offset: 2px; }
.mcp-register footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--mcp-muted); font-size: 10px; line-height: 1.5; }
.mcp-empty, .mcp-history-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 24px 12px; margin: 12px 0; border: 1px dashed #c9d6d9; color: #657b82; text-align: center; font-size: 12px; }
.mcp-empty strong { color: #36565d; font-size: 13px; }
.mcp-empty p { max-width: 530px; margin: 0; line-height: 1.65; }
.mcp-history { margin-top: 18px; }
.mcp-history-list { display: grid; gap: 8px; }
.mcp-history-row { padding: 11px; border: 1px solid #d4dfe0; border-left: 3px solid #66888a; border-radius: 4px; background: #fff; }
.mcp-history-row.state-unknown { border-left-color: #b45d44; background: #fffaf7; }
.mcp-history-title { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.mcp-history-title > div { min-width: 0; display: grid; gap: 3px; }
.mcp-history-title strong { color: #2b4650; font-size: 12px; overflow-wrap: anywhere; }
.mcp-history-title small { color: #6e8086; font-size: 10px; }
.mcp-job-state { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; color: #46786b; font-size: 10px; }
.mcp-job-state.state-failed, .mcp-job-state.state-unknown { color: #a34e3d; }
.mcp-history-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; color: #6a7e83; font-size: 10px; overflow-wrap: anywhere; }
.mcp-history-error { color: #9a5240; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.mcp-history-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.mcp-report { margin-top: 12px; border: 1px solid #c8d7d7; border-radius: 4px; overflow: hidden; }
.mcp-report header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 11px; background: #eaf2f1; color: #355b5a; font-size: 12px; }
.mcp-report-meta { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 5px 9px; padding: 10px 11px 0; color: #6a7f80; font-size: 10px; }
.mcp-report-meta code { min-width: 0; color: #48656a; overflow-wrap: anywhere; }
.mcp-report pre { max-height: 360px; margin: 0; }
.mcp-original-input { padding: 8px 11px; border-top: 1px solid #dce6e5; color: #536e70; font-size: 10px; }
.mcp-original-input summary { min-height: 26px; padding: 4px 0; cursor: pointer; overflow-wrap: anywhere; }
.mcp-original-input pre { max-height: 220px; margin: 5px 0 0; overflow: auto; padding: 10px; background: #f1f5f5; color: #314e59; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.6 Consolas, monospace; }
.mcp-report > .text-button { margin: 8px; }
.mcp-boundary-note { padding: 0 11px; color: #7c6954; font-size: 10px; line-height: 1.55; }
.mcp-review-warning { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 12px; border: 1px solid #e0c7b8; background: #fff7f1; color: #89533e; font-size: 12px; line-height: 1.65; }
.mcp-review-warning p { margin: 0; }
.mcp-probe-summary { display: grid; gap: 8px; padding: 12px; border: 1px solid #cad9d9; background: #f3f7f6; font-size: 12px; }
.mcp-probe-summary code { overflow-wrap: anywhere; color: #39575e; font: 11px/1.5 Consolas, monospace; }
.mcp-probe-summary span { color: #7d5e48; line-height: 1.55; }
@media (max-width: 620px) {
.mcp-heading { flex-direction: column; gap: 12px; }
.mcp-heading h3 { font-size: 20px; }
.mcp-registration, .mcp-register { padding: 12px; }
.mcp-form-grid { grid-template-columns: minmax(0, 1fr); }
.mcp-full { grid-column: auto; }
.mcp-register footer { flex-direction: column; align-items: stretch; }
.mcp-register footer .button { justify-content: center; }
.mcp-controls > .button { flex: 1 1 auto; justify-content: center; }
.mcp-history-title { flex-direction: column; }
.mcp-history-actions > .button { flex: 1; justify-content: center; }
.mcp-panel .button { min-height: 44px; }
}