/* Research Chat View Styles */

.research-chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.research-chat-view .chat-header {
    padding: var(--size-4-2) var(--size-4-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--size-4-2);
    border-bottom: 1px solid var(--background-modifier-border);
}

.research-chat-view .chat-controls {
    display: flex;
    align-items: center;
    gap: var(--size-4-3);
    flex-wrap: wrap;
}

.research-chat-view .control-item {
    display: flex;
    align-items: center;
    gap: var(--size-4-1);
    font-size: var(--font-ui-smaller);
    color: var(--text-muted);
}
    
.research-chat-view .control-label {
    white-space: nowrap;
}

.research-chat-view .chat-title {
    margin: 0;
}

.research-chat-view .chat-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--size-4-2);
    display: flex;
    flex-direction: column;
    gap: var(--size-4-2);
}

.research-chat-view .chat-container .chat-message {
    user-select: text;
    padding: var(--size-4-2) var(--size-4-3);
    border-radius: var(--radius-m);
    max-width: 80%;
    line-height: var(--line-height-normal);
}

.research-chat-view .chat-container .chat-message.model {
    background-color: var(--background-secondary);
    color: var(--text-normal);
}

.research-chat-view .chat-container .chat-message.model .chat-content.is-streaming {
    white-space: pre-wrap;
}

.research-chat-view .chat-container .chat-message.user {
    background-color: var(--interactive-accent);
    color: var(--text-on-accent);
    align-self: flex-end;
}

.research-chat-view .chat-thought {
    font-size: var(--font-ui-smallest);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: var(--size-4-1);
}

.research-chat-view .input-container {
    padding: var(--size-4-2);
    border-top: 1px solid var(--background-modifier-border);
}

.research-chat-view .chat-input {
    width: 100%;
    min-height: 3.5lh;
}

.research-chat-view .submit-button {
    margin-top: var(--size-4-2);
    width: 100%;
}

/* Ensure code blocks within chat are also selectable and look nice */
.research-chat-view .chat-container .chat-message pre,
.research-chat-view .chat-container .chat-message code {
    user-select: text;
}

/* Spotlight UI (Dual-Loop Search) */
.research-chat-view .spotlight-container {
    background-color: var(--background-secondary-alt);
    border: 1px solid var(--background-modifier-border);
    border-radius: var(--radius-m);
    padding: var(--size-4-3);
    margin: var(--size-4-2) 0;
    box-shadow: 0 var(--size-4-1) var(--size-4-3) rgb(0 0 0 / 10%);
}

.research-chat-view .spotlight-container h5 {
    margin: 0 0 var(--size-4-2) 0;
    color: var(--text-accent);
    font-size: var(--font-ui-small);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--size-4-1);
}

.research-chat-view .spotlight-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--size-4-1);
}

.research-chat-view .spotlight-container li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--size-4-1) var(--size-4-2);
    border-radius: var(--radius-s);
    transition: background-color 0.1s ease;
}

.research-chat-view .spotlight-container li:hover {
    background-color: var(--background-modifier-hover);
}

.research-chat-view .spotlight-link {
    font-weight: var(--font-medium);
    color: var(--text-normal);
    text-decoration: none;
    flex-grow: 1;
}

.research-chat-view .spotlight-score {
    font-size: var(--font-ui-smaller);
    color: var(--text-muted);
}

/* ++++++++++++++++++++++++++++++++++++ */

/* Similar notes styles                 */

.similar-notes-list {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    font-family: var(--font-interface);
    line-height: var(--line-height-normal);
    padding-top: var(--size-2-1);
    padding-bottom: var(--size-2-1);
}

.similar-notes-description {
    font-size: var(--font-ui-smaller);
    margin-top: 0;
    margin-bottom: 0;
}

.similar-notes-item {
    margin-bottom: var(--size-4-3);
    padding: var(--size-4-1) 0;
}

.similar-notes-header {
    display: flex;
    align-items: center;
    gap: var(--size-4-1);
}

a.similar-notes-link,
a.similar-notes-link:visited {
    color: var(--text-normal);
    font-weight: var(--font-medium);
    text-decoration: none;
}

a.similar-notes-link:hover {
    text-decoration: underline;
    color: var(--text-accent);
}

.similar-notes-score {
    min-width: 40px;
    font-size: var(--font-ui-smaller);
    color: var(--text-muted);
}

