.text-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.text-settings label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.text-settings select{max-width:100%;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#242427;color:var(--ink);font:12px var(--font)}.text-settings select:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.text-settings .plain-check{margin:0}
.text-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.text-column{min-width:0}.text-column>label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.text-area{height:218px;min-height:120px;max-height:480px;padding:12px;font:13px/1.6 ui-monospace,Consolas,monospace;letter-spacing:0;white-space:pre;overflow-wrap:normal;tab-size:2}.text-area::placeholder{color:#838e95;white-space:normal}.text-output{position:relative;border:1px solid var(--line);border-radius:12px;background:#161618}.text-output .text-area{border:0;background:transparent;padding-right:62px;width:100%}.text-output .copy-control{position:absolute;right:8px;top:8px}.text-panel .generator-status{line-height:1.5}.text-panel .generator-actions{margin-top:16px}.text-panel .clear-input{margin-left:auto}.input-limit{font-size:10px;color:var(--muted);margin:8px 0 0}
@media(max-width:600px){.text-columns{grid-template-columns:1fr;gap:14px}.text-area{height:150px;font-size:12px;min-height:100px}.text-settings{gap:10px}.text-settings label{font-size:11px}.text-panel .clear-input{margin-left:0}.text-panel .generator-actions{gap:8px}}
body[data-tool=json] .text-area{max-height:none;font-size:var(--editor-font-size,14px)}[data-font-size="12"]{--editor-font-size:12px}[data-font-size="14"]{--editor-font-size:14px}[data-font-size="16"]{--editor-font-size:16px}[data-font-size="18"]{--editor-font-size:18px}[data-font-size="20"]{--editor-font-size:20px}
.editor-dialog{width:calc(100% - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:20px;border:1px solid #ffffff26;border-radius:16px;color:var(--ink);background:#1c1c1f}.editor-dialog[open]{display:flex;flex-direction:column}.editor-dialog::backdrop{background:#000b}.editor-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.editor-dialog-header h2{font-size:20px}.editor-dialog-header button{font-size:12px}#editor-dialog-body{display:flex;flex:1;min-height:0}.editor-dialog .text-panel{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;padding:0;border:0;background:transparent}.editor-dialog .text-columns{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}.editor-dialog .text-column{display:flex;flex-direction:column;min-height:0}.editor-dialog .text-area{flex:1;min-height:0;height:100%!important;resize:none}.editor-dialog .text-output{flex:1;min-height:0}.editor-dialog .text-settings{flex-shrink:0}.editor-dialog .generator-status{margin-top:8px}.editor-dialog .generator-actions{margin-top:10px;padding-top:10px}
.image-file-panel{min-height:218px;border:1px dashed #ffffff38;border-radius:12px;background:#161618;padding:14px}.image-file-panel input{display:block;width:100%;font-size:11px;color:var(--muted)}.image-file-panel input::file-selector-button{padding:8px 10px;margin-right:10px;border:1px solid var(--line);border-radius:8px;background:#242427;color:var(--ink);cursor:pointer}.image-file-panel p{font-size:11px;color:var(--muted);margin:8px 0}.source-preview-panel{margin:10px 0 0;text-align:center}.source-preview-panel img{display:block;max-width:100%;height:110px;object-fit:contain;margin:auto}.image-output{height:218px;margin:0;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.image-output img{max-width:100%;max-height:166px;object-fit:contain}.source-preview-panel figcaption,.image-output figcaption{font-size:11px;color:var(--muted);text-align:center;margin-top:4px}.text-output:has(.image-output:not([hidden])){overflow:hidden}
@media(max-width:600px){.editor-dialog{width:calc(100% - 12px);height:calc(100dvh - 12px);padding:12px;border-radius:12px}.editor-dialog-header{margin-bottom:10px}.editor-dialog-header h2{font-size:16px}.editor-dialog .text-columns{grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}.editor-dialog .text-settings{gap:8px;margin-bottom:10px}.editor-dialog .text-settings select{padding:6px}.editor-dialog .text-settings button{padding:7px 10px}.editor-dialog .input-limit{display:none}.image-file-panel{min-height:180px}.image-output{height:190px}.image-output img{max-height:140px}}

.segments{border:0;padding:0;margin:0;min-width:0}.segments legend{font-size:10px;color:var(--muted);padding:0;margin-bottom:6px}.segment-options{display:flex;flex-wrap:wrap;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#161618}.segment-options label{position:relative;display:block!important;margin:0;cursor:pointer}.segment-options input{position:absolute;width:1px;height:1px;opacity:0}.segment-options span{display:block;padding:8px 12px;font-size:12px;line-height:1.2;color:var(--muted);border-radius:7px;transition:background .15s,color .15s}.segment-options input:checked+span{background:#3c2b22;color:#ffb384}.segment-options input:focus-visible+span{outline:2px solid var(--orange);outline-offset:2px}.segment-options label:hover span{color:var(--ink)}
.image-file-panel[data-compact=true]{min-height:0;padding:10px;margin-top:10px}.image-file-panel[data-compact=true] p{margin-bottom:0}[data-mode=compare] #result-column{grid-column:1/-1}[data-mode=compare] #result-column .text-area{height:180px}.editor-dialog [data-mode=compare] .text-columns{grid-template-rows:minmax(0,1fr) minmax(100px,.7fr)}
@media(max-width:600px){.segment-options span{padding:8px 9px;font-size:11px}.editor-dialog [data-mode=compare] .text-columns{grid-template-rows:repeat(3,minmax(0,1fr))}.editor-dialog .text-settings .segments{flex:1 0 100%}}

.json-input{position:relative;min-width:0;background:#161618;border-radius:12px}.json-input .text-area{position:relative;z-index:1;margin:0}.json-input[data-highlighted=true] .text-area{background:transparent}.json-mirror{position:absolute;top:1px;left:1px;overflow:hidden;pointer-events:none;border-radius:11px;color:transparent;font:var(--editor-font-size,14px)/1.6 ui-monospace,Consolas,monospace;letter-spacing:0;tab-size:2}.json-mirror pre{margin:0;padding:12px;font:inherit;letter-spacing:inherit;tab-size:inherit;white-space:pre;width:max-content;min-width:100%;min-height:100%;color:transparent}.json-mirror mark{color:transparent;border-radius:2px;box-decoration-break:clone}.diff-changed{background:#efb34a40}.diff-added{background:#67d3a13d}.diff-removed{background:#ee7e863d}.diff-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:0 0 12px}.diff-legend span{padding:3px 8px;border-radius:5px}.editor-dialog .json-input{flex:1;min-height:0;display:flex}.editor-dialog .json-input .text-area{min-width:0}.editor-dialog .diff-legend{flex:none;margin-bottom:8px}

.mode-hint{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 14px}.text-statistics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 18px}.text-statistics>div{padding:12px;background:#161618;border:1px solid var(--line);border-radius:10px;min-width:0}.text-statistics dt{font-size:10px;color:var(--muted)}.text-statistics dd{font-size:24px;line-height:1.3;letter-spacing:-.5px;font-weight:600;margin:6px 0 0;overflow-wrap:anywhere}.text-statistics #count-reading{font-size:19px;padding-top:5px}.counter-source{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}.counter-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.text-panel .result-heading h2{font-size:15px}@media(max-width:850px){.text-statistics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:420px){.text-statistics{gap:6px}.text-statistics>div{padding:9px}.text-statistics dd{font-size:20px}}
