:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #0f1117;--surface: #171c24;--surface-2: #1e2430;--surface-3: #262e3c;--line: #2e3645;--line-soft: #222a38;--text: #e8e4dc;--muted: #8f9bb0;--faint: #5a6578;--blue: #7aadff;--amber: #e8b95a;--green: #5cbd8a;--red: #f07070;--red-bg: rgba(240, 100, 100, .11);--green-bg: rgba(72, 196, 124, .12);--amber-bg: rgba(232, 185, 90, .13)}*{box-sizing:border-box}body{min-width:320px;margin:0;color:var(--text);background:var(--bg)}button,textarea{font:inherit}button{color:inherit}.app-shell{display:grid;grid-template-rows:auto auto minmax(180px,30vh) minmax(0,1fr);height:100vh;overflow:hidden;padding:14px 16px;gap:10px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}.brand{display:flex;align-items:center;flex-shrink:0;gap:9px}.brand-mark{display:grid;width:32px;height:32px;place-items:center;border:1px solid var(--line);border-radius:7px;color:var(--bg);background:var(--text);font-weight:900;font-size:1rem;line-height:1;flex-shrink:0}.brand-name{font-size:1rem;font-weight:700;letter-spacing:0;line-height:1}.brand-tagline{color:var(--faint);font-size:.73rem;white-space:nowrap}h1,p{margin:0}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.toolbar-sep{width:1px;height:22px;background:var(--line);margin:0 2px;flex-shrink:0}.segmented{display:inline-grid;grid-auto-flow:column;min-height:32px;padding:2px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.segmented-button,.icon-button,.toggle,.pane-actions button{border:0;background:transparent;cursor:pointer}.segmented-button{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:26px;padding:0 9px;gap:5px;border-radius:5px;color:var(--muted);font-size:.8rem}.segmented-button[data-active=true]{color:var(--text);background:var(--surface-3)}.icon-button{display:inline-grid;width:32px;height:32px;place-items:center;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface)}.icon-button:hover,.pane-actions button:hover,.toggle:hover{color:var(--text);border-color:#3e4e64;background:var(--surface-3)}.options-row{display:flex;min-height:32px;align-items:center;gap:6px;overflow-x:auto}.option-label{color:var(--faint);font-size:.72rem;font-weight:700;white-space:nowrap;margin-right:2px}.toggle{min-width:0;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface);font-size:.78rem;white-space:nowrap}.toggle[data-active=true]{color:var(--text);border-color:#3e4e64;background:var(--surface-3)}.parse-error{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;color:var(--red)}.input-grid{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.input-pane{display:grid;min-width:0;min-height:0;grid-template-rows:36px minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.pane-head{display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 11px;border-bottom:1px solid var(--line-soft)}.pane-info{display:inline-flex;min-width:0;align-items:baseline;gap:7px;overflow:hidden}.pane-label{color:var(--muted);font-size:.8rem;font-weight:700;white-space:nowrap}.pane-lines{color:var(--faint);font-size:.7rem;white-space:nowrap}.pane-status{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.pane-status[data-tone=ok]{color:var(--green)}.pane-status[data-tone=error]{color:var(--red)}.pane-actions{display:inline-flex;flex:0 0 auto;gap:2px}.pane-actions button{display:inline-grid;width:26px;height:26px;place-items:center;border:1px solid transparent;border-radius:5px;color:var(--faint)}textarea{width:100%;height:100%;min-height:0;padding:10px 12px;resize:none;border:0;outline:none;color:var(--text);background:transparent;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;line-height:1.55;tab-size:2;white-space:pre}textarea::placeholder{color:var(--faint)}.result-panel{display:grid;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.result-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:7px 10px 7px 12px;border-bottom:1px solid var(--line-soft);background:var(--surface-2);min-height:44px}.result-label{font-size:.82rem;font-weight:700;color:var(--text);white-space:nowrap}.result-meta{color:var(--faint);font-size:.72rem;white-space:nowrap}.result-spacer{flex:1;min-width:8px}.stats-inline{display:inline-flex;align-items:center;gap:10px;font-size:.8rem;font-weight:700;font-variant-numeric:tabular-nums}.stats-inline [data-tone=add]{color:var(--green)}.stats-inline [data-tone=remove]{color:var(--red)}.stats-inline [data-tone=change]{color:var(--amber)}.stats-inline [data-tone=same]{color:var(--muted);font-weight:600}.notice-tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid var(--line);border-radius:4px;color:var(--amber);background:#e8b95a14;font-size:.72rem;font-weight:600;white-space:nowrap}.notice-tag.danger{color:var(--red);background:#f0646414}.result-actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.result-actions .toggle{height:30px;font-size:.78rem;font-weight:600}.diff-shell{min-height:0;overflow:auto;background:var(--bg)}.split-table,.unified-table{min-width:720px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.8rem;line-height:1.5}.diff-row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px minmax(0,1fr);min-height:24px;border-bottom:1px solid rgba(255,255,255,.025)}.unified-row{display:grid;grid-template-columns:28px 48px minmax(0,1fr);min-height:24px;border-bottom:1px solid rgba(255,255,255,.025)}.diff-row[data-type=add],.unified-row[data-type=add]{background:var(--green-bg)}.diff-row[data-type=remove],.unified-row[data-type=remove]{background:var(--red-bg)}.diff-row[data-type=change],.unified-row[data-type=change]{background:var(--amber-bg)}.line-number,.sign{display:inline-flex;min-width:0;align-items:flex-start;justify-content:flex-end;padding:4px 8px;color:var(--faint);font-size:.73rem;-webkit-user-select:none;user-select:none}.sign{justify-content:center;color:var(--muted)}.line-cell{min-width:0;margin:0;padding:4px 10px;overflow:visible;border-left:1px solid rgba(255,255,255,.03);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}.line-cell.left{border-right:1px solid rgba(255,255,255,.03)}mark{padding:1px 0;color:inherit;background:transparent}mark[data-type=add]{background:#2ed4743d}mark[data-type=remove]{background:#f0505042}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:200px;color:var(--faint);font-size:.88rem;text-align:center}.empty-state p{margin:0}.empty-state.small{min-height:120px;font-size:.82rem}.sample-link{display:inline-flex;align-items:center;height:32px;padding:0 14px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--surface-2);font-size:.82rem;font-weight:600;cursor:pointer}.sample-link:hover{color:var(--text);border-color:#3e4e64;background:var(--surface-3)}@media(max-width:980px){.app-shell{grid-template-rows:auto auto auto minmax(380px,auto);height:auto;min-height:100vh;overflow:visible;padding:12px}.topbar{align-items:flex-start;flex-direction:column;gap:8px}.toolbar{justify-content:flex-start;width:100%}.brand-tagline{display:none}.result-panel{min-height:380px}.result-head{row-gap:6px}.input-grid{grid-template-columns:1fr}.input-pane{min-height:200px}.pane-status{max-width:140px}}@media(max-width:560px){.app-shell{padding:10px;gap:8px}.segmented-button{min-width:48px;padding:0 7px;font-size:.76rem}.icon-button{width:30px;height:30px}.options-row{align-items:flex-start;flex-wrap:wrap;overflow-x:visible}.option-label{width:100%}.result-spacer{display:none}.result-actions{width:100%}.result-actions .toggle{flex:1}.input-pane{min-height:160px}.pane-status{display:none}.stats-inline{gap:8px;font-size:.76rem}}
