.tool-form-json .json-editor-split,
.tool-form-sql .json-editor-split,
.tool-form-xml .json-editor-split,
.tool-form-yaml .json-editor-split,
.tool-form-html .json-editor-split,
.tool-form-css .json-editor-split,
.tool-form-js .json-editor-split {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 46.8vh;
    align-items: stretch;
}

.tool-form-json .json-editor-panel,
.tool-form-sql .json-editor-panel,
.tool-form-xml .json-editor-panel,
.tool-form-yaml .json-editor-panel,
.tool-form-html .json-editor-panel,
.tool-form-css .json-editor-panel,
.tool-form-js .json-editor-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tool-form-json .wd-editor,
.tool-form-sql .wd-editor,
.tool-form-xml .wd-editor,
.tool-form-yaml .wd-editor,
.tool-form-html .wd-editor,
.tool-form-css .wd-editor,
.tool-form-js .wd-editor {
    min-width: 400px;
    transition: width 0.2s;
    background-color: #e0e0e0;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
}

.tool-form-json .right .ace_gutter-layer,
.tool-form-sql .right .ace_gutter-layer,
.tool-form-xml .right .ace_gutter-layer,
.tool-form-yaml .right .ace_gutter-layer,
.tool-form-html .right .ace_gutter-layer,
.tool-form-css .right .ace_gutter-layer,
.tool-form-js .right .ace_gutter-layer {
    border-right: none;
    height: 100%;
}

.tool-form-json .json-editor-panel-input,
.tool-form-sql .json-editor-panel-input,
.tool-form-sql .json-editor-panel-output,
.tool-form-xml .json-editor-panel-input,
.tool-form-xml .json-editor-panel-output,
.tool-form-yaml .json-editor-panel-input,
.tool-form-yaml .json-editor-panel-output,
.tool-form-html .json-editor-panel-input,
.tool-form-html .json-editor-panel-output,
.tool-form-css .json-editor-panel-input,
.tool-form-css .json-editor-panel-output,
.tool-form-js .json-editor-panel-input,
.tool-form-js .json-editor-panel-output {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.tool-form-json .json-editor-panel-input,
.tool-form-sql .json-editor-panel-input,
.tool-form-xml .json-editor-panel-input,
.tool-form-yaml .json-editor-panel-input,
.tool-form-html .json-editor-panel-input,
.tool-form-css .json-editor-panel-input,
.tool-form-js .json-editor-panel-input {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #e0e0e0;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
}

.tool-form-json #input-editor-host,
.tool-form-sql #input-editor-host,
.tool-form-xml #input-editor-host,
.tool-form-yaml #input-editor-host,
.tool-form-html #input-editor-host,
.tool-form-css #input-editor-host,
.tool-form-js #input-editor-host {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tool-form-json .json-editor-panel-input .ln-textarea,
.tool-form-json .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-sql .json-editor-panel-input .ln-textarea,
.tool-form-sql .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-xml .json-editor-panel-input .ln-textarea,
.tool-form-xml .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-yaml .json-editor-panel-input .ln-textarea,
.tool-form-yaml .json-editor-panel-input #editor .cm-editor,
.tool-form-html .json-editor-panel-input .ln-textarea,
.tool-form-html .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-css .json-editor-panel-input .ln-textarea,
.tool-form-css .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-js .json-editor-panel-input .ln-textarea,
.tool-form-js .json-editor-panel-input #input-editor-host .cm-editor {
    border: none;
    border-radius: 0;
    background: #fff;
}

.tool-form-json .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-sql .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-sql .json-editor-panel-input .ln-textarea-input,
.tool-form-xml .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-xml .json-editor-panel-input .ln-textarea-input,
.tool-form-yaml .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-yaml .json-editor-panel-input .ln-textarea-input,
.tool-form-html .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-html .json-editor-panel-input .ln-textarea-input,
.tool-form-css .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-css .json-editor-panel-input .ln-textarea-input,
.tool-form-js .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-js .json-editor-panel-input .ln-textarea-input {
    font-family: var(--font-mono);
}

.tool-form-json .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-sql .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-xml .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-yaml .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-html .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-css .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-js .json-editor-panel-input .ln-textarea-gutter-field {
    font-size: 14.2px;
    padding-right: 12px;
}

.tool-form-json .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-sql .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-xml .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-html .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-css .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-js .json-editor-panel-input #input-editor-host .cm-editor,
.tool-form-yaml .json-editor-panel-input #editor .cm-editor,
.tool-form-yaml .json-editor-panel #editor .cm-editor,
.tool-form-properties-to-yaml .json-editor-panel #editor .cm-editor,
.tool-form-yaml-to-properties .json-editor-panel #editor .cm-editor {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.tool-form-sql .json-editor-panel-input .ln-textarea-input,
.tool-form-xml .json-editor-panel-input .ln-textarea-input,
.tool-form-yaml .json-editor-panel-input .ln-textarea-input,
.tool-form-html .json-editor-panel-input .ln-textarea-input,
.tool-form-css .json-editor-panel-input .ln-textarea-input,
.tool-form-js .json-editor-panel-input .ln-textarea-input {
    white-space: pre;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    overflow-x: auto;
    border: none !important;
    border-left: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding-left: 6px;
}

