.diff-workbench {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #cfd6dc !important;
  border-top: 3px solid #a84f2d !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 9px rgba(38, 45, 51, .06) !important;
}
.diff-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid #e1e5e8;
  background: #f7f8f9;
}
.diff-action-main,.diff-options,.diff-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diff-options { gap: 15px; color: #626d76; font-size: 12px; }
.diff-options label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.diff-options input { accent-color: #a84f2d; }
.diff-workbench .btn { min-height: 32px; padding: 6px 11px; }
.diff-workbench .btn-primary { font-weight: 650; }
.diff-editors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.diff-editor { min-width: 0; padding: 14px 15px 16px; }
.diff-editor + .diff-editor { border-left: 1px solid #e1e5e8; }
.diff-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.diff-editor-heading label { color: #39434b; font-size: 12px; font-weight: 700; }
.diff-editor-hint { color: #939ba2; font-size: 11px; }
.diff-text-button { padding: 0; border: 0; background: none; color: #9a4a2c; font: inherit; font-size: 11px; cursor: pointer; }
.diff-text-button:hover { text-decoration: underline; }
.diff-workbench .diff-editor textarea {
  display: block;
  width: 100%;
  min-height: 218px;
  resize: vertical;
  border: 1px solid #d5dbe0;
  border-radius: 2px;
  background: #fff;
  color: #242a2f;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}
.diff-workbench .diff-editor textarea:focus { border-color: #a84f2d; box-shadow: 0 0 0 2px rgba(168,79,45,.1); }
.diff-workbench .diff-editor textarea::placeholder { color: #9ba3aa; }
.diff-results { border-top: 1px solid #dfe3e7; }
.diff-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 9px 15px; background: #fbfbfa; }
.diff-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: #39434b; font-size: 12px; font-weight: 600; }
.diff-count-added { color: #297a4b; }
.diff-count-removed { color: #b1453d; }
.diff-count-same { color: #747e86; font-weight: 500; }
.diff-result-actions { gap: 6px; }
.diff-result-actions .btn { min-height: 29px; padding: 4px 8px; font-size: 11px; }
.diff-output { max-height: 620px; overflow: auto; border-top: 1px solid #e4e7e9; background: #fff; }
.diff-empty { padding: 28px 16px; color: #8b949b; font-size: 12px; text-align: center; }
.diff-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px minmax(0,1fr);
  min-width: 560px;
  min-height: 27px;
  border-bottom: 1px solid #f0f1f2;
  color: #333b41;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  scroll-margin: 90px;
}
.diff-row:last-child { border-bottom: 0; }
.diff-line-no { padding: 4px 8px 4px 4px; color: #a0a7ad; background: #f7f8f9; text-align: right; user-select: none; }
.diff-code { min-width: 0; padding: 4px 9px; overflow-x: auto; white-space: pre; }
.diff-code + .diff-line-no { border-left: 1px solid #e8eaec; }
.diff-row--same .diff-code { color: #6f777e; }
.diff-row--remove { background: #fff3f1; }
.diff-row--remove .diff-line-no { color: #ad625c; background: #fbe6e3; }
.diff-row--add { background: #f1f9f2; }
.diff-row--add .diff-line-no { color: #568461; background: #e5f2e6; }
.diff-row--change { background: #fff9e9; }
.diff-row--change .diff-line-no { background: #f5edd4; }
.diff-row--active { outline: 2px solid #bf7756; outline-offset: -2px; }
.diff-cell-empty { background: #fafafa; }
.diff-inline-remove { background: #f3c9c4; color: #742d28; text-decoration: line-through; }
.diff-inline-add { background: #cde8d2; color: #205b38; }
.diff-note { margin: 0; padding: 8px 15px; border-top: 1px solid #ece6d4; background: #fbf8ef; color: #74613a; font-size: 11px; }
.diff-error { padding: 18px; color: #8d3c35; font-size: 12px; }

@media (max-width: 760px) {
  .diff-workbench { margin-left: -2px; margin-right: -2px; }
  .diff-actions { align-items: flex-start; flex-direction: column; }
  .diff-options { padding: 1px 0; }
  .diff-editors { grid-template-columns: 1fr; }
  .diff-editor { padding: 12px; }
  .diff-editor + .diff-editor { border-top: 1px solid #e1e5e8; border-left: 0; }
  .diff-workbench .diff-editor textarea { min-height: 170px; }
  .diff-results-heading { align-items: flex-start; flex-direction: column; }
  .diff-result-actions { width: 100%; }
  .diff-result-actions .btn { flex: 1; }
  .diff-output { max-height: 560px; }
}
