.text-compare-tool .text-compare-card{padding:24px}.text-compare-tool .text-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.text-compare-tool .text-editor{min-width:0;border:1px solid #2b3154;border-radius:14px;overflow:hidden;background:#171b35;color:#eef0ff}.text-compare-tool .text-editor-head,.text-compare-tool .text-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px}.text-compare-tool .text-editor-head{background:#202647;border-bottom:1px solid #2b3154}.text-compare-tool .text-editor-head label{font-weight:700}.text-compare-tool .text-editor-head span,.text-compare-tool .text-editor-foot{color:#aeb5d6;font-size:.78rem}.text-compare-tool .text-editor-body{display:grid;grid-template-columns:42px minmax(0,1fr);height:300px;min-height:220px}.text-compare-tool .line-numbers{padding:14px 8px;color:#747da7;background:#13172e;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;overflow:hidden;user-select:none;white-space:pre}.text-compare-tool .text-editor textarea{display:block;width:100%;height:100%;min-width:0;resize:none;padding:14px;color:#f5f6ff;background:#171b35;border:0;outline:0;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow:auto}.text-compare-tool .text-editor textarea::placeholder{color:#747da7}.text-compare-tool .text-editor textarea:focus{box-shadow:inset 0 0 0 2px #635bff}.text-compare-tool .text-editor-foot{background:#171b35}.text-compare-tool .text-editor-foot>div{display:flex;gap:3px}.text-compare-tool .text-editor-foot .button{min-height:30px;padding:4px 8px;color:#cdd2f2}.text-compare-tool .text-compare-controls{display:grid;grid-template-columns:auto 1fr;gap:28px;margin-top:22px}.text-compare-tool fieldset{min-width:0;padding:0;border:0}.text-compare-tool legend{margin-bottom:8px;color:var(--heading);font-size:.9rem;font-weight:700}.text-compare-tool .text-segmented,.text-compare-tool .text-options{display:flex;flex-wrap:wrap;gap:7px}.text-compare-tool .text-segmented button{padding:8px 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--heading);font:inherit;font-size:.88rem;cursor:pointer}.text-compare-tool .text-segmented button:hover,.text-compare-tool .text-segmented button:focus-visible{border-color:var(--primary)}.text-compare-tool .text-segmented button.is-active{border-color:var(--primary);background:#eeedff;color:var(--primary);font-weight:700}.text-compare-tool .text-segmented button:focus-visible{outline:3px solid #635bff55;outline-offset:2px}.text-compare-tool .text-options{align-items:center;gap:12px 18px}.text-compare-tool .text-options label{color:var(--heading);font-size:.88rem;cursor:pointer}.text-compare-tool .text-options input{accent-color:var(--primary);margin-right:5px}.text-compare-tool .text-actions,.text-compare-tool .result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.text-compare-tool .text-status{min-height:1.3em;margin:12px 0 0;color:var(--muted);font-size:.9rem}.text-compare-tool .text-status.is-error{color:#a52323}.text-compare-tool .text-result-panel{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}.text-compare-tool .text-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.text-compare-tool .text-result-head .eyebrow{margin:0 0 4px}.text-compare-tool .text-result-head h2{margin:0;color:var(--heading);font-size:1.5rem}.text-compare-tool .result-summary{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.text-compare-tool .result-summary span{padding:7px 10px;border-radius:7px;font-size:.82rem;font-weight:700}.text-compare-tool .summary-added{background:#e7f8ef;color:#176c42}.text-compare-tool .summary-removed{background:#fff0f0;color:#9b2929}.text-compare-tool .summary-changed{background:#fff6dc;color:#80600d}.text-compare-tool .summary-unchanged{background:#eef0f5;color:#596174}.text-compare-tool .diff-grid{max-height:620px;overflow:auto;border:1px solid var(--border);border-radius:10px}.text-compare-tool .diff-header,.text-compare-tool .diff-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:560px}.text-compare-tool .diff-header{position:sticky;top:0;z-index:1;background:#f5f6fb;color:var(--heading);font-size:.78rem;font-weight:700}.text-compare-tool .diff-header div{padding:9px 12px;border-bottom:1px solid var(--border)}.text-compare-tool .diff-cell{display:grid;grid-template-columns:42px minmax(0,1fr);min-width:0;border-bottom:1px solid #e8e9ef;background:#fff}.text-compare-tool .diff-cell.is-removed{background:#fff1f1}.text-compare-tool .diff-cell.is-added{background:#eefbf7}.text-compare-tool .diff-cell.is-changed{background:#fff8e6}.text-compare-tool .diff-cell.is-empty{background:#f7f7fa}.text-compare-tool .diff-cell:last-child{border-left:1px solid var(--border)}.text-compare-tool .diff-line-number{padding:9px 8px;color:#9299ad;background:#f7f8fb;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;user-select:none}.text-compare-tool .diff-cell>div:last-child{min-width:0;padding:9px 12px;color:#31374b;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.text-compare-tool .diff-cell.is-empty>div:last-child{color:#a7acbb}.text-compare-tool .diff-cell mark{padding:1px 2px;border-radius:3px}.text-compare-tool .diff-cell mark.is-removed{background:#ffcaca;color:#7c1d1d}.text-compare-tool .diff-cell mark.is-added{background:#bcefd6;color:#145836}.text-compare-tool .result-actions{margin-top:16px}.text-compare-tool .text-compare-content{padding-bottom:10px}.text-compare-tool .text-compare-content .faq-section{margin-top:34px}.text-compare-tool [hidden]{display:none!important}@media(max-width:760px){.text-compare-tool .text-compare-card{padding:16px}.text-compare-tool .text-editors{grid-template-columns:1fr}.text-compare-tool .text-editor-body{height:260px}.text-compare-tool .text-compare-controls{grid-template-columns:1fr;gap:18px}.text-compare-tool .text-result-head{display:block}.text-compare-tool .text-result-head .button{margin-top:12px}.text-compare-tool .diff-grid{margin-left:-1px;margin-right:-1px}}
.text-compare-tool .text-view-options{margin:20px 0 16px;padding:14px 0 0;border-top:1px solid var(--border)}.text-compare-tool .text-view-options>label{display:inline-flex;align-items:center;gap:7px;color:var(--heading);font-size:.88rem;font-weight:600;cursor:pointer}.text-compare-tool .text-view-options input{accent-color:var(--primary)}.text-compare-tool .text-view-options input:disabled+*{opacity:.6}.text-compare-tool .context-options{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:12px;color:var(--heading);font-size:.88rem}.text-compare-tool .text-context-segmented{display:flex;gap:6px}.text-compare-tool .text-context-segmented button{min-width:32px;padding:6px 9px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--heading);font:inherit;cursor:pointer}.text-compare-tool .text-context-segmented button:hover,.text-compare-tool .text-context-segmented button:focus-visible{border-color:var(--primary)}.text-compare-tool .text-context-segmented button.is-active{border-color:var(--primary);background:#eeedff;color:var(--primary);font-weight:700}.text-compare-tool .text-context-segmented button:focus-visible{outline:3px solid #635bff55;outline-offset:2px}.text-compare-tool .text-view-options [disabled]{cursor:not-allowed;opacity:.55}.text-compare-tool .diff-collapsed{grid-column:1/-1;width:100%;padding:9px 12px;border:0;border-bottom:1px solid var(--border);background:#f7f8fb;color:var(--primary);font:inherit;font-size:.82rem;font-weight:700;text-align:center;cursor:pointer}.text-compare-tool .diff-collapsed:hover,.text-compare-tool .diff-collapsed:focus-visible{background:#eeedff}.text-compare-tool .diff-collapsed:focus-visible{outline:3px solid #635bff55;outline-offset:-3px}.text-compare-tool .diff-collapsed.is-expanded{color:var(--muted);font-weight:600}
.text-compare-tool .text-compare-wide{width:min(1800px,calc(100vw - 40px));margin-inline:auto}.text-compare-tool .text-compare-card{max-width:none}.text-compare-tool .text-input-workspace[hidden],.text-compare-tool .text-result-panel[hidden]{display:none!important}.text-compare-tool .text-editor-body{height:min(480px,58vh);min-height:420px}.text-compare-tool .text-result-panel{padding:24px 0 0;margin-top:0;border-top:0}.text-compare-tool .text-result-head{position:sticky;top:10px;z-index:3;padding:10px 0;background:var(--surface)}.text-compare-tool .result-head-actions,.text-compare-tool .result-navigation{display:flex;flex-wrap:wrap;gap:8px}.text-compare-tool .result-navigation{position:sticky;top:72px;z-index:2;padding:8px 0;background:var(--surface)}.text-compare-tool .diff-grid{height:min(70vh,800px);min-height:500px}.text-compare-tool .diff-grid.no-wrap .diff-cell>div:last-child{white-space:pre;overflow-wrap:normal;overflow-x:auto}.text-compare-tool .diff-row.is-focused .diff-cell{box-shadow:inset 0 0 0 2px #635bff66}.text-compare-tool .text-result-panel .result-actions{padding-bottom:4px}@media(max-width:760px){.text-compare-tool .text-compare-wide{width:calc(100vw - 28px)}.text-compare-tool .text-editor-body{height:360px;min-height:320px}.text-compare-tool .text-result-head,.text-compare-tool .result-navigation{position:static}.text-compare-tool .diff-grid{height:60vh;min-height:360px}.text-compare-tool .diff-header,.text-compare-tool .diff-row{grid-template-columns:minmax(0,1fr);min-width:0}.text-compare-tool .diff-cell:last-child{border-left:0;border-top:1px solid var(--border)}.text-compare-tool .diff-header div+div{border-top:1px solid var(--border)}.text-compare-tool .text-result-head .result-head-actions{margin-top:12px}}