.tool-form-json .json-editor-panel-output .output-panel,
.tool-form-sql .json-editor-panel-output .output-panel,
.tool-form-xml .json-editor-panel-output .output-panel,
.tool-form-yaml .json-editor-panel-output .output-panel,
.tool-form-html .json-editor-panel-output .output-panel,
.tool-form-css .json-editor-panel-output .output-panel,
.tool-form-js .json-editor-panel-output .output-panel {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.tool-form-json .json-editor-panel #editor-output,
.tool-form-sql .json-editor-panel #editor-output,
.tool-form-xml .json-editor-panel #editor-output,
.tool-form-yaml .json-editor-panel #editor-output,
.tool-form-html .json-editor-panel #editor-output,
.tool-form-css .json-editor-panel #editor-output,
.tool-form-js .json-editor-panel #editor-output {
    height: 100%;
    width: 100%;
}

.tool-form-json .form-btn,
.tool-form-sql .form-btn,
.tool-form-xml .form-btn,
.tool-form-yaml .form-btn,
.tool-form-html .form-btn,
.tool-form-css .form-btn,
.tool-form-js .form-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .tool-form-sql:not(.fullscreen) .json-editor-split,
    .tool-form-xml:not(.fullscreen) .json-editor-split,
    .tool-form-yaml:not(.fullscreen) .json-editor-split,
    .tool-form-html:not(.fullscreen) .json-editor-split,
    .tool-form-css:not(.fullscreen) .json-editor-split,
    .tool-form-js:not(.fullscreen) .json-editor-split {
        flex-direction: column;
        height: min(58vh, calc(100dvh - 220px));
        min-height: 300px;
        max-height: calc(100dvh - 160px);
    }

    .tool-form-sql:not(.fullscreen) .json-editor-panel,
    .tool-form-xml:not(.fullscreen) .json-editor-panel,
    .tool-form-yaml:not(.fullscreen) .json-editor-panel,
    .tool-form-html:not(.fullscreen) .json-editor-panel,
    .tool-form-css:not(.fullscreen) .json-editor-panel,
    .tool-form-js:not(.fullscreen) .json-editor-panel {
        flex: 1 1 0;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .tool-form-sql:not(.fullscreen) .json-editor-panel-input,
    .tool-form-sql:not(.fullscreen) .json-editor-panel-output,
    .tool-form-xml:not(.fullscreen) .json-editor-panel-input,
    .tool-form-xml:not(.fullscreen) .json-editor-panel-output,
    .tool-form-yaml:not(.fullscreen) .json-editor-panel-input,
    .tool-form-yaml:not(.fullscreen) .json-editor-panel-output,
    .tool-form-html:not(.fullscreen) .json-editor-panel-input,
    .tool-form-html:not(.fullscreen) .json-editor-panel-output,
    .tool-form-css:not(.fullscreen) .json-editor-panel-input,
    .tool-form-css:not(.fullscreen) .json-editor-panel-output,
    .tool-form-js:not(.fullscreen) .json-editor-panel-input,
    .tool-form-js:not(.fullscreen) .json-editor-panel-output {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-sql:not(.fullscreen) #input-editor-host,
    .tool-form-xml:not(.fullscreen) #input-editor-host,
    .tool-form-yaml:not(.fullscreen) #input-editor-host,
    .tool-form-html:not(.fullscreen) #input-editor-host,
    .tool-form-css:not(.fullscreen) #input-editor-host,
    .tool-form-js:not(.fullscreen) #input-editor-host {
        flex: 1 1 0;
        min-height: 0;
    }

    .tool-form-sql:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-sql:not(.fullscreen) #input-editor-host .cm-editor,
    .tool-form-xml:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-xml:not(.fullscreen) #input-editor-host .cm-editor,
    .tool-form-yaml:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-html:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-html:not(.fullscreen) #input-editor-host .cm-editor,
    .tool-form-css:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-css:not(.fullscreen) #input-editor-host .cm-editor,
    .tool-form-js:not(.fullscreen) #input-editor-host .ln-textarea,
    .tool-form-js:not(.fullscreen) #input-editor-host .cm-editor {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-sql:not(.fullscreen) .json-editor-panel-output .output-panel,
    .tool-form-xml:not(.fullscreen) .json-editor-panel-output .output-panel,
    .tool-form-yaml:not(.fullscreen) .json-editor-panel-output .output-panel,
    .tool-form-html:not(.fullscreen) .json-editor-panel-output .output-panel,
    .tool-form-css:not(.fullscreen) .json-editor-panel-output .output-panel,
    .tool-form-js:not(.fullscreen) .json-editor-panel-output .output-panel {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-sql:not(.fullscreen) .wd-editor,
    .tool-form-xml:not(.fullscreen) .wd-editor,
    .tool-form-yaml:not(.fullscreen) .wd-editor,
    .tool-form-html:not(.fullscreen) .wd-editor,
    .tool-form-css:not(.fullscreen) .wd-editor,
    .tool-form-js:not(.fullscreen) .wd-editor {
        flex: 1 1 0;
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: auto;
    }

    .tool-form-sql:not(.fullscreen) .right .ace_gutter-layer,
    .tool-form-xml:not(.fullscreen) .right .ace_gutter-layer,
    .tool-form-yaml:not(.fullscreen) .right .ace_gutter-layer,
    .tool-form-html:not(.fullscreen) .right .ace_gutter-layer,
    .tool-form-css:not(.fullscreen) .right .ace_gutter-layer,
    .tool-form-js:not(.fullscreen) .right .ace_gutter-layer {
        height: 100% !important;
    }
}
