| 1 | .mcp-page { max-width: 960px; } |
| 2 | .mcp-page .page-head { margin-bottom: 12px; } |
| 3 | |
| 4 | .mcp-section { padding: 22px 0 6px; } |
| 5 | .mcp-section + .mcp-section { border-top: 1px solid var(--line); margin-top: 16px; } |
| 6 | .mcp-section h2 { margin: 0; color: var(--text); font-size: 15px; } |
| 7 | .mcp-section > p { margin: 6px 0; color: var(--text-2); max-width: 70ch; } |
| 8 | .mcp-section > p:first-child { margin-top: 0; } |
| 9 | .mcp-heading { display: flex; align-items: center; gap: 10px; min-height: 26px; flex-wrap: wrap; } |
| 10 | .mcp-heading .mcp-actions { margin-left: auto; } |
| 11 | .mcp-section h2.mcp-label { margin: 16px 0 6px; color: var(--text-2); font-size: 12px; font-weight: 600; } |
| 12 | .mcp-page .hint, .mcp-approval .hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; } |
| 13 | .mcp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } |
| 14 | |
| 15 | .mcp-key { display: flex; gap: 8px; align-items: stretch; } |
| 16 | .mcp-key .button { height: auto; min-height: 34px; } |
| 17 | .mcp-section > .mcp-key + .error { margin: 6px 0 0; color: color-mix(in srgb, var(--critical) 80%, var(--text)); font-size: 13px; } |
| 18 | |
| 19 | .mcp-wrappers { display: grid; gap: 14px; margin: 14px 0 10px; } |
| 20 | .mcp-wrapper { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; } |
| 21 | .mcp-wrapper-main { display: grid; gap: 8px; min-width: 0; } |
| 22 | .mcp-wrapper-main > .mcp-label { margin: 2px 0 -4px; color: var(--text-2); font-size: 12px; font-weight: 600; } |
| 23 | .mcp-wrapper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; } |
| 24 | |
| 25 | .mcp-client-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-sizing: border-box; } |
| 26 | .mcp-client-mark .logo { display: grid; width: 16px; height: 16px; color: var(--text); } |
| 27 | .mcp-client-mark .logo svg { width: 100%; height: 100%; } |
| 28 | .mcp-client-mark .monogram { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 7px; background: var(--accent-wash); color: var(--accent); font-size: 12px; font-weight: 700; } |
| 29 | |
| 30 | /* Shale account */ |
| 31 | .mcp-repositories { margin: 10px 0 0; } |
| 32 | .mcp-repositories summary { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); cursor: pointer; list-style: none; border-radius: 4px; } |
| 33 | .mcp-repositories summary::-webkit-details-marker { display: none; } |
| 34 | .mcp-repositories[open] summary .chevron { transform: rotate(90deg); } |
| 35 | .mcp-repository-list { margin: 8px 0 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 24px; } |
| 36 | .mcp-repository-list li { display: flex; gap: 10px; padding: 4px 0; break-inside: avoid; font-size: 13px; overflow-wrap: anywhere; } |
| 37 | .mcp-repository-list li span:first-child { font-weight: 550; } |
| 38 | .mcp-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; } |
| 39 | .mcp-link p { margin: 0; color: var(--text-2); } |
| 40 | |
| 41 | /* Connected clients: an edge-to-edge list, as the dashboard's tables are. */ |
| 42 | .mcp-section.flush { padding-bottom: 0; } |
| 43 | .mcp-clients { margin: 10px calc(-1 * var(--gutter)) 0; padding: 0; list-style: none; } |
| 44 | .mcp-client { |
| 45 | display: grid; |
| 46 | grid-template-columns: 28px minmax(0, 1fr) auto auto; |
| 47 | align-items: center; |
| 48 | column-gap: 12px; |
| 49 | padding: 8px 0 8px var(--gutter); |
| 50 | border-top: 1px solid var(--grid); |
| 51 | transition: background-color 150ms; |
| 52 | } |
| 53 | .mcp-client:last-child { border-bottom: 1px solid var(--grid); } |
| 54 | .mcp-client:hover, .mcp-client.editing { background: color-mix(in srgb, var(--hover) 60%, transparent); } |
| 55 | .mcp-client-main { min-width: 0; display: grid; gap: 4px; } |
| 56 | .mcp-client h3 { margin: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 57 | .mcp-page .chips, .mcp-resources .chips { gap: 4px 6px; } |
| 58 | .chip:is(.ability, .fact) { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); line-height: 18px; color: var(--text-2); } |
| 59 | .chip.fact { padding: 0 6px; font-size: 11px; line-height: 16px; color: var(--muted); } |
| 60 | .chip.ability.strong { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); color: color-mix(in srgb, var(--warning) 60%, var(--text)); } |
| 61 | .mcp-client-when { color: var(--muted); font-size: 12px; white-space: nowrap; } |
| 62 | /* td.actions buttons, filling the row's height. */ |
| 63 | .mcp-row-actions { display: flex; align-self: stretch; } |
| 64 | .mcp-row-actions button { |
| 65 | min-height: 36px; |
| 66 | padding: 0 14px; |
| 67 | border: 0; |
| 68 | background: none; |
| 69 | color: var(--accent); |
| 70 | font-size: 13px; |
| 71 | font-weight: 500; |
| 72 | white-space: nowrap; |
| 73 | cursor: pointer; |
| 74 | transition: background-color 150ms; |
| 75 | } |
| 76 | .mcp-row-actions button:hover:not(:disabled) { background: var(--raised); } |
| 77 | .mcp-row-actions button.danger { color: color-mix(in srgb, var(--critical) 80%, var(--text)); } |
| 78 | .mcp-row-actions button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--critical) 12%, transparent); } |
| 79 | .mcp-row-actions button:disabled { opacity: 0.45; cursor: default; } |
| 80 | .mcp-row-actions button:focus-visible { outline-offset: -2px; } |
| 81 | .mcp-row-actions button[aria-expanded="true"] { background: var(--accent-wash); } |
| 82 | |
| 83 | .mcp-editor { grid-column: 2 / -1; padding: 6px var(--gutter) 10px 0; } |
| 84 | .mcp-editor > p:first-child { margin: 6px 0 10px; color: var(--text-2); } |
| 85 | .mcp-access { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; } |
| 86 | .mcp-access legend { padding: 0; margin-bottom: 8px; color: var(--text-2); font-size: 12px; font-weight: 600; } |
| 87 | .mcp-resources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 10px 0; } |
| 88 | .mcp-resources .checkbox { align-items: start; overflow-wrap: anywhere; color: var(--text); } |
| 89 | .mcp-resources .checkbox .box { margin-top: 2px; } |
| 90 | .mcp-resources .checkbox > span:last-child { display: grid; gap: 4px; min-width: 0; } |
| 91 | .mcp-resources small { display: block; font-size: 12px; } |
| 92 | .mcp-fixed { display: flex; gap: 6px; align-items: start; margin: 8px 0 12px; color: var(--muted); font-size: 12px; } |
| 93 | .mcp-fixed .icon { flex: none; margin-top: 2px; } |
| 94 | .mcp-editor .error { margin: 0 0 10px; font-size: 13px; } |
| 95 | .mcp-none { margin: 4px 0; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--text); font-size: 13px; } |
| 96 | |
| 97 | .mcp-empty { display: grid; justify-items: start; gap: 4px; padding: 14px 0 8px; } |
| 98 | .mcp-empty p { margin: 0; color: var(--muted); } |
| 99 | .mcp-empty .mcp-empty-title { color: var(--text-2); font-weight: 550; } |
| 100 | |
| 101 | @media (max-width: 760px) { |
| 102 | /* Every tab stays in view as a grid; the chosen one is filled directly, since the sliding highlight assumes one row. */ |
| 103 | .mcp-tabs .segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } |
| 104 | .mcp-tabs .segmented :is(.pill, .ink) { display: none; } |
| 105 | .mcp-tabs .segmented > a { justify-content: center; padding-block: 6px; } |
| 106 | .mcp-tabs .segmented > a[aria-current="page"] { background: var(--accent); color: var(--on-accent); } |
| 107 | .mcp-client { grid-template-columns: 28px minmax(0, 1fr); row-gap: 4px; padding-right: var(--gutter); align-items: start; } |
| 108 | .mcp-client h3 { white-space: normal; } |
| 109 | .mcp-client-when { grid-column: 2; } |
| 110 | .mcp-row-actions { grid-column: 2; margin-left: -14px; } |
| 111 | .mcp-row-actions button { min-height: 32px; } |
| 112 | .mcp-editor { grid-column: 1 / -1; padding-right: 0; } |
| 113 | .mcp-wrapper-head { flex-wrap: wrap; } |
| 114 | } |
| 115 | |
| 116 | /* Consent: a full-screen route, no shell. */ |
| 117 | .mcp-authorization { min-height: 100%; display: grid; place-items: center; padding: 40px 24px; box-sizing: border-box; } |
| 118 | .mcp-approval { width: min(100%, 560px); padding: 28px 32px 24px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); } |
| 119 | .mcp-approval-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--accent); font-weight: 700; font-size: 15px; } |
| 120 | .mcp-approval-brand img { width: 26px; height: 26px; } |
| 121 | .mcp-approval h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; } |
| 122 | .mcp-approval h2 { margin: 0 0 10px; color: var(--text); font-size: 14px; } |
| 123 | .mcp-approval-intro { margin: 8px 0 18px; color: var(--text-2); font-size: 15px; } |
| 124 | .mcp-request-identity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--well); font-size: 13px; } |
| 125 | .mcp-request-identity > div { display: contents; } |
| 126 | .mcp-request-identity dt { color: var(--muted); } |
| 127 | .mcp-request-identity dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; } |
| 128 | .mcp-permissions { padding: 20px 0 4px; } |
| 129 | .mcp-permissions ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } |
| 130 | .mcp-permissions li { display: flex; gap: 10px; align-items: start; color: var(--text-2); } |
| 131 | .mcp-permissions li svg { flex: none; margin-top: 1px; color: var(--accent); } |
| 132 | .mcp-permissions li.strong { color: var(--text); font-weight: 550; } |
| 133 | .mcp-permissions li small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; } |
| 134 | .mcp-permissions li.strong svg { color: color-mix(in srgb, var(--warning) 70%, var(--text)); } |
| 135 | .mcp-approval .mcp-access { margin-top: 16px; } |
| 136 | .mcp-link-step { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); } |
| 137 | .mcp-link-step p { margin: 0 0 12px; color: var(--text-2); } |
| 138 | .mcp-approval > .error { margin: 16px 0 0; } |
| 139 | .mcp-approval > .mcp-actions { margin-top: 16px; } |
| 140 | .mcp-approval-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); } |
| 141 | .mcp-approval-actions .spacer { flex: 1; } |
| 142 | .mcp-approval-actions .hint { margin: 0; } |
| 143 | @media (max-width: 760px) { |
| 144 | .mcp-authorization { padding: 12px; align-items: start; } |
| 145 | .mcp-approval { padding: 20px 18px 18px; } |
| 146 | .mcp-approval h1 { font-size: 22px; } |
| 147 | .mcp-approval-actions .button { flex: 1; } |
| 148 | } |