:root,[data-theme=light]{--bg:#f5f9fc;--surface:#fff;--surface-2:#e7eef5;--text:#1e293b;--muted:#637285;--green:#20b683;--green-ink:#06281c;--green-edge:#0e5a40;--green-hover:#18996e;--cyan:#3bc1e6;--yellow:#ffeb5b;--link:#0e5a40;--focus:#0e5a40;--border:#d3dee8;--del-bg:#fdecec;--del-strong:#f6c1c1;--del-text:#7f1d1d;--add-bg:#e5f7ef;--add-strong:#b7e8d2;--add-text:#145c3e;--change-bg:#fff6c2;--header:#fff;--shadow:0 1px 2px #1e293b0d, 0 10px 28px #1e293b0f;--font-sans:"Segoe UI", system-ui, -apple-system, sans-serif;--font-mono:ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;--radius:12px}[data-theme=dark]{--bg:#0b1220;--surface:#1e293b;--surface-2:#263449;--text:#f5f9fc;--muted:#c5d0dc;--green:#20b683;--green-ink:#06281c;--green-edge:#8ee8c8;--green-hover:#27c48f;--cyan:#3bc1e6;--yellow:#ffeb5b;--link:#3bc1e6;--focus:#3bc1e6;--border:#31445c;--del-bg:#3f1d24;--del-strong:#6e2a32;--del-text:#ffd7d7;--add-bg:#12352a;--add-strong:#1c6b4a;--add-text:#c8f8e4;--change-bg:#3a3414;--header:#121a2b;--shadow:0 1px 2px #00000059, 0 12px 32px #00000047}*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);margin:0;font-size:16px;line-height:1.5}button,input,textarea,summary{font:inherit;color:inherit}button,summary{cursor:pointer}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:5;background:var(--green);color:var(--green-ink);border-radius:8px;padding:8px 12px;font-weight:650;position:absolute;top:-48px;left:12px}.skip-link:focus{top:12px}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{z-index:6;background:var(--header);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:12px 20px;display:flex;position:sticky;top:0}.topbar:before{content:"";background:linear-gradient(90deg,#1e293b,#20b683 58%,#3bc1e6);height:3px;position:absolute;top:0;left:0;right:0}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{border-radius:10px;flex:none;display:flex}.brand-mark img{border-radius:10px;width:44px;height:44px;display:block}.brand-name{letter-spacing:-.02em;margin:0;font-size:1.125rem;font-weight:680;line-height:1.2}.brand-tag{color:var(--muted);margin:2px 0 0;font-size:.875rem}.theme-switch,.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:3px;display:inline-flex}.theme-switch button,.segmented button{color:var(--text);background:0 0;border:1px solid #0000;border-radius:8px;min-height:36px;padding:4px 10px}.theme-switch button[aria-pressed=true],.segmented button[aria-pressed=true]{background:var(--green);color:var(--green-ink);border-color:var(--green-edge);font-weight:650}.privacy{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:12px 20px 0;padding:12px 14px;display:flex}.privacy p{max-width:70ch;margin:0}.privacy-actions,.modal-actions,.pane-tools{flex-wrap:wrap;gap:8px;display:flex}.workspace{flex-direction:column;flex:1;gap:12px;min-height:0;padding:12px 20px 16px;display:flex}.toolbar,.pane,.diff-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.toolbar{flex-direction:column;gap:10px;padding:12px;display:flex}.toolbar-row,.checks,.actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.checks label{border-radius:8px;align-items:center;gap:8px;min-height:36px;padding:4px 8px;display:inline-flex}.checks input{width:1.05rem;height:1.05rem;accent-color:var(--green-edge)}.button{background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-height:36px;padding:6px 12px;text-decoration:none;display:inline-flex}.button.primary{background:var(--green);color:var(--green-ink);border-color:var(--green-edge);font-weight:680}.button.primary:hover{background:var(--green-hover)}.button.ghost{background:var(--surface);border-color:var(--border)}.button.ghost:hover{background:var(--surface-2)}.button:disabled{opacity:.45;cursor:not-allowed}.menu{position:relative}.menu summary{list-style:none}.menu summary::-webkit-details-marker{display:none}.menu-panel{z-index:4;background:var(--surface);border:1px solid var(--border);min-width:240px;box-shadow:var(--shadow);border-radius:10px;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);left:0}.menu-panel button{text-align:left;background:0 0;border:0;border-radius:8px;min-height:36px;padding:6px 10px}.menu-panel button:hover{background:var(--surface-2)}.stats-row{justify-content:space-between}.stats{flex-wrap:wrap;align-items:center;gap:8px;margin:0;display:flex}.chip{font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;min-height:28px;padding:2px 8px;font-size:.875rem;font-weight:650;display:inline-flex}.chip.add{background:var(--add-bg);color:var(--add-text)}.chip.del{background:var(--del-bg);color:var(--del-text)}.chip.changed{background:var(--yellow);color:#1e293b}.computing,.nav-position,.hint,.status,.pane-meta,.brand-tag,.diff-head p,.empty-diff p,.footer,.recent-list p{color:var(--muted)}.nav-changes{align-items:center;gap:8px;display:flex}.nav-position{text-align:center;font-variant-numeric:tabular-nums;min-width:8.5rem}.hint,.status{margin:0;font-size:.92rem}.status:empty{display:none}.editors{grid-template-columns:1fr 1fr;gap:12px;display:grid}.pane{flex-direction:column;gap:8px;min-width:0;padding:12px;display:flex}.pane.dragging{border-color:var(--green);box-shadow:inset 0 0 0 2px var(--green)}.pane-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.pane h2,.diff-head h2,.modal h2{margin:0;font-size:1rem}.pane-head p,.diff-head p{color:var(--muted);margin:2px 0 0;font-size:.875rem}.name-field input,.pane textarea{border:1px solid var(--border);background:var(--bg);border-radius:8px;width:100%}.name-field input{min-height:36px;padding:6px 8px}.pane textarea{resize:vertical;min-height:9.5rem;font-family:var(--font-mono);padding:10px;font-size:16px;line-height:1.45}.file-button{position:relative}.file-button input{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.pane-meta{margin:0;font-size:.82rem}.diff-card{flex-direction:column;flex:1;min-height:320px;display:flex;overflow:hidden}.diff-head{padding:12px 14px 8px}.diff-scroll{border-top:1px solid var(--border);flex:1;overflow:auto}.diff-scroll:focus-visible{outline-offset:-3px}.match-banner,.empty-diff{background:var(--add-bg);color:var(--add-text);margin:0;padding:10px 14px}.empty-diff{color:var(--text);background:0 0;padding:28px 16px}.empty-diff p{margin:0 0 6px}.diff-row.side,.diff-row.uni{width:100%}.diff-row.side{grid-template-columns:1.75rem 3.1rem minmax(0,1fr) 1.75rem 3.1rem minmax(0,1fr);display:grid}.diff-row.uni{grid-template-columns:1.75rem 3.1rem 3.1rem minmax(0,1fr);display:grid}.diff-row.is-active{box-shadow:inset 3px 0 0 var(--focus)}.mark,.line-no,.line-cell{min-width:0;min-height:28px}.line-cell{overflow-x:auto}.mark{font-family:var(--font-mono);justify-content:center;align-items:center;font-weight:700;display:flex}.mark.tone-delete{background:var(--del-bg);color:var(--del-text)}.mark.tone-insert{background:var(--add-bg);color:var(--add-text)}.line-no{text-align:right;color:var(--muted);font-family:var(--font-mono);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;padding:4px 8px 4px 0;font-size:12px}.line-cell.tone-delete,.diff-row.tone-delete .line-cell{background:var(--del-bg)}.line-cell.tone-insert,.diff-row.tone-insert .line-cell{background:var(--add-bg)}.line-text{font-family:var(--font-mono);min-height:28px;padding:4px 10px 4px 4px;font-size:14px;line-height:20px}.line-text.nowrap{white-space:pre}.line-text.wrap{white-space:pre-wrap;overflow-wrap:anywhere}.token-delete{background:var(--del-strong);color:var(--del-text);border-radius:2px}.token-insert{background:var(--add-strong);color:var(--add-text);border-radius:2px}.fold{text-align:left;border:0;border-bottom:1px solid var(--border);background:var(--surface-2);width:100%;color:var(--link);min-height:32px;padding:6px 12px;font-weight:650;display:block}.is-virtual .diff-row,.is-virtual .fold{height:28px;overflow:hidden}.footer{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 20px 18px;font-size:.92rem;display:flex}.footer p{margin:0}a{color:var(--link);text-underline-offset:2px}.text-button{color:var(--link);text-underline-offset:2px;background:0 0;border:0;min-height:36px;padding:4px 0;text-decoration:underline}.modal{border:1px solid var(--border);background:var(--surface);width:min(560px,100vw - 32px);color:var(--text);box-shadow:var(--shadow);border-radius:14px;padding:16px}.modal::backdrop{background:#0b12208c}.modal-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.help-list,.recent-list{flex-direction:column;gap:10px;margin:8px 0 0;padding:0;list-style:none;display:flex}.help-list li{padding-left:0}.recent-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding-bottom:10px;display:flex}.recent-list strong{display:block}.recent-list p{margin:2px 0 0;font-size:.85rem}kbd{font-family:var(--font-mono);border:1px solid var(--border);background:var(--surface-2);border-bottom-width:2px;border-radius:5px;padding:0 5px;font-size:.85em}@media (width<=860px){.editors{grid-template-columns:1fr}.brand-tag{display:none}.brand{flex:1;min-width:0}.brand-name{font-size:1rem;line-height:1.2}.theme-switch button,.segmented button{padding:4px 8px}.diff-row.side{grid-template-columns:1.6rem 2.6rem minmax(0,1fr);grid-template-areas:"lm ln lc""rm rn rc"}.diff-row.side .mark:first-child{grid-area:lm}.diff-row.side .line-no:nth-child(2){grid-area:ln}.diff-row.side .line-cell:nth-child(3){grid-area:lc}.diff-row.side .mark:nth-child(4){grid-area:rm}.diff-row.side .line-no:nth-child(5){grid-area:rn}.diff-row.side .line-cell:nth-child(6){grid-area:rc}.topbar,.workspace,.footer{padding-left:12px;padding-right:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