.similar-notes-score[data-score-ten="9"],
.similar-notes-score[data-score-ten="10"] {
    font-weight: var(--font-semibold);
    color: var(--text-accent);
}

.similar-notes-excerpt {
    color: var(--text-muted);
    margin: var(--size-4-1) 0 0 44px;

    /* Align with title start (score width + gap) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--line-height-tight);
    opacity: 0.8;
}

/* ------------------------------------ */

/* Force the System Instruction setting to stack vertically */
.setting-item.vault-intelligence-system-instruction-setting {
    display: block;

    /* Use standard Obsidian spacing variables */
    padding-bottom: var(--size-4-4);
    border-bottom: var(--border-width) solid var(--background-modifier-border);
}

/* Ensure the label/description has space below it */
.vault-intelligence-system-instruction-setting .setting-item-info {
    margin-bottom: var(--size-4-2);
}

/* Force the control container to take full width */
.vault-intelligence-system-instruction-setting .setting-item-control {
    width: 100%;
    display: block;
}

/* Make the text area fill the container and look like a code editor */
.vault-intelligence-system-instruction-setting textarea {
    width: 100%;
    max-width: 100%;

    /* Native Obsidian variables for fonts */
    font-family: var(--font-monospace);
    font-size: var(--font-ui-small);
    line-height: var(--line-height-normal);

    /* Ensure it matches the theme's input styling */
    background-color: var(--background-modifier-form-field);
    border: var(--border-width) solid var(--background-modifier-border);
    color: var(--text-normal);

    /* Make it resizable vertically only */
    resize: vertical;
    min-height: calc(var(--input-height) * 5);
}


/* The container for our settings info box */

/* Shared styles for settings info/warning boxes */
.vault-intelligence-settings-info,
.vault-intelligence-settings-warning {
    display: flex;
    align-items: start;
    gap: var(--size-4-2);
    margin-top: var(--size-4-2);
    background-color: transparent;
    border-radius: var(--radius-s);
    padding: var(--size-4-2);
    font-size: var(--font-ui-smaller);
    color: var(--text-muted);
}

.vault-intelligence-settings-info {
    border: var(--border-width) dashed var(--background-modifier-border);
}

.vault-intelligence-settings-warning {
    border: var(--border-width) solid var(--text-warning);
}

.vi-settings-tabs-content .setting-item-info .setting-item-description .vault-intelligence-settings-success svg.lucide-lock {
    margin-right: var(--size-4-1);
}

.vault-intelligence-settings-info .lucide-info,
.vault-intelligence-settings-warning .lucide-alert-triangle {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
}

.vault-intelligence-settings-info .lucide-info {
    color: var(--text-accent);
}

.vault-intelligence-settings-warning .lucide-alert-triangle {
    color: var(--text-warning);
}

/* 4. Links */
.vault-intelligence-settings-info a,
.vault-intelligence-settings-warning a {
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.vault-intelligence-settings-info a {
    color: var(--text-accent);
}

.vault-intelligence-settings-warning a {
    color: var(--text-warning);
}

/* Layout Fix: Align Input Box */
.vault-intelligence-api-setting .setting-item-control {
    align-self: flex-start;
    margin-top: var(--size-4-2);
}

/* --- Gardener Plan UI --- */
.gardener-plan-ui {
    padding: 1.25rem;
    background: var(--background-secondary);
    border-radius: var(--radius-l);
    border: var(--border-width) solid var(--background-modifier-border);
    margin: 1.5rem 0;
    font-family: var(--font-interface);
    box-shadow: 0 var(--size-4-1) var(--size-4-3) rgb(0 0 0 / 8%);
}

.gardener-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: var(--border-width) solid var(--background-modifier-border);
    padding-bottom: 0.5rem;
}

.gardener-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gardener-icon {
    color: var(--text-accent);
    display: flex;
    align-items: center;
}

.gardener-title {
    margin: 0;
    font-size: var(--font-large);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.gardener-summary {
    font-size: var(--font-small);
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: var(--line-height-normal);
}

.gardener-actions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gardener-action-card {
    background: var(--background-primary);
    padding: 1rem;
    border-radius: var(--radius-m);
    border: var(--border-width) solid var(--background-modifier-border);
    border-left: var(--size-4-1) solid var(--text-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gardener-action-card.action-merge {
    border-left-color: var(--color-blue);
}

.gardener-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--size-4-1) var(--size-4-3) rgb(0 0 0 / 5%);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: var(--font-semibold);
    margin-bottom: 0.75rem;
    color: var(--text-normal);
}

.action-type-icon {
    color: var(--text-accent);
    opacity: 0.8;
}

.gardener-action-card.action-merge .action-type-icon {
    color: var(--color-blue);
}

.action-file-path {
    font-family: var(--font-monospace);
    font-size: var(--font-ui-smaller);
    background: var(--background-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-s);
}

.action-changes {
    margin-bottom: 0.75rem;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-ui-small);
    padding: 0.2rem 0;
}

.change-field {
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.change-arrow {
    color: var(--text-faint);
}

.change-value {
    color: var(--text-success);
    font-weight: var(--font-semibold);
    background: rgb(var(--mono-rgb-100), 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: var(--radius-s);
}



.tag-warning {
    color: var(--text-error);
    display: flex;
    align-items: center;
}

.action-rationale {
    font-size: var(--font-ui-smaller);
    color: var(--text-muted);
    margin: 0;
    padding-top: 0.75rem;
    border-top: var(--border-width) solid var(--background-modifier-border-focus);
    line-height: 1.4;
}

.gardener-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.gardener-footer button {
    font-weight: var(--font-semibold);
    padding: 0.5rem 1.25rem;
}

.gardener-error {
    color: var(--text-error);
    background: rgb(var(--color-red-rgb), 0.1);
    padding: 1rem;
    border-radius: var(--radius-m);
    border: var(--border-width) solid var(--text-error);
}

.action-checkbox-container {
    display: flex;
    align-items: center;
}

.action-checkbox {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--text-accent);
}

.change-values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.change-value.invalid-topic {
    color: var(--text-error);
    background: rgb(var(--color-red-rgb), 0.1);
}

/* --- Progress Bar & Interactive Links --- */

.gardener-loading-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gardener-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--background-secondary-alt);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.gardener-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--text-accent);
    border-radius: 3px;
    animation: gardener-progress-slide 1.5s infinite ease-in-out;
}

