.custom-a {
    text-decoration: none;
    color: #383838;
}

.custom-a:hover {
    font-weight: bold;
    color: #41c9a5;
}

.output-panel-success {
    background-color: #f6fffb;
}

.output-panel-error {
    background-color: #fce4e4;
}

.output-panel-error .ace_line {
    color: #ea5455 !important;
}

.ace_gutter-cell.ace_error {
    background-image: none !important;
}

.ace_editor {
    font-size: 14.4px !important;
    line-height: 22px !important;
}

.ace-chrome .ace_gutter-active-line {
    background-color: #f0f0f0;
}

.ace-chrome .ace_gutter {
    background-color: #f0f0f0;
}

.ace-chrome .ace_marker-layer .ace_active-line {
    background-color: transparent;
}

.ace-chrome .ace_cursor {
    color: #787878;
}

.ace_hidden-cursors .ace_cursor {
    opacity: 0;
}

.right .ace_gutter-cell {
    color: #484848;
    font-size: 14.2px;
    font-family: monospace, Tahoma, "微软雅黑", "幼圆";
}

.right .ace_content {
    border-left: 1px solid #e0e0e0;
}

.right .ace-chrome .ace_variable {
    font-weight: 600;
}

.right .ace_br15 {
    border: none;
    border-color: white !important;
}

.tool-form-nginx .ace_editor {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace !important;
}

.tool-form-nginx .ace_gutter-cell {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.tool-form-nginx .json-editor-split {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 46.8vh;
    align-items: stretch;
}

.tool-form-nginx .json-editor-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tool-form-nginx .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-nginx .right .ace_gutter-layer {
    border-right: none;
    height: 100%;
}

.tool-form-nginx .json-editor-panel-input,
.tool-form-nginx .json-editor-panel-output {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.tool-form-nginx .json-editor-panel-input {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #e0e0e0;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
}

.tool-form-nginx #input-editor-host {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tool-form-nginx .json-editor-panel-input .ln-textarea {
    border: none;
    border-radius: 0;
    background: #fff;
}

.tool-form-nginx .json-editor-panel-input .ln-textarea-gutter-field,
.tool-form-nginx .json-editor-panel-input .ln-textarea-input {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.tool-form-nginx .json-editor-panel-input .ln-textarea-gutter-field {
    font-size: 14.2px;
    padding-right: 12px;
}

.tool-form-nginx .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-nginx .json-editor-panel-output .output-panel {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.tool-form-nginx .json-editor-panel #editor-output {
    height: 100%;
    width: 100%;
}

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

    .tool-form-nginx:not(.fullscreen) .json-editor-panel {
        flex: 1 1 0;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .tool-form-nginx:not(.fullscreen) .json-editor-panel-input,
    .tool-form-nginx:not(.fullscreen) .json-editor-panel-output {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-nginx:not(.fullscreen) #input-editor-host {
        flex: 1 1 0;
        min-height: 0;
    }

    .tool-form-nginx:not(.fullscreen) #input-editor-host .ln-textarea {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-nginx:not(.fullscreen) .json-editor-panel-output .output-panel {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
    }

    .tool-form-nginx:not(.fullscreen) .wd-editor {
        flex: 1 1 0;
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: auto;
    }

    .tool-form-nginx:not(.fullscreen) .right .ace_gutter-layer {
        height: 100% !important;
    }
}
