.thdiff-wrap{max-width:1000px;margin:0 auto;font-family:inherit;color:#1f2937;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:22px}
.thdiff-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.thdiff-col label,.thdiff-opt label{display:block;font-weight:600;margin-bottom:6px;font-size:.92em}
.thdiff-col textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em;line-height:1.5;resize:vertical}
.thdiff-options{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end;margin:16px 0}
.thdiff-opt select{padding:9px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:1em;min-width:190px}
.thdiff-check{display:flex;gap:8px;align-items:center;font-size:.95em;cursor:pointer}
.thdiff-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.thdiff-btn{padding:10px 22px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer;font-size:1em;font-weight:600}
.thdiff-btn:hover{background:#f1f5f9}
.thdiff-primary{background:#2563eb;border-color:#2563eb;color:#fff}
.thdiff-primary:hover{background:#1d4ed8}
.thdiff-summary{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px;font-size:.92em}
.thdiff-summary span{padding:4px 12px;border-radius:999px;background:#e2e8f0;font-weight:600}
.thdiff-summary .thdiff-s-add{background:#dcfce7;color:#166534}
.thdiff-summary .thdiff-s-del{background:#fee2e2;color:#991b1b}
.thdiff-result{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}
.thdiff-result:empty{display:none}
.thdiff-inline{padding:14px;white-space:pre-wrap;word-break:break-word;line-height:1.7;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em}
.thdiff-table{width:100%;border-collapse:collapse;table-layout:fixed;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.88em;margin:0}
.thdiff-table td{border:0;padding:2px 8px;vertical-align:top;white-space:pre-wrap;word-break:break-word;line-height:1.55}
.thdiff-table td.thdiff-n{width:42px;text-align:right;color:#94a3b8;background:#f8fafc;user-select:none}
.thdiff-table td.thdiff-t{width:calc(50% - 42px)}
.thdiff-table td.thdiff-t:nth-child(2){border-right:1px solid #e2e8f0}
.thdiff-table tr.thdiff-eq td.thdiff-t{background:#fff}
.thdiff-t.thdiff-del{background:#fef2f2}
.thdiff-t.thdiff-add{background:#f0fdf4}
.thdiff-t.thdiff-empty{background:#f8fafc}
.thdiff-result del{background:#fecaca;color:#7f1d1d;text-decoration:none;border-radius:3px}
.thdiff-result ins{background:#bbf7d0;color:#14532d;text-decoration:none;border-radius:3px}
.thdiff-same{padding:18px;font-weight:600;color:#166534}
@media(max-width:700px){.thdiff-inputs{grid-template-columns:1fr}.thdiff-opt select{width:100%}}
