:root{font-family:Segoe UI,Noto Sans TC,Noto Sans SC,Yu Gothic UI,sans-serif;color:#f7f7f2;background:radial-gradient(circle at top left,rgba(255,174,0,.18),transparent 25%),radial-gradient(circle at top right,rgba(70,169,255,.22),transparent 30%),linear-gradient(135deg,#0d1321,#172033 45%,#0a0f19);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px}button,select,textarea{font:inherit}button{border:none;border-radius:14px;background:linear-gradient(135deg,#ffd166,#f28f3b);color:#111827;cursor:pointer;font-weight:700;padding:.8rem 1rem;transition:transform .12s ease,opacity .12s ease}button:hover{transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.45;transform:none}button.ghost{background:#ffffff14;color:#f8fafc}select,textarea{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:#0a0f19b8;color:inherit}select{padding:.8rem 1rem}textarea{min-height:360px;padding:1rem;resize:vertical;line-height:1.6}code{white-space:pre-wrap;word-break:break-word}#root{min-height:100vh}.app-shell{padding:32px}.hero{display:grid;gap:22px}.hero-bar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.hero-intro{max-width:72ch}.hero-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:#ffffff0a;box-shadow:inset 0 1px #ffffff0a}.locale-switcher{position:relative}.hero-action-button,.hero-action-link{min-height:44px;padding:.7rem .95rem;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f;color:#f8fafc;font-weight:700}.hero-action-button{cursor:pointer}.hero-action-link{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none}.hero-action-button:hover,.hero-action-link:hover{transform:translateY(-1px);background:#ffffff1a}.locale-trigger,.settings-trigger,.github-link-header{min-width:116px;justify-content:center}.locale-trigger{display:inline-flex;align-items:center;gap:10px}.locale-trigger.active{background:#ffd16624;border-color:#ffd16647}.locale-trigger-icon,.locale-option-icon{font-size:1.1rem;line-height:1}.locale-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:220px;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#080c14f5;box-shadow:0 22px 60px #00000057;z-index:30}.locale-option{width:100%;display:flex;align-items:center;gap:10px;padding:.75rem .85rem;border-radius:12px;background:transparent;color:#f8fafc;text-align:left}.locale-option:hover{transform:none;background:#ffffff14}.locale-option.active{background:#ffd16629;color:#ffe0a6}.locale-option-label{white-space:nowrap}.toolbar-field{display:grid;gap:8px}.toolbar-field-select{max-width:260px}.toolbar-toggle{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 2px}.toolbar-toggle input{margin:0}.toolbar-actions{margin-top:auto}.settings-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;background:#04080eb3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.settings-modal{width:min(860px,100%);max-height:min(80vh,760px);overflow:auto;padding:24px;border:1px solid rgba(255,255,255,.12);border-radius:28px;background:#080c14f5;box-shadow:0 28px 80px #0006}.settings-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.settings-modal-header h2,.settings-section h3{margin:0}.modal-eyebrow{margin-bottom:8px}.settings-close{padding-inline:1rem}.settings-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-section{display:grid;gap:14px;align-content:start;padding:18px 20px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:#ffffff08}.eyebrow{margin:0 0 12px;color:#ffd166;font-size:.85rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hero h1{margin:0;font-size:clamp(2.4rem,5vw,4.6rem);line-height:.95}.hero-copy{max-width:60ch;color:#f8fafcc7;font-size:1.05rem;line-height:1.8}.editor-card,.result-card{border:1px solid rgba(255,255,255,.1);border-radius:24px;background:#080c14b8;box-shadow:0 22px 50px #00000047;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.editor-card h2,.result-card h2{margin:0 0 16px;font-size:1.15rem}.button-row{display:flex;gap:12px;flex-wrap:wrap}.workspace{margin-top:28px;display:grid;gap:24px}.editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.editor-card,.result-card{padding:20px}.result-card{position:relative}.result-card.fullscreen{position:fixed;top:16px;right:16px;bottom:16px;left:16px;z-index:50;padding:24px;background:#080c14f5}.editor-header,.result-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.editor-header{margin-bottom:16px}.editor-action-btn{padding:.5rem .8rem;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f;color:#f8fafc;font-size:.88rem;font-weight:600}.editor-action-btn:hover{background:#ffffff1a}.result-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.action-btn{padding:.7rem .9rem}.height-readout{color:#f8fafcb3;font-size:.92rem}.error-text{margin-bottom:0;color:#ff8c82}.summary-line{margin:6px 0 0;color:#f8fafcb8}.legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.legend-item{padding:.45rem .75rem;border-radius:999px;font-size:.88rem;font-weight:700}.legend-equal{background:#ffffff14}.legend-changed{background:#ffc4573d;color:#ffd166}.legend-added{background:#5ac99738;color:#7ef0b4}.legend-removed{background:#ff767533;color:#ffb1ac}.tree-panel{margin-top:20px;min-height:0}.segmented-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.segmented-control.compact{min-width:220px}.segment{background:#ffffff14;color:#f8fafc}.segment.active{background:linear-gradient(135deg,#ffd166,#f28f3b);color:#111827}.json-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}.code-panel{border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;background:#2f3136;height:min(70vh,var(--panel-height, 560px));min-height:420px;display:grid;grid-template-rows:auto minmax(0,1fr)}.result-card.fullscreen .code-panel{height:calc(100vh - 220px);min-height:0}.code-panel-header{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);color:#f8fafcb8;font-size:.92rem;font-weight:700;background:#14171df5}.code-panel-main{display:grid;grid-template-columns:minmax(0,1fr) 44px;min-height:0}.code-panel-body{padding:8px 0;font-family:Cascadia Code,Fira Code,monospace;font-size:.95rem;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none}.code-panel-body::-webkit-scrollbar{display:none}.minimap-panel{border-left:1px solid rgba(255,255,255,.08);background:#101318f5;padding:8px 6px}.minimap-track{position:relative;width:100%;height:100%;border-radius:10px;background:#ffffff0a;overflow:hidden;cursor:pointer}.minimap-line{position:absolute;left:6px;right:6px;height:2px;border:none;padding:0;border-radius:999px;transform:translateY(-50%);background:#ffffff1a}.minimap-line.status-changed,.minimap-line.status-type-changed{background:#ffbf49f2}.minimap-line.status-added{background:#40d670f2}.minimap-line.status-removed{background:#ff5f56f2}.minimap-viewport{position:absolute;left:2px;width:calc(100% - 4px);border:1px solid rgba(255,255,255,.42);background:#ffffff24;border-radius:8px;padding:0;cursor:grab;box-shadow:inset 0 0 0 1px #ffffff14}.minimap-viewport:active{cursor:grabbing}.code-line{display:grid;grid-template-columns:48px 16px minmax(0,1fr);align-items:stretch}.code-line-number{color:#9aa4b2;text-align:right;padding:6px 10px 6px 0;-webkit-user-select:none;user-select:none}.code-line-marker{display:flex;align-items:center;justify-content:center;font-weight:800;color:transparent}.code-line-content{display:flex;align-items:center;min-height:34px;padding:0 14px;color:#f3f4f6}.marker-added,.marker-removed,.marker-changed,.marker-type-changed{color:#ff8f1f}.marker-added{color:#2fd070}.marker-removed{color:#ff5f56}.code-line-content.status-equal{background:transparent}.code-line-content.status-changed,.code-line-content.status-type-changed{background:#f2a82c9e}.code-line-content.status-added{background:#76b98fcc}.code-line-content.status-removed{background:#f46d52e0}.code-line.flash-active .code-line-content,.code-line-content.flash-active{animation:flash-highlight .9s ease}@keyframes flash-highlight{0%{box-shadow:inset 0 0 0 2px #ffffffeb;filter:brightness(1.18)}to{box-shadow:inset 0 0 #fff0;filter:brightness(1)}}.json-indent{display:inline-block;flex:0 0 auto}.collapse-toggle,.collapse-spacer{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:4px;flex:0 0 auto}.collapse-toggle{padding:0;border-radius:6px;background:transparent;color:#f8fafcd6;font-size:.8rem}.collapse-toggle:hover{transform:none;background:#ffffff1a}.json-key,.json-value,.json-punct{color:inherit}.diff-style-soft .key-emphasis{background:#54a6ff52;border-radius:4px;padding:0 2px}.diff-style-soft .value-emphasis{background:#a060168c;border-radius:4px;padding:0 2px}.diff-style-solid .key-emphasis{background:#479dffb3;color:#07111d;border-radius:4px;padding:0 2px}.diff-style-solid .value-emphasis{background:#bd590ae0;color:#fff2e2;border-radius:4px;padding:0 2px}.empty-state{margin-top:20px;border:1px dashed rgba(255,255,255,.14);border-radius:20px;padding:28px;color:#f8fafcbd;text-align:center}.app-footer{margin-top:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,.08);color:#f8fafcb3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.footer-card{display:grid;gap:10px;padding:18px 20px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:#ffffff08}.footer-card h3{margin:0;color:#ffd166;font-size:.95rem}.app-footer p{margin:0;line-height:1.7}.footer-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}.footer-links a{color:#ffd166;font-weight:700;text-decoration:none}.github-link{display:inline-flex;align-items:center;gap:.55rem;padding:.55rem .8rem;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:#ffffff0a}.github-icon{width:1rem;height:1rem;flex:0 0 auto}.footer-links a:hover{text-decoration:underline}.github-link:hover{text-decoration:none;background:#ffd1661f}@media (max-width: 960px){.app-shell{padding:20px}.hero-bar,.editor-grid,.json-compare-grid,.settings-modal-grid,.app-footer{grid-template-columns:1fr}.hero-bar{flex-direction:column}.hero-actions{width:100%;justify-content:flex-start}.locale-menu{left:0;right:auto}.settings-modal-backdrop{padding:12px}.settings-modal{padding:18px}.toolbar-field-select{max-width:none}.result-header{align-items:flex-start;flex-direction:column}.result-actions{justify-content:flex-start}.code-panel{height:min(52vh,var(--panel-height, 560px));min-height:360px}.result-card.fullscreen{top:8px;right:8px;bottom:8px;left:8px;padding:16px}.result-card.fullscreen .code-panel{height:calc(100vh - 260px)}}
