:root{color-scheme:light;--bg:#f3f5f1;--paper:#fffefa;--ink:#27352e;--muted:#68766d;--line:#dbe4dc;--green:#32634b;--green-soft:#eaf2eb;--red:#a23f38;--red-soft:#fff0ed;--blue:#315e80;--blue-soft:#edf4fa;--gold:#795819;--gold-soft:#fff6df;--shadow:0 12px 34px #1c3a2510}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}.shell{width:min(1120px,calc(100% - 32px));margin-inline:auto}.topbar{background:#fbfcf9;border-bottom:1px solid var(--line)}.topbar-inner{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:800}.brand-mark{width:38px;height:38px;border-radius:13px;background:var(--green);display:grid;place-items:center;color:white;font-size:22px}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:500}.home-link{font-size:13px;color:var(--green);text-decoration:none;padding:8px 10px;border-radius:9px}.home-link:hover{background:var(--green-soft)}main{padding-bottom:22px}.hero{padding:25px 0 12px}.eyebrow{font-size:10px;letter-spacing:.18em;color:#6e8a72;font-weight:800;margin:0 0 4px}.hero h1{font-size:clamp(27px,4.2vw,38px);letter-spacing:-.025em;line-height:1.18;margin:0}.lead{color:var(--muted);margin:8px 0 12px}.privacy{max-width:820px;background:#f9fbf7;border:1px solid #dce7db;border-radius:11px;color:#56685a;font-size:12px;padding:10px 12px;margin:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:17px;margin:13px 0;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px}.panel-heading h2{font-size:17px;margin:0}.panel-heading p{font-size:12px;color:var(--muted);margin:3px 0 0}.local-badge{white-space:nowrap;border-radius:99px;background:var(--green-soft);color:#45644c;padding:5px 10px;font-size:11px}.text-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.text-side{min-width:0}.text-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}.text-label-row label{font-weight:800;font-size:14px}.line-status{font-size:11px;color:var(--muted);white-space:nowrap}.text-side textarea{display:block;width:100%;min-width:0;min-height:220px;resize:vertical;border:1px solid #cbd8ce;border-radius:11px;padding:12px;background:#fff;color:var(--ink);outline:none;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans Mono CJK SC",monospace;white-space:pre-wrap;overflow-wrap:anywhere}.text-side textarea:focus,.copy-fallback textarea:focus{border-color:#60866a;box-shadow:0 0 0 3px #60866a24}.input-meta{display:flex;justify-content:space-between;gap:8px;min-height:20px;padding-top:3px;font-size:10px;color:var(--muted)}.field-error{color:var(--red);text-align:right}.help{font-size:10px;color:var(--muted);margin:2px 0 0}.compare-controls{border-top:1px solid #e7ece6;margin-top:14px;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:12px}.check{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#43564a;cursor:pointer}.check input{accent-color:var(--green);width:16px;height:16px;margin:0}.actions,.result-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.button{border:1px solid #cbd8ce;border-radius:9px;background:#fff;padding:8px 12px;font-size:12px;transition:background .12s,border-color .12s,transform .12s}.button:hover:not(:disabled){background:#f7faf6;border-color:#91aa94}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:var(--green);color:white;border-color:var(--green);font-weight:750}.button.primary:hover:not(:disabled){background:#28563f}.button.quiet{color:#6d4d45}.button.small{font-size:11px;padding:6px 9px}.button:disabled{opacity:.45;cursor:not-allowed}.result-panel{padding-bottom:19px}.result-heading{align-items:center}.result-heading p{max-width:720px}.result-tools{justify-content:flex-end}.notice{border:1px dashed #d1ddd1;border-radius:11px;padding:17px;text-align:center;background:#fafbf8;color:var(--muted);font-size:13px}.notice.error{border-style:solid;border-color:#e8c3bb;background:#fff6f3;color:#8d3932;text-align:left}.counts{display:flex;gap:8px;flex-wrap:wrap;margin:3px 0 11px}.count-card{min-width:100px;border:1px solid #e2e9e1;background:#fafcf9;border-radius:10px;padding:8px 11px}.count-card span{font-size:10px;color:var(--muted);display:block}.count-card strong{font-size:19px;line-height:1.25}.count-card.add strong{color:var(--blue)}.count-card.del strong{color:var(--red)}.count-card.total strong{color:var(--green)}.eof-notice{padding:10px 12px;border:1px solid #e9d69f;background:var(--gold-soft);color:#6d541f;border-radius:10px;font-size:12px;margin-bottom:11px}.eof-notice strong{display:block;color:#624a16}.view-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #e9eee8;padding:11px 0}.legend{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-left:auto}.legend-item{font-weight:750}.legend-item.add{color:var(--blue)}.legend-item.del{color:var(--red)}.legend-item.same{color:#647066}.legend-mark{font-family:ui-monospace,monospace}.navigation{display:flex;align-items:center;gap:9px;padding:0 0 10px}.navigation #targetPosition{font-size:12px;font-weight:750;min-width:48px;text-align:center}.nav-hint{font-size:10px;color:var(--muted)}.compare-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px 10px;background:#eef2ed;border:1px solid #e0e7df;border-radius:9px 9px 0 0;font-size:11px;font-weight:800;color:#45594b}.compare-header div{display:flex;justify-content:space-between}.compare-header span{font-weight:500;color:#728076}.diff-output{border:1px solid #e0e7df;border-top:0;border-radius:0 0 10px 10px;overflow:hidden}.result-block{scroll-margin:80px;border-bottom:1px solid #e5ebe4}.result-block:last-child{border-bottom:0}.result-block.target-focus{outline:3px solid #c79744;outline-offset:-3px;background:#fffaf0}.block-title{padding:7px 10px;font-size:11px;font-weight:800;background:#f6f8f4;color:#57665a;display:flex;gap:8px;align-items:center}.block-title .block-kind{border-radius:99px;padding:2px 7px;font-size:10px}.block-kind.insert{background:var(--blue-soft);color:var(--blue)}.block-kind.delete{background:var(--red-soft);color:var(--red)}.block-kind.replace{background:#f6edf5;color:#764767}.block-kind.equal{background:#edf2ed;color:#56695a}.line-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:2px 7px;border-top:1px solid #f1f3ef}.line-row:first-of-type{border-top:0}.line-cell{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;min-width:0;border-radius:5px;padding:4px 5px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans Mono CJK SC",monospace;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.line-number{color:#849087;text-align:right;padding-right:8px;user-select:none;font-size:10px}.line-content{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.line-cell.insert{background:#f0f6fb;color:#264e69}.line-cell.delete{background:#fff3f0;color:#803d36}.line-cell.equal{color:#34443a}.line-cell.rule-equal{background:#fffaf0}.line-cell.missing{color:#a1aaa2;font-family:inherit;font-size:11px}.line-cell.empty-line .line-content{color:#7b877e;font-style:italic;font-family:ui-sans-serif,system-ui,sans-serif}.line-cell .rule-label{display:inline-block;margin-left:8px;color:#80642c;font:10px/1.5 ui-sans-serif,system-ui,sans-serif;border:1px solid #e7d8ad;border-radius:99px;padding:0 6px}.eof-block{padding:10px;background:var(--gold-soft);color:#69521d}.eof-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.eof-side{display:flex;justify-content:space-between;border:1px solid #efdfb5;background:#fffaf0;border-radius:8px;padding:7px 9px}.copy-fallback{margin-top:13px;border:1px solid #e7cf92;background:#fff9e9;border-radius:11px;padding:12px}.fallback-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.fallback-head strong{font-size:13px;color:#6a5118}.fallback-head p{font-size:11px;color:#786b4b;margin:2px 0 8px}.copy-fallback label{font-size:11px;display:block;margin-bottom:5px}.copy-fallback textarea{width:100%;min-height:130px;resize:vertical;border:1px solid #dbceaa;border-radius:8px;padding:9px;background:white;color:#403d32;font:12px/1.5 ui-monospace,monospace;outline:none}.action-status{min-height:17px;color:#4e6b53;font-size:11px;margin:8px 0 0}.footer{font-size:10px;color:var(--muted);padding:6px 0 20px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #c69645;outline-offset:2px}
@media(max-width:760px){.shell{width:min(100% - 22px,600px)}.topbar-inner{height:60px}.hero{padding-top:20px}.panel{padding:13px}.text-columns{grid-template-columns:minmax(0,1fr)}.text-side textarea{min-height:170px}.compare-controls{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .button{flex:1 1 auto}.result-heading{align-items:flex-start;flex-direction:column}.result-tools{width:100%}.result-tools .button{flex:1}.legend{margin-left:0}.line-cell{grid-template-columns:32px minmax(0,1fr);padding-inline:2px}.line-row{gap:3px;padding-inline:3px}.compare-header{gap:3px;padding-inline:6px}.compare-header div{font-size:10px}.navigation{flex-wrap:wrap}}
@media(max-width:380px){.shell{width:calc(100% - 16px)}.panel{padding:10px}.local-badge{font-size:10px;padding:4px 7px}.actions{gap:5px}.actions .button{padding:8px 7px;font-size:11px}.line-cell{grid-template-columns:27px minmax(0,1fr);font-size:11px}.line-number{padding-right:5px}.count-card{flex:1 1 28%;min-width:0}.nav-hint{width:100%;margin-left:2px}}
