.tool-form-json-convert .tool-header-split {
    gap: 12px;
}

.tool-form-json-convert .json-convert-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    height: 46.8vh;
    min-height: 46.8vh;
    max-height: 46.8vh;
}

.tool-form-json-convert .json-convert-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: 1px solid #efefef;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.tool-form-json-convert .json-convert-panel-title {
    padding: 8px 12px;
    font-size: 0.925rem;
    font-weight: 600;
    color: #686868;
    border-bottom: 1px solid #f0f0f0;
    background: #fff !important;
    flex-shrink: 0;
}

.tool-form-json-convert #input-editor-host {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.tool-form-json-convert #input-editor-host .cm-editor {
    background: #fff;
}

.tool-form-json-convert #input-editor-host .cm-editor .cm-gutters {
    background-color: #f6f6f6;
    border-right: none;
}

.tool-form-json-convert .json-convert-output-wrap {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.tool-form-json-convert #output-editor {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100% !important;
    font-size: 14px;
    background: #fff;
}

.tool-form-json-convert #output-editor.ace_editor,
.tool-form-json-convert #output-editor .ace_scroller {
    background-color: #fff !important;
}

.tool-form-json-convert #output-editor .ace_gutter,
.tool-form-json-convert #output-editor.ace-chrome .ace_gutter {
    background-color: #f6f6f6 !important;
    border-right: none;
}

.tool-form-json-convert #output-editor .ace-chrome .ace_gutter-active-line {
    background-color: #f6f6f6 !important;
}

.tool-form-json-convert #output-editor .ace-chrome .ace_marker-layer .ace_active-line {
    background-color: transparent !important;
}

.tool-form-json-convert #output-editor .ace_gutter-cell {
    color: #686868;
}

.tool-form-json-convert #output-editor .ace_marker-layer .ace_bracket,
.tool-form-json-convert #output-editor .ace_marker-layer .ace_error_bracket,
.tool-form-json-convert #output-editor .ace_br15 {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tool-form-json-convert #output-editor .ace_fold-widget {
    display: none !important;
}

.tool-form-json-convert .json-convert-output-wrap.output-panel-error {
    background-color: #fff;
}

.tool-form-json-convert .json-convert-output-wrap.output-panel-error .ace_line {
    color: #ea5455 !important;
    white-space: pre-wrap !important;
    word-break: break-word;
}

.tool-form-json-convert .json-convert-tip {
    margin: 8px 0 0;
    text-align: left;
    font-size: 0.875rem;
    color: #888;
    line-height: 1.6;
}

.tool-form-json-convert .form-btn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 8px;
}

.main-three-part-grid-container .tool-form-json-convert .form-btn .btn {
    margin: 0;
    flex-shrink: 0;
}

.tool-form-json-convert .json-convert-options {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    min-height: 2.25rem;
    padding: 0;
    box-sizing: border-box;
    font-size: 0.875rem;
    line-height: 1;
    color: #686868;
    white-space: nowrap;
}

.tool-form-json-convert .json-convert-options-label {
    display: inline-flex;
    align-items: center;
    color: #686868;
    margin-right: 8px;
    line-height: 1;
}

.tool-form-json-convert .json-convert-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-top: 4px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.tool-form-json-convert .json-convert-option + .json-convert-option {
    margin-left: 10px;
}

.tool-form-json-convert .json-convert-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.tool-form-json-convert .json-convert-field-label {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    margin: 0;
    font-size: 0.875rem;
    color: #686868;
    white-space: nowrap;
}

.tool-form-json-convert .json-convert-field-input {
    width: 280px;
    max-width: 100%;
    height: 2.25rem;
    margin: 0;
    padding: .375rem .75rem;
    box-sizing: border-box;
    font-size: 0.875rem;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    color: #525252;
    background: #fff;
}

.tool-form-json-convert .tool-name-sub {
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #686868;
}

.tool-form-json-convert.fullscreen .form-field {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tool-form-json-convert.fullscreen .json-convert-split {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
}

.tool-form-json-convert.fullscreen .form-btn,
.tool-form-json-convert.fullscreen .json-convert-tip {
    flex-shrink: 0;
}

.tool-form-json-convert.fullscreen #input-editor-host .cm-editor,
.tool-form-json-convert.fullscreen #input-editor-host .ln-textarea {
    min-height: 0;
    height: 100%;
}

.tool-form-json-convert.fullscreen #output-editor {
    min-height: 0;
    height: 100% !important;
}

@media screen and (max-width: 900px) {
    .tool-form-json-convert .json-convert-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .tool-form-json-convert .json-convert-panel {
        height: 32vh;
        min-height: 32vh;
        max-height: 32vh;
    }
}


/* JSON 脱敏：字段选择 */
.tool-json-mask .json-mask-field-panel {
    margin: 0.75rem 0 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
    box-sizing: border-box;
}

.tool-json-mask .json-mask-field-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.tool-json-mask .json-mask-field-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.tool-json-mask .json-mask-field-desc {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

.tool-json-mask .json-mask-field-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}

.tool-json-mask .json-mask-field-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.tool-json-mask .json-mask-field-link {
    color: #1677ff;
    font-size: 0.875rem;
    text-decoration: none;
}

.tool-json-mask .json-mask-field-link:hover {
    text-decoration: underline;
}

.tool-json-mask .json-mask-field-toolbar .btn {
    height: 1.75rem;
    padding: 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.75rem;
}

.tool-json-mask .json-mask-output-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.85rem 0 0.65rem;
}

.tool-json-mask .json-mask-output-options-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.tool-json-mask .json-mask-compress-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.tool-json-mask .json-mask-compress-option input {
    margin: 0;
    cursor: pointer;
}

.tool-json-mask .json-mask-field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    min-height: 1.75rem;
    margin-bottom: 0.7rem;
}

.tool-json-mask .json-mask-field-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #444;
    cursor: pointer;
    user-select: none;
}

.tool-json-mask .json-mask-field-item input {
    margin: 0;
}

.tool-json-mask .json-mask-field-empty {
    font-size: 0.85rem;
    color: #999;
}

.tool-json-mask .json-mask-field-manual-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    color: #666;
}

.tool-json-mask .json-mask-fields-manual {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.5rem 0.65rem;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #444;
    background: #fff;
    resize: vertical;
}

.tool-json-mask .json-mask-fields-manual:focus {
    outline: none;
    border-color: #1677ff;
}

