h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f8fc;
    color: #172033;
}

* {
    box-sizing: border-box;
}

button,
input {
    font: inherit;
}


/* =========================
   SHELL
   ========================= */

.mcp-shell {
    min-height: 100vh;
}

.mcp-shell-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #e6eaf1;
}

.mcp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcp-brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #635bff;
    color: #ffffff;
    font-weight: 800;
}

.mcp-brand-name {
    font-size: 15px;
    font-weight: 750;
}

.mcp-brand-subtitle {
    margin-top: 2px;
    color: #8a95a8;
    font-size: 11px;
}

.mcp-shell-label {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.2px;
}


/* =========================
   PAGE
   ========================= */

.mcp-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 28px 60px;
}

.mcp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.mcp-eyebrow {
    margin-bottom: 8px;
    color: #635bff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.mcp-page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -.03em;
}

.mcp-page-header p {
    max-width: 700px;
    margin: 9px 0 0;
    color: #758198;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================
   STATUS
   ========================= */

.mcp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

    .mcp-status.connected {
        background: #e9f8f2;
        color: #087443;
    }

    .mcp-status.disconnected {
        background: #f2f4f7;
        color: #667085;
    }

.mcp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}


/* =========================
   CARDS
   ========================= */

.mcp-connection-card,
.mcp-server-card,
.mcp-tools-card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 40, 70, .025);
}

.mcp-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

    .mcp-section-heading h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 650;
    }

    .mcp-section-heading p {
        margin: 5px 0 0;
        color: #8290a4;
        font-size: 12px;
    }


/* =========================
   FORM
   ========================= */

.mcp-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.mcp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .mcp-field label {
        color: #344054;
        font-size: 12px;
        font-weight: 650;
    }

.mcp-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe2ed;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
}

    .mcp-input:focus {
        border-color: #635bff;
        box-shadow: 0 0 0 3px rgba(99, 91, 255, .10);
    }

    .mcp-input:disabled {
        background: #f8f9fb;
    }


/* =========================
   ACTIONS
   ========================= */

.mcp-connection-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.mcp-primary-button,
.mcp-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.mcp-primary-button {
    border: 0;
    background: #635bff;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(99, 91, 255, .18);
}

.mcp-secondary-button {
    border: 1px solid #d8dee8;
    background: #ffffff;
    color: #344054;
}

    .mcp-primary-button:disabled,
    .mcp-secondary-button:disabled {
        opacity: .6;
        cursor: wait;
    }

.mcp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mcp-spin .7s linear infinite;
}

@keyframes mcp-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   ERROR
   ========================= */

.mcp-error {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
}


/* =========================
   SERVER INFO
   ========================= */

.mcp-server-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mcp-info-item {
    padding: 15px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fafbfc;
}

.mcp-info-label {
    display: block;
    margin-bottom: 7px;
    color: #8290a4;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mcp-info-item strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================
   TOOLS
   ========================= */

.mcp-count {
    min-width: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eeecff;
    color: #635bff;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.mcp-tool-icon {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eeecff;
    color: #635bff;
}

.mcp-empty {
    padding: 40px 20px;
    border: 1px dashed #dfe4ec;
    border-radius: 10px;
    text-align: center;
}

.mcp-empty-icon {
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 25px;
}

.mcp-empty h3 {
    margin: 0;
    font-size: 15px;
}

.mcp-empty p {
    margin: 6px 0 0;
    color: #8290a4;
    font-size: 12px;
}

.mcp-tools-card,
.mcp-tool-invocation-card,
.mcp-tool-result-card {
    width: 100%;
    margin-top: 1.5rem;
}

.mcp-tool-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mcp-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    background: #ffffff;
}

.mcp-tool-content {
    flex: 1;
    min-width: 0;
}

    .mcp-tool-content h3 {
        margin: 0 0 0.35rem;
    }

    .mcp-tool-content p {
        margin: 0 0 1rem;
    }

.mcp-tool-invocation-card {
    padding: 1.5rem;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    background: #ffffff;
}

