.compact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.compact-actions button { white-space: nowrap; }
.wide-dialog { width: min(920px, calc(100vw - 32px)); }
.source-notice {
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: #f8fafb;
  color: var(--muted);
}
.source-notice.ready { border-color: #b7dfd0; background: #f3fbf7; color: var(--green); }
.source-notice.error { border-color: #efbaba; background: #fff5f5; color: var(--red); }
.mapping-head { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.mapping-head span { font-size: 12px; color: var(--muted); }
.mapping-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 300px; overflow: auto; }
.mapping-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); }
.mapping-row label { font-weight: 600; }
.mapping-row label em { color: var(--red); font-style: normal; }
.file-picker { display: flex; align-items: center; gap: 12px; border: 1px dashed #9cabad; padding: 18px; margin-bottom: 12px; }
.file-picker span { font-weight: 700; }
.import-preview { min-height: 170px; max-height: 360px; border: 1px solid var(--line); }
.import-preview .invalid td { background: #fff5f5; color: var(--red); }
@media (max-width: 700px) {
  .mapping-grid { grid-template-columns: 1fr; }
  .compact-actions { justify-content: flex-start; }
  .panel-head { flex-direction: column; }
}
