:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#eef2f6;color:#18202f;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{min-width:720px;background:linear-gradient(135deg,rgba(39,116,168,.1),transparent 32%),linear-gradient(315deg,rgba(40,148,122,.1),transparent 28%),#eef2f6}button,input,textarea{font:inherit}button{height:34px;border:1px solid #1f6f8b;border-radius:6px;padding:0 14px;background:#1f6f8b;color:#fff;cursor:pointer;transition:background .16s ease,border-color .16s ease,opacity .16s ease}button:hover:not(:disabled){background:#185978;border-color:#185978}button:disabled{cursor:not-allowed;opacity:.46}.ghost-button{background:#fff;border-color:#cfd8e3;color:#253244}.ghost-button:hover:not(:disabled){background:#f4f7fa;border-color:#aebdcb}.app-shell{display:flex;flex-direction:column;height:100%;min-height:100%;padding:18px;gap:14px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;padding:0 2px}.toolbar h1{margin:0;font-size:24px;line-height:1.2;letter-spacing:0}.toolbar p{margin:6px 0 0;color:#657386;font-size:13px}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(380px,1.1fr);gap:14px;min-height:0;flex:1}.editor-panel,.viewer-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid #d6dee8;border-radius:8px;background:#ffffffe0;box-shadow:0 12px 34px #1e2d3e14}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 12px;border-bottom:1px solid #dce3ec;background:#f8fafc}.panel-header strong{font-size:14px}.panel-header span{color:#6d7a8d;font-size:12px;white-space:nowrap}textarea{width:100%;height:100%;min-height:0;flex:1;resize:none;border:0;outline:none;padding:16px;background:#fbfcfe;color:#152033;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.55;-moz-tab-size:2;tab-size:2}.history-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:8px 12px;border-top:1px solid #dce3ec;background:#f8fafc}.history-bar span{color:#6d7a8d;font-size:12px}.history-panel{flex:0 0 auto;min-height:150px;max-height:240px;border-top:1px solid #dce3ec;background:#fff;overflow:auto}.history-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 12px;border-bottom:1px solid #e1e7ee}.history-panel-header strong{font-size:13px}.history-panel-header button{height:28px;padding:0 10px;font-size:12px}.history-list{display:flex;align-content:flex-start;flex-wrap:wrap;gap:8px;padding:10px 12px 12px}.history-item{position:relative;width:min(210px,100%);min-width:160px;min-height:58px;border:1px solid #dce3ec;border-radius:7px;background:#fff;overflow:hidden}.history-item:hover{border-color:#b8c8d8;background:#f8fafc}.history-restore{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;height:100%;min-height:58px;padding:9px 32px 9px 10px;border:0;border-radius:0;background:transparent;color:#18202f;text-align:left}.history-restore:hover:not(:disabled){background:#eef5f8}.history-restore span,.history-restore small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-restore span{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px}.history-restore small{color:#6d7a8d;font-size:11px}.history-delete{position:absolute;top:5px;right:5px;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid transparent;border-radius:50%;padding:0;background:#edf2f7;color:#6d7a8d;font-size:15px;line-height:1}.history-delete:hover:not(:disabled){border-color:#efb4b4;background:#fff1f1;color:#9f1f1f}.history-empty{padding:14px 12px;color:#647386;font-size:12px}.viewer-header{align-items:center;flex-wrap:wrap}.segmented{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(62px,1fr);height:34px;padding:3px;border:1px solid #ced8e4;border-radius:7px;background:#edf2f7}.segmented button{height:26px;border:0;border-radius:5px;padding:0 10px;background:transparent;color:#526175}.segmented button.active{background:#fff;color:#18202f;box-shadow:0 1px 4px #1e2d3e24}.viewer-tools{display:flex;align-items:center;gap:8px;min-width:min(100%,380px)}.copy-output-button{flex:0 0 auto;height:34px;padding:0 12px}.search-box{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;align-items:center;gap:8px;min-width:310px;height:34px;padding:0 10px;border:1px solid #ced8e4;border-radius:7px;background:#fff}.search-box input{width:100%;min-width:0;border:0;outline:none;color:#18202f}.search-nav{display:inline-flex;align-items:center;gap:4px}.search-nav button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-color:#cfd8e3;border-radius:5px;padding:0;background:#f8fafc;color:#253244;font-size:13px}.search-nav button:hover:not(:disabled){border-color:#aebdcb;background:#edf3f8}.tree-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #e1e7ee;background:#fff}.tree-toolbar .search-box{flex:1;min-width:0}.tree-toolbar button{flex:0 0 auto;height:30px;padding:0 10px;font-size:12px}.options-bar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:8px 12px;border-bottom:1px solid #e1e7ee;background:#fbfcfe;color:#526175;font-size:12px}.options-bar label{display:inline-flex;align-items:center;gap:6px}.options-bar select{height:26px;border:1px solid #ced8e4;border-radius:5px;padding:0 6px;background:#fff;color:#253244;font-size:12px}.options-bar select:disabled{opacity:.5}.options-check{cursor:pointer;-webkit-user-select:none;user-select:none}.options-check input{width:14px;height:14px;margin:0;accent-color:#1f6f8b}.viewer-hint{color:#6d7a8d;font-size:12px}.viewer-body{position:relative;min-height:0;flex:1;overflow:auto;background:#fbfcfe}.source-view,.xml-tree{min-height:100%;margin:0;padding:16px;color:#1c2738;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.6}.source-view{white-space:pre;overflow-x:auto}.notice-bar{border:1px solid #bcd6ea;border-radius:7px;padding:9px 14px;background:#eef6fd;color:#1b4e72;font-size:13px}.editor-panel.is-drag-active{border-color:#1f6f8b;box-shadow:inset 0 0 0 2px #1f6f8b42}.drop-hint{padding:8px 12px;border-top:1px solid #dce3ec;background:#f1f8fc;color:#1f6f8b;font-size:12px}.history-warning{margin:10px 12px 0;border:1px solid #f0d8a8;border-radius:6px;padding:7px 10px;background:#fdf6e6;color:#8a5a12;font-size:12px}.error-location{margin-top:6px;color:#b8562f;font-size:12px}.xml-node{min-width:max-content}.xml-children{margin-left:22px;border-left:1px solid #e0e7ef;padding-left:8px}.xml-row{display:flex;align-items:baseline;min-height:24px;gap:2px;border-radius:5px;white-space:pre}.xml-row:hover{background:#eef5f8}.xml-node.is-match>.xml-row,.xml-row.is-match{background:#fff4cf}.xml-node.is-match>.xml-row.is-active-match,.xml-row.is-active-match{outline:2px solid #e0a91c;background:#ffe18a}.fold-button{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;margin-right:4px;border:0;border-radius:4px;padding:0;background:#e7eef6;color:#435267;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1;-webkit-user-select:none;user-select:none}.fold-button:hover:not(:disabled){background:#d7e4ef;color:#152033}.fold-button:disabled{background:transparent;opacity:1}.xml-spacer{display:inline-block;width:22px;flex:0 0 22px}.xml-tag{color:#1f6f8b}.xml-attr{color:#6d4b16}.xml-value{color:#28745d}.xml-text{color:#263446}.xml-muted{margin:0 6px;color:#8794a6}.xml-close{color:#6c7a8d}mark{border-radius:3px;padding:0 1px;background:#ffd84d;color:inherit}.error-box,.empty-box{margin:16px;border-radius:8px;padding:14px 16px;font-size:13px}.error-box{border:1px solid #f0b7b7;background:#fff1f1;color:#9f1f1f}.empty-box{border:1px dashed #cdd8e5;background:#f7fafc;color:#647386}@media(max-width:860px){body{min-width:360px}.app-shell{height:auto;min-height:100%;padding:12px}.toolbar{align-items:flex-start;flex-direction:column}.workspace{grid-template-columns:1fr;min-height:900px}.editor-panel,.viewer-panel{min-height:420px}.search-box{width:100%;min-width:0}.tree-toolbar{flex-wrap:wrap}.viewer-tools{width:100%;min-width:0}}[hidden]{display:none!important}.editor-tools,.editor-find,.compare-tools,.query-form,.result-actions,.node-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 12px;border-bottom:1px solid #dce3ec;background:#f8fafc;font-size:12px}.editor-tools button,.editor-find button,.node-actions button,.result-actions button,.compare-tools button{height:28px;padding:0 8px;font-size:12px}.editor-tools span,.compare-tools span{color:#657386}.editor-find input:not([type=checkbox]),.query-form input{min-width:0;width:140px;flex:1;height:30px;padding:0 8px;border:1px solid #ced8e4;border-radius:5px;background:#fff}.editor-find label,.compare-tools label{display:inline-flex;align-items:center;gap:4px}.code-editor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.code-surface{display:flex;flex:1;min-height:0;background:#fbfcfe}.code-gutter{flex:0 0 48px;padding:12px 6px;border-right:1px solid #e1e7ee;overflow:hidden;text-align:right;color:#8794a6;background:#f4f7fa;-webkit-user-select:none;user-select:none}.code-content{position:relative;min-width:0;flex:1}.code-gutter,.code-backdrop,textarea.code-input{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:21px;-moz-tab-size:2;tab-size:2}.code-backdrop,textarea.code-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:12px;border:0;white-space:pre;overflow:auto;word-wrap:normal;letter-spacing:normal}.code-backdrop{pointer-events:none;color:#152033;scrollbar-width:none}.code-backdrop::-webkit-scrollbar{display:none}textarea.code-input{background:transparent;color:transparent;caret-color:#152033;-webkit-text-fill-color:transparent}textarea.code-input::selection{background:#3778b440}textarea.code-input::placeholder{-webkit-text-fill-color:#8794a6;color:#8794a6}.code-comment{color:#7f8b79}.code-match{background:#ffe18a}.code-bracket{background:#cfe8f5;outline:1px solid #5a9dc0}.error-line{color:#b62525;background:#ffe1e1}.error-jump{color:#9f1f1f}.tree-toolbar{flex-wrap:wrap}.tree-toolbar select{height:30px;border:1px solid #ced8e4;border-radius:5px;background:#fff}.node-actions{max-height:120px;overflow:auto}.node-actions strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.namespace-settings{margin:12px;padding:10px;border:1px solid #dce3ec;border-radius:6px;font-size:12px}.namespace-settings summary{cursor:pointer}.namespace-settings p{color:#657386;line-height:1.6}.namespace-settings textarea{display:block;height:88px;border:1px solid #ced8e4;margin-bottom:8px;padding:8px}.result-summary{padding:12px;color:#1f6f8b;font-size:13px}.scalar-copy{margin:0 12px}.xpath-results{list-style:none;margin:0;padding:0 12px 12px}.xpath-results li{margin-bottom:10px;padding:10px;border:1px solid #dce3ec;border-radius:6px;background:#fff}.xpath-results code,.diff-table code{display:block;overflow-wrap:anywhere;font-size:12px;color:#657386}.xpath-results pre{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.result-actions{padding:4px 0 0;border:0;background:transparent}.compare-container,.compare-panel{display:flex;flex-direction:column;height:100%;min-height:0}.compare-editor{display:flex;flex:0 0 42%;min-height:190px;border-bottom:1px solid #dce3ec}.diff-results{min-height:0;flex:1;overflow:auto}.diff-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px}.diff-table th,.diff-table td{padding:8px;border:1px solid #dce3ec;vertical-align:top;text-align:left}.diff-table th{background:#f4f7fa}.diff-table pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.diff-before{background:#fff0f0}.diff-after{background:#edf9ef}.copy-toast{position:fixed;top:24px;left:50%;z-index:1000;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 32px);padding:12px 18px;border:1px solid #badfcb;border-radius:10px;background:#fff;color:#236745;box-shadow:0 6px 24px #1e2d3e29;transform:translate(-50%);pointer-events:none;font-size:14px;animation:copy-toast-enter .18s ease-out}.copy-toast-icon{display:flex;align-items:center;justify-content:center;flex:0 0 22px;height:22px;border-radius:50%;background:#e4f4ea;font-weight:600}.copy-toast.is-error{border-color:#efb9b9;color:#9f1f1f}.copy-toast.is-error .copy-toast-icon{background:#ffeaea}@keyframes copy-toast-enter{0%{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%)}}@media(prefers-reduced-motion:reduce){.copy-toast{animation:none}}
