.json-workbench-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.json-workbench-head h2 {
    margin-bottom: 6px;
}

.json-status {
    margin: 0;
    text-align: right;
    max-width: 420px;
}

.json-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.json-toolbar-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.json-toolbar-main button {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.json-toolbar-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.json-toolbar-options label {
    font-size: 13px;
    color: var(--muted);
}

.json-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text);
}

.json-check input {
    width: auto;
    height: auto;
    flex: none;
    accent-color: var(--primary);
}

.tool-select-sm {
    height: 36px;
    min-width: 100px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 10px;
    font-size: 13px;
    color-scheme: light;
    cursor: pointer;
}

.tool-select-sm option {
    color: #1a2233;
    background: #eef2fb;
}

.json-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.json-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.json-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.json-panel-head h3 {
    font-size: 15px;
    margin: 0;
}

.json-mini-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.json-editor {
    width: 100%;
    min-height: 360px;
    resize: vertical;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #060912;
    color: #dbe4ff;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    outline: none;
    flex: none;
    box-sizing: border-box;
}

.json-editor:focus {
    border-color: rgba(91, 124, 250, 0.65);
    box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.15);
}

.json-editor-output {
    background: rgba(6, 9, 18, 0.85);
}

.json-editor::placeholder {
    color: rgba(154, 167, 199, 0.55);
}

.json-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.status-msg.success {
    color: #7dcea0;
}

.status-msg.error {
    color: #f08a8a;
}

@media (max-width: 900px) {
    .json-panels {
        grid-template-columns: 1fr;
    }

    .json-editor {
        min-height: 280px;
    }

    .json-status {
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .json-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .json-toolbar-options {
        justify-content: flex-start;
    }
}
