.controls {
  display: flex;
  gap: 1.5em;
  margin: 1em 0 1.5em;
  align-items: center;
  flex-wrap: wrap;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.diff-summary {
  margin: 0.5em 0 1em;
  font-size: 0.95em;
  color: #333;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.diff-table th {
  width: 50%;
  padding: 6px 8px;
  text-align: left;
  background: #f0f0f0;
  border: 1px solid #ccc;
  font-family: sans-serif;
  font-size: 0.95em;
}

.diff-table td {
  width: 50%;
  padding: 1px 6px;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e8e8e8;
}

.diff-removed {
  background: #ffd7d5;
}

.diff-added {
  background: #ccffd8;
}

.diff-changed-left {
  background: #fff0c0;
}

.diff-changed-right {
  background: #d8f0ff;
}

.diff-table tr:hover td {
  filter: brightness(0.95);
}

#diff-status {
  color: #666;
  font-style: italic;
  margin: 0.5em 0;
}

.diff-no-changes {
  color: #555;
  margin: 1em 0;
}