@keyframes gardener-progress-slide {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

.gardener-loading-text {
    font-size: var(--font-ui-small);
    color: var(--text-muted);
    font-style: italic;
}

.interactive-link {
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.interactive-link:hover {
    color: var(--text-accent-hover);
    text-decoration: underline;
}

.action-file-path.interactive-link {
    color: var(--text-accent);
}

.change-value-wrapper {
    display: inline-flex;
    align-items: center;
    background: var(--background-secondary);
    border-radius: var(--radius-s);
    padding: 2px 6px;
    margin: 2px;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.change-value-wrapper.is-excluded {
    opacity: 0.5;
    filter: grayscale(1);
    text-decoration: line-through;
}

.remove-value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.1s ease;
}

.remove-value-icon:hover {
    color: var(--text-error);
}

.remove-value-icon svg {
    width: 12px;
    height: 12px;
}

/* File Suggest Styles */
.vault-intelligence-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.vault-intelligence-suggestion .suggestion-icon {
    flex: 0 0 16px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.vault-intelligence-suggestion .suggestion-icon svg {
    width: 16px;
    height: 16px;
}

.vault-intelligence-suggestion .suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vault-intelligence-suggestion .suggestion-title {
    font-weight: var(--font-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vault-intelligence-suggestion .suggestion-note {
    font-size: var(--font-ui-smallest);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Context Files List in Chat */
.context-details {
    margin-top: var(--size-4-2);
    font-size: var(--font-ui-small);
    color: var(--text-muted);
}

.context-details summary {
    cursor: pointer;
    user-select: none;
    padding: var(--size-4-1) 0;
}

.context-details summary:hover {
    color: var(--text-normal);
}

.context-file-list {
    display: flex;
    flex-direction: column;
    gap: var(--size-4-1);
    padding-left: var(--size-4-3);
    margin-top: var(--size-4-1);
    border-left: calc(var(--border-width) * 2) solid var(--background-modifier-border);
}

.context-file-item {
    display: flex;
    align-items: center;
    gap: var(--size-4-1);
    padding: var(--size-4-1) var(--size-4-2);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.context-file-item:hover {
    background-color: var(--background-modifier-hover);
    color: var(--text-normal);
}

.context-file-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.context-file-icon svg {
    width: 14px;
    height: 14px;
}

.context-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Tabbed Settings UI --- */

.vi-settings-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-4-1);
    margin-bottom: var(--size-4-4);
    padding-bottom: var(--size-4-2);
    border-bottom: 1px solid var(--background-modifier-border);
}

/* Hide tabs by default, show only active tab */
.vi-settings-tab {
    display: none;
}

.vi-settings-tab .setting-item-description {
    margin-bottom: var(--size-4-2);
}

.vi-settings-tab.is-active {
    display: block;
}

/* --- Settings Banner --- */
.vi-settings-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 640;
    object-fit: cover;
    border-radius: var(--radius-l);
    margin-bottom: var(--size-4-6);
    box-shadow: 0 4px 20px rgb(0 0 0 / 20%);
    border: var(--border-width) solid var(--background-modifier-border);
}

.vi-settings-banner-link {
    display: block;
    transition: transform 0.2s ease;
}

.vi-settings-banner-link:hover {
    transform: scale(1.01);
}

.vi-settings-banner-link:active {
    transform: scale(0.99);
}

/* Thinking Indicator */
.chat-message.thinking {
    opacity: 0.8;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: var(--size-4-1);
    background-color: transparent;

    /* Or match message style */
    padding: 5px 10px;
}

.thinking-dots {
    display: inline-block;
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0.5s;
    margin-left: 10px;
}

.thinking-dots::before,
.thinking-dots::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: dot-flashing 1s infinite alternate;
}

.thinking-dots::before {
    left: -12px;
    animation-delay: 0s;
}

.thinking-dots::after {
    left: 12px;
    animation-delay: 1s;
}

@keyframes dot-flashing {
    0% {
        background-color: var(--text-muted);
    }

    50%,
    100% {
        background-color: var(--text-accent);
    }
}

/* Release Notes Modal Styles */
.vi-release-notes-modal .release-notes-container {
    padding: var(--size-4-4);
    max-height: 60vh;
    overflow-y: auto;
    background-color: var(--background-secondary);
    border-radius: var(--radius-m);
    margin-bottom: var(--size-4-4);
    border: 1px solid var(--background-modifier-border);
}

.vi-release-notes-modal .modal-button-container {
    display: flex;
    justify-content: flex-end;
    gap: var(--size-4-2);
}

.vi-release-notes-modal .modal-button-container .sponsor-button,
.vi-release-notes-modal .modal-button-container .github-button,
.vi-release-notes-modal .modal-button-container .docs-button {
    display: inline-flex;
    align-items: center;
    gap: var(--size-4-1);
}

.vi-release-notes-modal .modal-button-container .sponsor-button {
    border-color: var(--color-red);
    color: var(--color-red);
}

.vi-release-notes-modal .modal-button-container .github-button,
.vi-release-notes-modal .modal-button-container .docs-button {
    margin-right: auto;
    color: var(--text-muted);
}

/* Ensure only the last left-aligned button pushes the others to the right */
.vi-release-notes-modal .modal-button-container .github-button,
.vi-release-notes-modal .modal-button-container .sponsor-button {
    margin-right: 0;
}

.vi-release-notes-modal .modal-button-container .docs-button {
    margin-right: auto;
}

.vi-release-notes-modal .modal-button-container .github-button:hover,
.vi-release-notes-modal .modal-button-container .docs-button:hover {
    color: var(--text-normal);
}

.vi-release-notes-modal .modal-button-container .sponsor-button:hover {
    background-color: #bf3989;
    color: white;
}

.vi-release-notes-modal .modal-button-container .sponsor-button svg,
.vi-release-notes-modal .modal-button-container .github-button svg,
.vi-release-notes-modal .modal-button-container .docs-button svg {
    color: inherit;
}

.vi-release-notes-modal .release-notes-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-s);
    display: block;
    margin: var(--size-4-4) auto;
}

/* Tool Confirmation Modal Styles */

.tool-confirmation-modal h2 {
    margin-top: 0;
    margin-bottom: var(--size-4-4);
    border-bottom: 1px solid var(--background-modifier-border);
    padding-bottom: var(--size-4-2);
}

.tool-confirmation-modal h4 {
    margin-top: var(--size-4-6);
    margin-bottom: var(--size-4-2);
}

.tool-confirmation-modal .confirmation-info {
    font-size: var(--font-ui-small);
    color: var(--text-muted);
    margin-bottom: var(--size-4-4);
}

.tool-confirmation-modal .confirmation-diff-container {
    max-height: 400px;

    /* Limit height for large diffs */
    overflow-y: auto;
    border: var(--border-width) solid var(--background-modifier-border);
    border-radius: var(--radius-s);
    background-color: var(--background-primary);
    padding: var(--size-4-2);
}

/* Use a monospace font for diff content */
.tool-confirmation-modal .confirmation-diff-container pre,
.tool-confirmation-modal .confirmation-diff-container code {
    font-family: var(--font-monospace);
    font-size: var(--font-ui-smaller);
}

/* Color-code added lines (if you can inject HTML classes for diffs later) */
.diff-added {
    color: var(--text-success);
    /* stylelint-disable-next-line color-function-notation */
    background-color: rgb(var(--color-green-rgb), 10%);
}

.diff-removed {
    color: var(--text-error);
    /* stylelint-disable-next-line color-function-notation */
    background-color: rgb(var(--color-red-rgb), 10%);
}

.tool-confirmation-modal .modal-button-container {
    display: flex;
    justify-content: flex-end;
    gap: var(--size-4-2);
    margin-top: var(--size-4-4);
}

/* Make the 'Execute' button prominent (e.g., CTA style) */
.tool-confirmation-modal .modal-button-container button.mod-cta {
    background-color: var(--interactive-accent);
    color: var(--text-on-accent);
}

.tool-confirmation-modal .modal-button-container button.mod-warning {
    background-color: var(--text-error);
    color: white;
}

.chat-content:empty {
    display: none;
}

.chat-error-block {
    color: var(--text-error);
    padding: var(--size-4-2) var(--size-4-3);
    border: var(--border-width) solid var(--background-modifier-error);
    border-left: calc(var(--border-width) * 4) solid var(--text-error);
    background-color: transparent;
    margin-top: var(--size-4-2);
    margin-bottom: var(--size-4-2);
    border-radius: var(--radius-s);
    font-weight: var(--font-medium);
}

.chat-cancelled-block {
    color: var(--text-muted);
    font-style: italic;
    padding: var(--size-4-2) var(--size-4-3);
    border-left: calc(var(--border-width) * 3) solid var(--text-muted);
    background-color: var(--background-modifier-hover);
    margin-top: var(--size-4-2);
    margin-bottom: var(--size-4-2);
    border-radius: var(--radius-s);
}

/* Key-Value Editor Validation */
.vi-kv-row input.is-invalid {
    border-color: var(--text-error);
    box-shadow: 0 0 0 1px var(--text-error);
}

/* Password Component Styles */
.vi-password-wrapper {
    position: relative;
}

.vi-password-input {
    padding-right: 30px;
}

.vi-password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--layer-cover);
}

