:root {
    --list-shell-bg: #ffffff;
    --list-shell-border: #e8eef6;
    --list-shell-shadow: 0 18px 40px rgba(10, 30, 70, 0.08);
    --list-shell-radius: 18px;
    --list-text-color: #1d2b4c;
    --list-muted: #5c6b80;
    --list-accent: #0d6efd;
    --list-accent-soft: rgba(13, 110, 253, 0.08);
}

.list-tool-shell {
    background: var(--list-shell-bg);
    border-radius: var(--list-shell-radius);
    box-shadow: var(--list-shell-shadow);
    padding: 30px;
    margin-bottom: 32px;
    color: var(--list-text-color);
}

.list-tool-shell .heading-layout1,
.list-tool-shell .new-added-form > .row > .custom-control {
    display: none;
}

.list-tool-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.list-tool-header h1,
.list-tool-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--list-text-color);
}

.list-tool-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--list-muted);
}

.list-tool-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-tool-editor {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--list-shell-border);
    border-radius: 16px;
    overflow: hidden;
}

.list-tool-editor textarea {
    border: none !important;
    background: #f7f9fd !important;
    min-height: 220px;
    padding: 20px 22px;
    font-size: 15px;
    line-height: 1.6;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--list-text-color);
    resize: vertical;
}

.list-tool-editor textarea:focus {
    outline: none;
    background: #fff !important;
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.list-tool-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px dashed rgba(13, 110, 253, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.list-tool-dropzone strong {
    font-weight: 600;
    color: var(--list-text-color);
}

.list-tool-dropzone span {
    font-size: 14px;
    color: var(--list-muted);
}

.list-tool-dropzone input {
    display: none;
}

.list-tool-dropzone[data-dragging="true"] {
    background: rgba(13, 110, 253, 0.12);
    border-color: var(--list-accent);
}

.list-tool-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.list-tool-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--list-shell-border);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 14px;
    color: var(--list-text-color);
}

.list-tool-toggle input {
    display: none;
}

.list-tool-toggle[data-active="true"] {
    border-color: var(--list-accent);
    box-shadow: 0 0 0 3px var(--list-accent-soft);
    background: rgba(13, 110, 253, 0.08);
}

.list-tool-preview {
    border: 1px solid var(--list-shell-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.list-tool-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--list-shell-border);
}

.list-tool-preview__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.list-tool-preview__header button {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--list-accent);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.list-tool-preview__header button:hover,
.list-tool-preview__header button:focus {
    background: #0b5ed7;
    outline: none;
}

.list-tool-preview__body {
    padding: 20px 22px;
    max-height: 280px;
    overflow: auto;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--list-text-color);
    background: #f7f9fd;
}

.list-tool-preview[data-empty="true"] .list-tool-preview__body {
    color: var(--list-muted);
}

.list-tool-preview__empty {
    color: var(--list-muted);
    font-size: 14px;
}

.list-tool-server-result {
    border: 1px solid var(--list-shell-border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.list-tool-server-result[hidden] {
    display: none !important;
}

.list-tool-server-result__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--list-shell-border);
}

.list-tool-server-result__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.list-tool-server-result__body {
    padding: 20px 22px;
    max-height: 280px;
    overflow: auto;
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    background: #f7f9fd;
    white-space: pre-wrap;
    line-height: 1.6;
}

.list-tool-shell .alert {
    border-radius: 16px;
    padding: 16px 20px;
    font-weight: 500;
}

.list-tool-error {
    border-radius: 16px;
    padding: 16px 20px;
    background: rgba(217, 48, 37, 0.12);
    color: #d93025;
    font-weight: 600;
}

@media (max-width: 768px) {
    .list-tool-shell {
        padding: 22px;
    }

    .list-tool-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .list-tool-toggle {
        justify-content: space-between;
    }
}