.mcp-selected-tool {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.mcp-invocation-actions {
    display: flex;
    justify-content: flex-end;
}

.mcp-tool-result-card {
    padding: 1.5rem;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    background: #ffffff;
}

.mcp-tool-result {
    width: 100%;
    max-height: 450px;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
    background: #f6f7fb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

    .mcp-tool-result.error {
        border: 1px solid #e3a5a5;
    }

/* =========================================================
   AI ASSISTANT
   ========================================================= */

.mcp-ai-card {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e5ec;
    border-radius: 14px;
    background: #ffffff;
}

.mcp-ai-composer {
    margin-top: 1.25rem;
}

    .mcp-ai-composer label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
    }

.mcp-ai-input {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 0.875rem 1rem;
    border: 1px solid #d9dde7;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

    .mcp-ai-input:focus {
        outline: none;
        border-color: #7357ff;
        box-shadow: 0 0 0 3px rgba(115, 87, 255, 0.12);
    }

    .mcp-ai-input:disabled {
        background: #f5f6f9;
        cursor: not-allowed;
    }

.mcp-ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.875rem;
}

.mcp-ai-hint {
    color: #6d7587;
    font-size: 0.8125rem;
}

.mcp-ai-response {
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e5ec;
    border-radius: 12px;
    background: #fafbfe;
}

.mcp-ai-response-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e5ec;
}

.mcp-ai-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #7357ff;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.mcp-ai-response-header div:last-child {
    display: flex;
    flex-direction: column;
}

.mcp-ai-response-header span {
    color: #7b8393;
    font-size: 0.75rem;
}

.mcp-ai-response-body {
    padding: 1rem;
    color: #252b38;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {

    .mcp-ai-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .mcp-ai-actions .mcp-primary-button {
            width: 100%;
        }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 800px) {

    .mcp-shell-header {
        padding: 0 18px;
    }

    .mcp-page {
        padding: 25px 16px 40px;
    }

    .mcp-page-header {
        flex-direction: column;
    }

    .mcp-form-grid,
    .mcp-server-grid,
    .mcp-tool-list {
        grid-template-columns: 1fr;
    }

    .mcp-shell-label {
        display: none;
    }
}

/* =========================================================
   MCP EXPLORER - TOOL / ASSISTANT WORKSPACE
   ========================================================= */

.mcp-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin: 22px 0 18px;
    padding: 6px;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    background: #eef1f7;
}

.mcp-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #667085;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

    .mcp-tab:hover {
        color: #344054;
        background: rgba(255,255,255,.72);
    }

    .mcp-tab.active {
        border-color: #e1e5ee;
        background: #ffffff;
        color: #172033;
        box-shadow: 0 4px 14px rgba(25,40,70,.06);
    }

.mcp-tab-icon {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eeecff;
    color: #635bff;
    font-size: 16px;
}

    .mcp-tab-icon.ai {
        background: #f0ecff;
        color: #7357ff;
    }

.mcp-tab > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.mcp-tab strong {
    font-size: 13px;
    font-weight: 700;
}

.mcp-tab small {
    overflow: hidden;
    color: #8993a5;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcp-tab-count {
    min-width: 27px;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0efff;
    color: #635bff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.mcp-workspace-card {
    width: 100%;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e2e6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 24px rgba(25,40,70,.035);
}

    .mcp-workspace-card .mcp-section-heading {
        margin-bottom: 20px;
    }

.mcp-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mcp-tool-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

    .mcp-tool-card:hover {
        border-color: #c8c3ff;
        background: #fcfcff;
        box-shadow: 0 5px 16px rgba(99,91,255,.07);
        transform: translateY(-1px);
    }

    .mcp-tool-card.selected {
        border-color: #bdb7ff;
        background: #f9f8ff;
        box-shadow: 0 0 0 3px rgba(99,91,255,.07);
    }

    .mcp-tool-card .mcp-tool-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

.mcp-tool-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

    .mcp-tool-content strong {
        overflow: hidden;
        color: #172033;
        font-size: 13px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mcp-tool-content > span {
        display: -webkit-box;
        overflow: hidden;
        color: #7b879a;
        font-size: 11px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.mcp-tool-arrow {
    flex: 0 0 auto;
    color: #a0a8b7;
    font-size: 17px;
    transition: color .18s ease, transform .18s ease;
}

.mcp-tool-card:hover .mcp-tool-arrow {
    color: #635bff;
    transform: translateX(2px);
}

.mcp-selected-tool-badge {
    max-width: 260px;
    overflow: hidden;
    padding: 7px 10px;
    border: 1px solid #ddd9ff;
    border-radius: 8px;
    background: #f6f5ff;
    color: #635bff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcp-invocation-workspace {
    background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
}

.mcp-invocation-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 16px;
}

.mcp-schema-panel,
.mcp-arguments-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e8ef;
    border-radius: 13px;
    background: #fbfcfe;
}

.mcp-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .mcp-panel-header h3 {
        margin: 3px 0 0;
        color: #172033;
        font-size: 14px;
        font-weight: 700;
    }