/* Key-Value Editor Styles */
.vi-kv-editor-wrapper {
    border-top: var(--border-width) solid var(--background-modifier-border);
    padding: 1em 0;
}

.vi-kv-description {
    margin-bottom: 1em;
    font-size: var(--font-ui-small);
}

.vi-kv-row {
    align-items: center;
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.vi-kv-secret-label {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: var(--font-ui-smallest);
    gap: 0.2em;
}

.vi-kv-add {
    margin-top: 0.5em;
}

/* MCP Settings Styles */
.mcp-server-list-container {
    margin-bottom: 2em;
}

.mcp-server-item {
    border: 1px solid var(--background-modifier-border);
    border-radius: 8px;
    margin-bottom: 1em;
    padding: 1em;
}

.mcp-server-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.mcp-server-header h4 {
    margin: 0;
}

.mcp-status {
    border-radius: var(--radius-s);
    font-size: var(--font-ui-smallest);
    margin-left: 10px;
    padding: 2px 6px;
    background-color: var(--background-modifier-border);
}

.mcp-status.is-connected {
    background-color: var(--interactive-success);
}

.mcp-status.is-error,
.mcp-status.is-untrusted {
    background-color: var(--interactive-error);
}

.mcp-server-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.mcp-server-actions-inline {
    display: flex;
    gap: 1em;
    margin-top: 2em;
}

.vi-text-error {
    color: var(--text-error);
}

.vi-text-warning {
    color: var(--text-warning);
}