.command-history { min-width: 0; }
.command-history-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 14px 0; font-size: 12px; }
.command-history-controls select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.command-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.command-diff-pane { min-width: 0; }
.command-diff-pane h4 { font-size: 12px; margin: 8px 0; }
.command-diff-text { margin: 0; min-height: 100px; max-height: 340px; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-diff-removed { background: #fbe4e4; color: #8b2525; text-decoration: line-through; }
.command-diff-added { background: #dcf2e5; color: #145f38; text-decoration: underline; text-decoration-style: dotted; }
.command-diff-empty { color: var(--muted); }
.command-diff-status { margin: 12px 0 8px; }
.command-diff-key { display: inline-block; margin-left: 8px; padding: 1px 4px; }
.command-diff-warning { color: #885b13; }
@media (max-width: 640px) {
  .command-history-controls { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .command-diff-grid { grid-template-columns: minmax(0, 1fr); }
  .command-diff-text { min-height: 72px; max-height: 220px; }
}
