:root{--bg-primary: #0f1117;--bg-secondary: #161822;--bg-tertiary: #1c1f2e;--bg-editor: #12141e;--bg-hover: #252840;--border: #2a2d3e;--border-focus: #4f6ef7;--text-primary: #e4e6f0;--text-secondary: #8b8fa7;--text-muted: #5c6078;--accent-blue: #4f6ef7;--accent-blue-hover: #6583ff;--accent-green: #34d399;--accent-orange: #f59e0b;--accent-red: #ef4444;--accent-purple: #a78bfa;--font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Cascadia Code", Consolas, monospace;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--shadow-sm: 0 1px 2px rgba(0,0,0,.3);--shadow-md: 0 4px 12px rgba(0,0,0,.4);--transition: .15s ease}[data-theme=light]{--bg-primary: #f5f5f7;--bg-secondary: #ffffff;--bg-tertiary: #e8e8ed;--bg-editor: #fafafa;--bg-hover: #e2e4ea;--border: #d1d5db;--border-focus: #4f6ef7;--text-primary: #1a1a2e;--text-secondary: #555770;--text-muted: #8b8fa7;--shadow-sm: 0 1px 2px rgba(0,0,0,.08);--shadow-md: 0 4px 12px rgba(0,0,0,.1)}[data-theme=light] .syn-key{color:#0451a5}[data-theme=light] .syn-string{color:#a31515}[data-theme=light] .syn-number{color:#098658}[data-theme=light] .syn-bool,[data-theme=light] .syn-null{color:#00f}[data-theme=light] .syn-brace{color:#b8860b}[data-theme=light] .syn-bracket{color:purple}[data-theme=light] .syn-colon,[data-theme=light] .syn-comma{color:#333}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden;background:var(--bg-primary);color:var(--text-primary);font-family:var(--font-sans);font-size:14px;-webkit-font-smoothing:antialiased}#app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;min-height:52px;background:var(--bg-secondary);border-bottom:1px solid var(--border);z-index:10}.header-left{display:flex;align-items:center;gap:12px}.logo{font-size:20px;font-weight:700;font-family:var(--font-mono);color:var(--accent-blue);background:#4f6ef71a;padding:4px 10px;border-radius:var(--radius-sm)}.header h1{font-size:16px;font-weight:600;letter-spacing:-.02em}.subtitle{font-size:12px;color:var(--text-muted);margin-left:4px}.header-right{display:flex;gap:6px}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:none;border-radius:var(--radius-sm);font-size:13px;font-weight:500;font-family:var(--font-sans);cursor:pointer;transition:all var(--transition);white-space:nowrap;text-decoration:none}.btn-sm{padding:5px 10px;font-size:12px}.btn-ghost{background:transparent;color:var(--text-secondary);border:1px solid transparent}.btn-ghost:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border)}.btn-primary{background:var(--accent-blue);color:#fff}.btn-primary:hover{background:var(--accent-blue-hover)}.btn-accent{background:#34d3991f;color:var(--accent-green);border:1px solid rgba(52,211,153,.25)}.btn-accent:hover{background:#34d39933;border-color:#34d39966}.main{flex:1;display:flex;overflow:hidden;min-height:0}.panel{display:flex;flex-direction:column;overflow:hidden;min-width:280px}.panel-input{flex:1}.panel-output{flex:1;border-left:1px solid var(--border)}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;min-height:42px;background:var(--bg-secondary);border-bottom:1px solid var(--border)}.panel-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.panel-actions{display:flex;align-items:center;gap:6px}.status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600}.status-badge:before{content:"";width:6px;height:6px;border-radius:50%}.status-empty{color:var(--text-muted);background:#5c60781a}.status-empty:before{background:var(--text-muted)}.status-valid{color:var(--accent-green);background:#34d3991a}.status-valid:before{background:var(--accent-green)}.status-repaired{color:var(--accent-orange);background:#f59e0b1a}.status-repaired:before{background:var(--accent-orange)}.status-invalid{color:var(--accent-red);background:#ef44441a}.status-invalid:before{background:var(--accent-red)}.editor-wrap{flex:1;position:relative;overflow:hidden}.editor{width:100%;height:100%;padding:16px;background:var(--bg-editor);border:none;outline:none;color:var(--text-primary);font-family:var(--font-mono);font-size:13px;line-height:1.65;resize:none;-moz-tab-size:2;tab-size:2;overflow:auto}.editor::placeholder{color:var(--text-muted);opacity:.6}.editor:focus{background:#12141ee6}[data-theme=light] .editor:focus{background:#f0f0f5f2}.editor-wrap-highlight{background:var(--bg-editor)}.editor-wrap-highlight:focus-within{background:#12141ee6}[data-theme=light] .editor-wrap-highlight:focus-within{background:#f0f0f5f2}.editor-highlight{position:absolute;top:0;left:0;right:0;bottom:0;padding:16px;margin:0;background:transparent;border:none;font-family:var(--font-mono);font-size:13px;line-height:1.65;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;pointer-events:none;-moz-tab-size:2;tab-size:2;z-index:1}.editor-transparent{position:relative;z-index:2;color:transparent!important;caret-color:var(--text-primary);background:transparent!important}.editor-transparent::placeholder{color:var(--text-muted);opacity:.6}.editor-transparent::selection{background:#4f6ef74d;color:transparent}[data-theme=light] .editor-transparent::selection{background:#4f6ef733}.expression-section{display:flex;flex-direction:column}.expression-editor{height:100px;min-height:60px;max-height:200px;padding:12px 16px;font-size:14px;border-bottom:1px solid var(--border)}.output-section{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.output-wrap{flex:1;overflow:auto}.output-editor{padding:16px;margin:0;white-space:pre-wrap;word-wrap:break-word;overflow:auto;cursor:text;-webkit-user-select:text;user-select:text}.output-placeholder{color:var(--text-muted);font-style:italic}.output-error{color:var(--accent-red)}.output-success{color:var(--accent-green)}.eval-time{font-size:11px;color:var(--text-muted);font-family:var(--font-mono)}.resize-handle{width:6px;cursor:col-resize;background:var(--border);display:flex;align-items:center;justify-content:center;transition:background var(--transition);flex-shrink:0;z-index:5}.resize-handle:hover,.resize-handle.active{background:var(--accent-blue)}.resize-dots{display:flex;flex-direction:column;gap:3px}.resize-dots span{width:3px;height:3px;border-radius:50%;background:var(--text-muted)}.resize-handle:hover .resize-dots span,.resize-handle.active .resize-dots span{background:#fff}.footer{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:36px;min-height:36px;background:var(--bg-secondary);border-top:1px solid var(--border);font-size:12px;color:var(--text-muted)}.footer a{color:var(--accent-blue);text-decoration:none}.footer a:hover{text-decoration:underline}.footer-right{display:flex;align-items:center;gap:4px}kbd{display:inline-block;padding:1px 6px;font-size:11px;font-family:var(--font-mono);background:var(--bg-tertiary);border:1px solid var(--border);border-radius:4px;color:var(--text-secondary)}.toast-container{position:fixed;bottom:52px;right:20px;z-index:1000;display:flex;flex-direction:column;gap:8px}.toast{padding:10px 18px;border-radius:var(--radius-md);font-size:13px;font-weight:500;box-shadow:var(--shadow-md);animation:slideIn .2s ease-out;display:flex;align-items:center;gap:8px}.toast-success{background:#34d39926;color:var(--accent-green);border:1px solid rgba(52,211,153,.25)}.toast-error{background:#ef444426;color:var(--accent-red);border:1px solid rgba(239,68,68,.25)}.toast-info{background:#4f6ef726;color:var(--accent-blue);border:1px solid rgba(79,110,247,.25)}@keyframes slideIn{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.syn-key{color:#9cdcfe}.syn-string{color:#ce9178}.syn-number{color:#b5cea8}.syn-bool,.syn-null{color:#569cd6}.syn-brace{color:gold}.syn-bracket{color:orchid}.syn-colon,.syn-comma{color:var(--text-secondary)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}@media (max-width: 768px){.main{flex-direction:column}.panel-input{flex:none;height:40%}.panel-output{border-left:none;border-top:1px solid var(--border)}.resize-handle{width:100%;height:6px;cursor:row-resize}.resize-dots{flex-direction:row}.subtitle{display:none}}
