.file-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.drop-zone {
  min-height: 184px;
}

.key-controls {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-canvas);
  padding: 18px;
  background: var(--clean-surface);
}

.key-controls legend {
  padding: 0 6px;
  font-size: 18px;
  font-weight: 750;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.section-heading p,
.table-note {
  margin: 5px 0 0;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.45;
}

.review-table-shell {
  max-height: 430px;
}

.review-select {
  min-width: 150px;
}

.change-type {
  font-weight: 750;
  text-transform: capitalize;
}

.key-value {
  max-width: 28ch;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.danger-button {
  color: var(--danger);
}

.empty-table-message {
  margin: 0;
  padding: 18px;
  color: var(--muted-ink);
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .input-pair,
  .key-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading .button-row {
    width: 100%;
  }

  .section-heading .button-row button {
    flex: 1 1 auto;
  }
}

@media (forced-colors: active) {
  .key-controls {
    border-color: CanvasText;
  }
}
