:root{color:#17201c;background:#f5f7f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(180deg,#ffffffdb,#f5f7f4f0),#f5f7f4}button,textarea,input{font:inherit}button{cursor:pointer}.shell{display:flex;flex-direction:column;gap:18px;width:min(1440px,100%);min-height:100vh;margin:0 auto;padding:24px}.topbar{display:flex;align-items:end;justify-content:space-between;gap:24px}.eyebrow{margin:0 0 4px;color:#52635a;font-size:.78rem;font-weight:700;letter-spacing:0;text-transform:uppercase}h1{margin:0;color:#17201c;font-size:clamp(2rem,4vw,3.8rem);line-height:.95;letter-spacing:0}.stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;color:#26342f;font-size:.9rem;font-weight:700}.stats span{min-height:34px;padding:7px 10px;border:1px solid #cfd8d2;border-radius:8px;background:#fff}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.editor-panel{display:grid;grid-template-rows:auto minmax(240px,34vh);overflow:hidden;border:1px solid #cfd8d2;border-radius:8px;background:#fff}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 12px;border-bottom:1px solid #dce4df;background:#fbfcfb}.panel-head label:first-child{color:#26342f;font-size:.9rem;font-weight:800}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.file-button,.actions button,.segmented button{min-height:34px;border:1px solid #b8c5be;border-radius:8px;background:#fff;color:#17201c;font-size:.9rem;font-weight:750}.file-button{display:inline-flex;align-items:center;padding:6px 10px}textarea{width:100%;height:100%;min-height:240px;resize:vertical;padding:14px;border:0;outline:none;background:#111815;color:#edf6f0;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.92rem;line-height:1.55;-moz-tab-size:2;tab-size:2}textarea:focus{box-shadow:inset 0 0 0 2px #24765b}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;border:1px solid #cfd8d2;border-radius:8px;background:#fff}.segmented{display:inline-grid;grid-template-columns:repeat(2,minmax(118px,auto));overflow:hidden;border:1px solid #b8c5be;border-radius:8px}.segmented button{border:0;border-radius:0;background:transparent;padding:7px 12px}.segmented button[aria-selected=true]{background:#1f6f55;color:#fff}.toggle{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:5px 10px;border:1px solid #dce4df;border-radius:8px;background:#fbfcfb;color:#26342f;font-size:.9rem;font-weight:700}.toggle input{width:16px;height:16px;accent-color:#1f6f55}.actions{display:inline-flex;gap:8px;margin-left:auto}.actions button{padding:6px 12px}.file-button:hover,.actions button:hover,.segmented button:hover,.gap-row:hover{border-color:#1f6f55}.message{min-height:22px;margin:-4px 0;color:#a4381b;font-size:.92rem;font-weight:750}.result{height:100vh;height:100svh;min-height:280px;overflow:hidden;border:1px solid #cfd8d2;border-radius:8px;background:#fff}.diff-output{height:100%;overflow:auto}.diff-table{display:grid;min-width:760px;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.87rem;line-height:1.45}.diff-table.side-by-side{grid-template-columns:64px minmax(260px,1fr) 64px minmax(260px,1fr)}.diff-table.inline{grid-template-columns:64px 64px minmax(360px,1fr)}.diff-heading{position:sticky;top:0;z-index:1;padding:9px 12px;border-bottom:1px solid #cfd8d2;background:#eef3ef;color:#26342f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.8rem;font-weight:850}.number-cell{text-align:right}.line-number,.code-cell{min-height:26px;border-bottom:1px solid #edf1ee}.line-number{padding:4px 10px;color:#718077;background:#fbfcfb;text-align:right;-webkit-user-select:none;user-select:none}.code-cell{margin:0;padding:4px 12px;overflow:visible;color:#17201c;white-space:pre-wrap;word-break:break-word}.code-cell.equal{background:#fff}.line-number.equal{background:#fbfcfb}.code-cell.insert,.line-number.insert{background:#e5f5ec}.code-cell.delete,.line-number.delete{background:#fde9e4}.code-cell.replace,.line-number.replace{background:#fff4d7}.word-delete,.word-insert{border-radius:4px;font-weight:800}.word-delete{background:#f5b9aa}.word-insert{background:#9eddb7}.gap-row{min-height:34px;border:0;border-bottom:1px solid #dce4df;background:#f5f7f4;color:#52635a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.86rem;font-weight:800}.empty-state{display:grid;min-height:240px;place-items:center;color:#52635a;font-weight:800}@media (max-width: 860px){.shell{padding:16px}.topbar{align-items:stretch;flex-direction:column}.stats{justify-content:flex-start}.workspace{grid-template-columns:1fr}.editor-panel{grid-template-rows:auto minmax(220px,32vh)}.controls{align-items:stretch}.segmented{width:100%;grid-template-columns:1fr 1fr}.toggle{flex:1 1 220px}.actions{width:100%;margin-left:0}.actions button{flex:1}.diff-output{height:100%}}
