/* Remove bottom border from the last row of list-table */
table.list-table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* MCP example conversations: chat-like panel */
.mcp-chat {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.1rem 0 1.4rem;
    padding: 1rem 1rem 1.15rem;
    border: 1px solid #d7dde3;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fbfcfd 0%, #f3f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mcp-chat-turn {
    max-width: min(92%, 38rem);
    padding: 0.85rem 1rem 0.95rem;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mcp-chat-turn > :first-child {
    margin-top: 0;
}

.mcp-chat-turn > :last-child {
    margin-bottom: 0;
}

.mcp-chat-turn > p:first-child {
    display: inline-block;
    margin: 0 0 0.55rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}

.mcp-chat-turn > p:first-child strong {
    font-weight: 700;
}

.mcp-chat-user {
    align-self: flex-end;
    margin-left: auto;
    background: #e8f2fb;
    border-color: #b7d0e8;
    border-bottom-right-radius: 6px;
}

.mcp-chat-user > p:first-child {
    color: #1f5f8b;
    background: #d0e4f5;
}

.mcp-chat-agent {
    align-self: flex-start;
    margin-right: auto;
    max-width: min(96%, 42rem);
    background: #ffffff;
    border-color: #d5d9dc;
    border-bottom-left-radius: 6px;
}

.mcp-chat-agent > p:first-child {
    color: #3d4a52;
    background: #e7ebef;
}

.mcp-chat-turn table.docutils {
    margin: 0.6rem 0;
}

.mcp-chat-turn ul,
.mcp-chat-turn ol {
    margin-bottom: 0.55rem;
}

/* MCP confirmation questions: checkbox-style options */
.mcp-chat-turn .mcp-chat-sep {
    margin: 0.75rem 0;
    border-top: 1px solid #d0d7de;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.mcp-chat-turn .mcp-chat-sep > p {
    margin: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    visibility: hidden;
}

.mcp-chat-turn .mcp-chat-q-title {
    margin: 0.35rem 0 0.35rem;
}

.mcp-chat-turn .mcp-chat-q-title > p {
    margin: 0;
}

.mcp-chat-turn .mcp-chat-status {
    margin: 0.15rem 0;
    color: #5b6b76;
    font-style: italic;
}

.mcp-chat-turn .mcp-chat-status > p {
    margin: 0;
}

.mcp-chat-turn .mcp-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.3rem 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    line-height: 1.45;
}

.mcp-chat-turn .mcp-choice > p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.mcp-chat-turn .mcp-choice::before {
    content: "";
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    margin-top: calc((1.45em - 1em) / 2);
    border: 1.5px solid #8a9aa8;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

.mcp-chat-turn .mcp-choice.is-selected {
    background: #f0f7ff;
    border-color: #c5dbf0;
}

.mcp-chat-turn .mcp-choice.is-selected::before {
    border-color: #2b6cb0;
    background: #2b6cb0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75em 0.75em;
}

.mcp-chat-turn .mcp-choice code {
    line-height: inherit;
    vertical-align: baseline;
    padding-top: 0;
    padding-bottom: 0;
}

.mcp-chat-turn .mcp-chat-answers-done {
    margin: 0.15rem 0 0;
}

.mcp-chat-turn .mcp-chat-answers-done > p {
    margin: 0;
}