.mcp-heading,.mcp-actions,.mcp-search,.mcp-pagination,.mcp-dialog-header,.mcp-dialog-footer,.mcp-config-heading{display:flex;align-items:center;gap:12px}
.mcp-heading,.mcp-pagination,.mcp-dialog-header,.mcp-dialog-footer,.mcp-config-heading{justify-content:space-between}
.mcp-heading{margin-bottom:24px}.mcp-heading h1,.mcp-heading h2{margin:0 0 6px;color:#172332;font-size:24px;line-height:1.3}.mcp-heading p{margin:0;color:#667487;font-size:14px;line-height:1.7}
.mcp-toolbar{display:flex;align-items:flex-end;gap:16px;margin-bottom:24px}.mcp-toolbar>label:first-child{flex:1;max-width:620px}.mcp-toolbar>label>span{display:block;margin-bottom:8px;font-size:12px;font-weight:600;color:#43536a}.mcp-toolbar input,.mcp-toolbar select{min-height:40px;padding:9px 12px;border:1px solid #dce3eb;border-radius:9px;background:#fff;color:#253449;font:inherit;font-size:13px;box-sizing:border-box}.mcp-search input{flex:1;min-width:0}.mcp-toolbar select{min-width:190px;max-width:100%}.mcp-search .secondary-button{min-height:40px}
.mcp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px}.mcp-card{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid #e6ebf0;border-radius:16px;background:#fff;box-shadow:0 5px 18px #142a4410;transition:box-shadow .18s,transform .18s}.mcp-card:hover{box-shadow:0 9px 26px #142a4419;transform:translateY(-2px)}.mcp-card header{display:flex;gap:12px;align-items:flex-start}.mcp-card header>div{flex:1;min-width:0}.mcp-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:11px;background:#f1f5f9;color:#335672}.mcp-icon svg{width:23px;height:23px}.mcp-card h3{font-size:17px;line-height:1.4;margin:2px 0 0;color:#172332;overflow-wrap:anywhere}.mcp-category{font-size:11px;color:#61748b}.mcp-description{font-size:13px;line-height:1.75;color:#667487;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:68px;margin:18px 0}.mcp-card-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding-bottom:18px;margin-top:auto}.mcp-card-meta code{font-size:11px;color:#738094;overflow-wrap:anywhere;max-width:100%}.mcp-transport{font-size:11px;font-weight:500;color:#4b6580;background:#f1f5fa;padding:4px 8px;border-radius:6px;line-height:1.5}.mcp-card footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:16px;border-top:1px solid #edf0f4}.mcp-card footer>span{font-size:11px;color:#7b8797}.mcp-card footer .secondary-button{display:flex;gap:8px;align-items:center;padding:8px 12px;min-height:34px;font-size:12px}.mcp-status{white-space:nowrap;background:#f2f4f7;color:#67758b;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.4}.mcp-status.is-published{background:#eaf7f0;color:#20704c}.mcp-empty{grid-column:1/-1;text-align:center;padding:64px 20px;color:#69778a;background:#fff;border:1px dashed #dbe2ea;border-radius:14px}.mcp-empty .mcp-icon{margin:0 auto 18px}.mcp-empty h3{font-size:17px;color:#344256}.mcp-empty p{font-size:13px;line-height:1.7}.mcp-pagination{margin-top:24px;font-size:12px;color:#738094}.mcp-pagination>div{display:flex;gap:8px}.mcp-error{font-size:13px;line-height:1.6;padding:12px 14px;background:#fff0f0;color:#a63131;border-radius:9px;overflow-wrap:anywhere}.mcp-error[hidden]{display:none}
.mcp-dialog{width:min(1040px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #e6ebf0;border-radius:18px;color:#253449;background:#fff;box-shadow:0 24px 100px #15273e38;overflow:hidden}.mcp-dialog::backdrop{background:#12223766;backdrop-filter:blur(3px)}.mcp-dialog[open]{display:flex;flex-direction:column}.mcp-dialog form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 42px)}.mcp-dialog-header{flex:none;padding:22px 26px;border-bottom:1px solid #edf0f4;background:#fff}.mcp-dialog-header h2{font-size:20px;margin:0;color:#172332;overflow-wrap:anywhere}.mcp-kicker{margin:0 0 5px;color:#758397;font-size:11px}.mcp-close{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #e1e6ec;border-radius:9px;color:#68778a;background:#fff;font-size:23px;cursor:pointer}.mcp-close:hover{background:#f4f6f9;color:#172332}.mcp-dialog-scroll{padding:24px 26px;overflow-y:auto;min-height:0;overscroll-behavior:contain;flex:1;-webkit-overflow-scrolling:touch}.mcp-dialog-footer{padding:18px 26px;border-top:1px solid #edf0f4;background:#fff;flex:none}.mcp-dialog-footer>.mcp-help{max-width:590px;margin:0}.mcp-detail-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#6d7c8f}.mcp-detail-meta a{margin-left:auto;color:#315f86;text-decoration:none}.mcp-detail-meta a:hover{text-decoration:underline}.mcp-detail-description{line-height:1.8;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.mcp-config-heading{margin-bottom:12px}.mcp-config-heading h3{font-size:14px;color:#344256;margin:0}.mcp-config-heading .secondary-button{font-size:12px;padding:7px 10px;min-height:32px}.mcp-source-preview{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.85;background:#f6f8fa;color:#334155;padding:20px;border:1px solid #e8edf2;border-radius:12px;margin:0;max-height:480px;overflow:auto;tab-size:2}.mcp-guidance{display:flex;gap:12px;align-items:flex-start;margin-top:18px}.mcp-guidance .mcp-icon{width:32px;height:32px;border-radius:8px}.mcp-guidance .mcp-icon svg{width:18px;height:18px}.mcp-guidance p{margin:0;font-size:12px;line-height:1.8;color:#6a788b}
.mcp-editor-fields{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr);gap:28px;border:0;padding:0;margin:0;min-width:0}.mcp-editor-info,.mcp-editor-config{min-width:0}.mcp-editor-fields label{display:block;font-size:12px;line-height:1.6;font-weight:600;color:#43536a}.mcp-editor-info>label,.mcp-field-row{margin-bottom:18px}.mcp-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.mcp-editor-fields input:not([type=checkbox]),.mcp-editor-fields textarea,.mcp-editor-fields select{display:block;width:100%;box-sizing:border-box;margin-top:7px;background:#fff;color:#1f3046;border:1px solid #dce3eb;border-radius:9px;padding:10px 12px;font:inherit}.mcp-editor-fields textarea{resize:vertical;line-height:1.7}.mcp-editor-fields .mcp-source-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.8;min-height:340px;tab-size:2;margin-top:0}.mcp-editor-fields input:focus,.mcp-editor-fields textarea:focus,.mcp-editor-fields select:focus,.mcp-toolbar input:focus,.mcp-toolbar select:focus{outline:2px solid #d7e6f6;border-color:#6a97c0;outline-offset:1px}.mcp-save-state{display:block;font-size:11px;color:#7c8999;margin-top:14px}.mcp-save-state.is-dirty{color:#a66c20}.mcp-help{font-size:11px;line-height:1.75;color:#6f7f92;margin:9px 0 0}.mcp-editor-fields .mcp-publish-option{display:flex;gap:10px;align-items:flex-start;background:#f5f8fb;border-radius:10px;padding:14px;margin:0}.mcp-publish-option input{margin:3px 0 0;width:16px;height:16px;accent-color:#356d9a;flex:none}.mcp-publish-option small{display:block;font-weight:400;color:#768497;line-height:1.65;margin-top:4px}.mcp-delete{color:#ac3939!important}.mcp-dialog button:focus-visible,.mcp-grid button:focus-visible,.mcp-pagination button:focus-visible,.mcp-detail-meta a:focus-visible,.mcp-source-preview:focus-visible{outline:3px solid #99bddb;outline-offset:3px}.mcp-dialog button:disabled{opacity:.55;cursor:wait}.mcp-dialog .primary-button,.mcp-dialog .secondary-button{white-space:nowrap}.mcp-dialog .mcp-actions{flex-wrap:wrap}.mcp-dialog fieldset:disabled{opacity:.75}
@media(max-width:760px){.mcp-heading{align-items:flex-start;flex-wrap:wrap}.mcp-heading h1,.mcp-heading h2{font-size:22px}.mcp-toolbar{align-items:stretch;flex-direction:column;gap:12px}.mcp-toolbar>label:first-child{max-width:none}.mcp-toolbar select{width:100%}.mcp-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.mcp-dialog form{max-height:calc(100dvh - 18px)}.mcp-dialog-header,.mcp-dialog-footer{padding:16px 18px}.mcp-dialog-scroll{padding:18px}.mcp-editor-fields{grid-template-columns:minmax(0,1fr);gap:22px}.mcp-editor-config{border-top:1px solid #edf0f4;padding-top:20px}.mcp-dialog-footer{gap:12px;align-items:flex-start;flex-wrap:wrap}.mcp-dialog-footer>.mcp-help{display:none}.mcp-editor-fields .mcp-source-editor{min-height:280px;font-size:14px}.mcp-editor-fields input:not([type=checkbox]),.mcp-editor-fields textarea,.mcp-editor-fields select,.mcp-toolbar input,.mcp-toolbar select{font-size:16px}.mcp-card{padding:18px}.mcp-source-preview{max-height:420px}.mcp-pagination{align-items:flex-start;gap:10px}.mcp-actions{gap:8px}.mcp-dialog-footer>.mcp-actions:last-child{margin-left:auto}.mcp-detail-meta a{margin-left:0}.mcp-dialog-header h2{font-size:18px}.mcp-field-row{grid-template-columns:minmax(0,1fr)}}
@media(max-height:540px) and (max-width:760px){.mcp-dialog-header{padding:10px 14px}.mcp-dialog-header .mcp-kicker{display:none}.mcp-dialog-footer{padding:9px 14px}.mcp-dialog-scroll{padding:14px}.mcp-dialog-footer .primary-button,.mcp-dialog-footer .secondary-button{min-height:34px;padding:7px 12px}}
@media(prefers-reduced-motion:reduce){.mcp-card{transition:none}.mcp-card:hover{transform:none}}

/* Server-backed marketplace counts and favorites. */
.mcp-statistics{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 0 0;color:#627187;font-size:12px}
.mcp-statistic{display:inline-flex;align-items:center;gap:6px;min-width:0;line-height:1.4}
.mcp-statistic svg,.mcp-favorites-filter svg,.mcp-download-button svg{width:16px;height:16px;flex:none}
.mcp-statistic strong{font-size:13px;font-variant-numeric:tabular-nums;font-weight:650;color:#34455c;overflow-wrap:anywhere}
button.mcp-favorite{min-height:44px;border:1px solid transparent;border-radius:10px;padding:8px 10px;margin-right:-10px;background:transparent;color:#627187;font:inherit;font-size:12px;cursor:pointer;transition:background .15s,color .15s}
button.mcp-favorite:hover{background:#fff0f4;color:#b63b62}
button.mcp-favorite.is-favorited{color:#b52e58;background:#fff3f6}
button.mcp-favorite.is-favorited svg{fill:currentColor;stroke-width:1.3}
button.mcp-favorite.is-favorited strong{color:inherit}
button.mcp-favorite[aria-busy=true]{opacity:.6;cursor:wait}
.mcp-favorites-filter{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;flex:none;border:1px solid #dce3eb;border-radius:10px;padding:9px 13px;background:#fff;color:#52657c;font:inherit;font-size:12px;cursor:pointer}
.mcp-favorites-filter:hover{border-color:#d995aa;background:#fff8fa;color:#a72d53}
.mcp-favorites-filter[aria-pressed=true]{background:#fff0f5;border-color:#eab5c6;color:#aa2d55;font-weight:600}
.mcp-favorites-filter[aria-pressed=true] svg{fill:currentColor}
.mcp-favorites-filter:focus-visible,.mcp-statistic:focus-visible{outline:3px solid #99bddb;outline-offset:3px}
.mcp-dialog-scroll>.mcp-statistics{padding:12px 14px;margin:16px 0 22px;border-radius:11px;background:#f8fafc;justify-content:flex-start;gap:22px}
.mcp-dialog-scroll>.mcp-statistics .mcp-favorite{margin-right:0}
.mcp-card footer{flex-wrap:wrap;padding-top:12px}
.mcp-card footer .secondary-button,.mcp-card footer .mcp-download-button{min-height:44px}
@media(max-width:760px){.mcp-favorites-filter{min-height:44px}.mcp-statistic{font-size:12px}.mcp-statistics{gap:8px}.mcp-card footer{gap:8px}}
@media(prefers-reduced-motion:reduce){button.mcp-favorite{transition:none}}

.mcp-download-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:8px;background:transparent;color:#2d638c;padding:8px 0;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.mcp-download-button:hover{color:#154463}.mcp-download-button:disabled{opacity:.5;cursor:wait}.mcp-toolbar{flex-wrap:wrap}.mcp-toolbar>label:first-child{min-width:min(100%,280px)}

/* The native details button also covers the card; secondary actions stay separate. */
.mcp-card{position:relative;isolation:isolate}
.mcp-card [data-mcp-action="open"]{position:static}
.mcp-card [data-mcp-action="open"]::after{content:"";position:absolute;inset:0;z-index:1;border-radius:16px;cursor:pointer}
.mcp-card [data-mcp-action="open"]:focus-visible::after{outline:3px solid #99bddb;outline-offset:3px}
.mcp-card .mcp-favorite,.mcp-card .mcp-download-button{position:relative;z-index:2}

/* Keep the three statistics readable on narrow cards and in every locale. */
.mcp-card>.mcp-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:8px}
.mcp-card>.mcp-statistics .mcp-statistic{display:grid;grid-template-columns:16px minmax(0,1fr);gap:4px 6px;padding:8px 0;min-width:0}
.mcp-card>.mcp-statistics .mcp-statistic>span:last-child{grid-column:1/-1;font-size:11px;overflow-wrap:anywhere}
.mcp-card>.mcp-statistics .mcp-favorite{margin:0;padding:8px;border-radius:9px;text-align:start}
.mcp-description-editor{margin:0 0 20px;padding:16px;border-radius:14px;background:#f7f9fb}
.mcp-description-editor h3{margin:0 0 12px;font-size:14px;color:#172332}
.mcp-description-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.mcp-description-fields textarea{min-height:100px;resize:vertical;font:inherit;line-height:1.6}
.mcp-icon-editor{margin-bottom:20px}
.mcp-icon-preview-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.mcp-icon.mcp-tool-icon{position:relative;overflow:hidden;margin:0}
.mcp-tool-icon-image{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;padding:5px;object-fit:contain;background:#fff}
.mcp-detail-heading{display:flex;align-items:center;gap:12px;min-width:0}
.mcp-detail-heading>div{min-width:0}
.mcp-infinite-footer{flex-wrap:wrap;justify-content:center;gap:14px 24px;margin-top:24px}
.mcp-infinite-footer [data-mcp-count],.mcp-infinite-footer [data-mcp-end]{font-size:12px;color:#64748b}
.mcp-infinite-footer button{min-height:44px;min-width:130px}
.mcp-load-sentinel{height:1px;pointer-events:none}
@media(max-width:760px){.mcp-description-editor{padding:14px}}

/* Quiet marketplace surfaces shared with the model and usage pages. */
.mcp-heading{margin-bottom:22px}.mcp-heading h1,.mcp-heading h2{color:#171717;font-size:30px;font-weight:650;letter-spacing:-.035em}.mcp-heading p{color:#737373;line-height:1.65}
.mcp-toolbar{margin-bottom:20px;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.025)}.mcp-toolbar>label>span{margin-bottom:7px;color:#525252;font-size:11px}.mcp-toolbar input,.mcp-toolbar select{min-height:42px;border-color:#e5e7eb;border-radius:8px}.mcp-search{gap:8px}.mcp-search .secondary-button{min-height:42px}.mcp-favorites-filter{min-height:42px;border-color:#e5e7eb;border-radius:8px;color:#525252}.mcp-favorites-filter:hover{border-color:#e7b8c4;background:#fff;color:#a72d53}.mcp-favorites-filter[aria-pressed=true]{border-color:#ead2d9;background:#fdf7f8;color:#a72d55}
.mcp-grid{gap:16px}.mcp-card{padding:22px;border-color:#e5e7eb;border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.025);transition:border-color .2s,box-shadow .2s,transform .2s}.mcp-card:hover{border-color:#cbd5e1;box-shadow:0 12px 28px -18px rgba(15,23,42,.28);transform:translateY(-2px)}.mcp-card header{gap:12px}.mcp-icon{width:38px;height:38px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa;color:#525252}.mcp-icon svg{width:20px;height:20px;stroke-width:1.7}.mcp-category{display:block;margin-bottom:3px;color:#8a8a8a;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.mcp-card h3{margin:0;color:#171717;font-size:18px;font-weight:650;letter-spacing:-.02em}.mcp-description{min-height:45px;margin:16px 0;color:#737373;font-size:12px;line-height:1.75;-webkit-line-clamp:2}.mcp-card-meta{gap:8px;padding-bottom:10px}.mcp-card-meta code{color:#8a8a8a;font-size:10px}.mcp-transport{padding:3px 7px;border:1px solid #e5e7eb;border-radius:6px;background:#fafafa;color:#737373;font-size:10px}
.mcp-card>.mcp-statistics{gap:8px;margin:0;padding:10px 0;border-top:1px solid #f0f0f0}.mcp-card>.mcp-statistics .mcp-statistic{padding:4px 0;color:#8a8a8a}.mcp-statistic strong{color:#525252;font-size:13px;font-weight:600}.mcp-statistic svg{width:14px;height:14px;stroke-width:1.7}.mcp-card>.mcp-statistics .mcp-statistic>span:last-child{font-size:10px}button.mcp-favorite{color:#737373}button.mcp-favorite.is-favorited{background:#fdf4f6;color:#b52e58}.mcp-card footer{padding-top:14px;border-top-color:#ededed}.mcp-card footer .secondary-button{min-height:36px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:none;color:#525252}.mcp-card footer .mcp-download-button{min-height:36px;color:#737373}.mcp-download-button:hover{color:#171717}.mcp-status{border-radius:8px}.mcp-empty{border-color:#e5e7eb;border-radius:16px;color:#737373}.mcp-empty h3{color:#171717}.mcp-pagination{color:#8a8a8a}.mcp-error{border:1px solid #fecaca;background:#fef2f2}
.mcp-dialog{border-color:#e5e7eb;border-radius:16px;box-shadow:0 24px 80px -20px rgba(15,23,42,.35)}.mcp-dialog-header{padding:20px 24px;border-bottom-color:#ededed}.mcp-dialog-header h2{color:#171717;font-size:18px;font-weight:650;letter-spacing:-.02em}.mcp-kicker{color:#8a8a8a}.mcp-close{border-color:#e5e7eb;border-radius:8px}.mcp-dialog-scroll{padding:22px 24px}.mcp-dialog-footer{padding:16px 24px;border-top-color:#ededed}.mcp-source-preview{border-color:#e5e7eb;border-radius:10px;background:#fafafa;color:#404040}.mcp-editor-fields .mcp-publish-option,.mcp-description-editor{border:1px solid #ededed;background:#fafafa}.mcp-description-editor{border-radius:12px}.mcp-description-editor h3{color:#171717}.mcp-editor-fields input:not([type=checkbox]),.mcp-editor-fields textarea,.mcp-editor-fields select{border-color:#e5e7eb;border-radius:8px}.mcp-dialog .primary-button,.mcp-dialog .secondary-button{border-radius:8px}
@media(max-width:760px){.mcp-heading h1,.mcp-heading h2{font-size:26px}.mcp-toolbar{padding:12px}.mcp-card{padding:20px}.mcp-dialog-header,.mcp-dialog-footer{padding:16px 18px}.mcp-dialog-scroll{padding:18px}}
@media(prefers-reduced-motion:reduce){.mcp-card{transition:none}}