.mcp-panel-kicker {
    display: block;
    color: #929bad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mcp-panel-description {
    margin: 0 0 12px;
    color: #7b879a;
    font-size: 11px;
    line-height: 1.55;
}

    .mcp-panel-description code,
    .mcp-section-heading code {
        padding: 2px 5px;
        border-radius: 4px;
        background: #f0f1f5;
        color: #525b6c;
        font-family: Consolas, "Courier New", monospace;
        font-size: .92em;
    }

.mcp-readonly-badge,
.mcp-json-badge,
.mcp-result-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mcp-readonly-badge {
    border: 1px solid #e2e5ec;
    background: #ffffff;
    color: #8993a5;
}

.mcp-json-badge {
    background: #eeecff;
    color: #635bff;
}

.mcp-json-editor {
    display: block;
    width: 100%;
    min-height: 280px;
    padding: 13px 14px;
    border: 1px solid #dfe4ed;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #263044;
    font-family: Consolas, "Cascadia Code", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
    tab-size: 2;
}

    .mcp-json-editor:focus {
        border-color: #9189ff;
        box-shadow: 0 0 0 3px rgba(99,91,255,.09);
    }

.mcp-schema-editor {
    background: #f5f6fa;
    color: #667085;
    cursor: default;
}

.mcp-argument-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.mcp-small-button {
    min-height: 38px;
    padding: 0 13px;
}

.mcp-result-status {
    border: 1px solid transparent;
}

    .mcp-result-status.success {
        border-color: #bfe8d5;
        background: #edf9f3;
        color: #087443;
    }

    .mcp-result-status.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.mcp-result-workspace {
    padding-bottom: 20px;
}

/* =========================================================
   AI ASSISTANT WORKSPACE
   ========================================================= */

.mcp-assistant-workspace {
    margin-top: 18px;
}

.mcp-assistant-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid #e2defe;
    border-radius: 16px;
    background: radial-gradient(circle at 90% 10%, rgba(115,87,255,.11), transparent 35%), linear-gradient(135deg, #faf9ff 0%, #ffffff 65%);
}

.mcp-assistant-icon {
    display: flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #7357ff;
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(115,87,255,.22);
    font-size: 22px;
}

.mcp-assistant-hero h2 {
    margin: 0;
    color: #172033;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.mcp-assistant-hero p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #758198;
    font-size: 12px;
    line-height: 1.65;
}

.mcp-assistant-card {
    margin-top: 14px;
    padding: 24px;
    border: 1px solid #e2e6ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 24px rgba(25,40,70,.035);
}

.mcp-assistant-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

    .mcp-assistant-tools > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mcp-assistant-tools strong {
        color: #344054;
        font-size: 12px;
    }

.mcp-assistant-tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mcp-tool-chip {
    padding: 5px 8px;
    border: 1px solid #dedbff;
    border-radius: 999px;
    background: #f7f6ff;
    color: #6259d8;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 650;
}

    .mcp-tool-chip.muted {
        border-color: #e3e6ec;
        background: #f7f8fa;
        color: #7c8798;
        font-family: inherit;
    }

.mcp-assistant-button {
    min-width: 190px;
}

.mcp-assistant-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    background: #fafbfc;
    color: #697588;
    font-size: 11px;
    line-height: 1.55;
}

.mcp-note-icon {
    display: flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f5;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.mcp-assistant-note div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mcp-assistant-note strong {
    color: #475467;
    font-size: 11px;
}

/* Improve textarea appearance in the existing assistant composer. */
.mcp-ai-input {
    min-height: 125px;
}

/* =========================================================
   RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 900px) {
    .mcp-tool-grid,
    .mcp-invocation-grid {
        grid-template-columns: 1fr;
    }

    .mcp-schema-editor {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .mcp-tabs {
        grid-template-columns: 1fr;
    }

    .mcp-tab-count {
        margin-left: auto;
    }

    .mcp-workspace-card,
    .mcp-assistant-card {
        padding: 18px;
    }

    .mcp-assistant-hero {
        align-items: flex-start;
        padding: 20px;
    }

        .mcp-assistant-hero h2 {
            font-size: 18px;
        }

    .mcp-invocation-grid {
        gap: 12px;
    }

    .mcp-schema-panel,
    .mcp-arguments-panel {
        padding: 14px;
    }

    .mcp-argument-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .mcp-argument-actions button {
            width: 100%;
        }

    .mcp-selected-tool-badge {
        max-width: 100%;
    }

    .mcp-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mcp-assistant-actions,
    .mcp-ai-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .mcp-ai-actions .mcp-primary-button {
            width: 100%;
        }
}
