.migration-workspace { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.migration-workspace > *, .migration-workspace .settings-panel__header > div { min-width: 0; }
.migration-workspace p { line-height: 1.5; }
.migration-muted { color: var(--heirlo-muted, #5d6b82); font-size: 13px; }
.migration-steps { color: #7c2d42; font-weight: 600; font-size: 13px; margin: 18px 0; }
.migration-notice { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.migration-grid, .migration-mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.migration-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; min-width: 0; }
.migration-field input:not([type="checkbox"]), .migration-field select { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--heirlo-border-strong, #cbd3e1); border-radius: 8px; background: white; color: var(--heirlo-navy, #172033); box-sizing: border-box; }
.migration-field small { overflow-wrap: anywhere; }
.migration-field:has(input[type="checkbox"]) { flex-direction: row-reverse; align-items: start; justify-content: start; margin: 18px 0; }
.migration-field input[type="checkbox"] { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 16px; padding: 0; }
.migration-field:has(input[type="checkbox"]) > span { min-width: 0; flex: 1; }
.migration-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.migration-workspace button:disabled { opacity: .55; cursor: not-allowed; }
.migration-workspace :focus-visible { outline: 2px solid #7c2d42; outline-offset: 3px; }
.migration-table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--heirlo-border, #e2e7f0); border-radius: 8px; margin: 14px 0; }
.migration-table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.migration-table th, .migration-table td { padding: 10px; border-bottom: 1px solid var(--heirlo-border, #e2e7f0); vertical-align: top; overflow-wrap: anywhere; min-width: 85px; max-width: 300px; }
.migration-table th { position: sticky; top: 0; background: var(--heirlo-canvas, #f5f7fb); color: var(--heirlo-text-secondary, #475569); }
.migration-table p { margin: 0 0 6px; }
.migration-table dt { font-weight: 600; margin-top: 6px; }
.migration-table dd { margin: 0; }
.migration-error { color: #b91c1c; }
.migration-history { margin-top: 22px; border-top: 1px solid var(--heirlo-border, #e2e7f0); padding-top: 16px; }
.migration-history summary, .migration-table summary { cursor: pointer; }
.migration-history button { display: block; margin-top: 10px; text-align: left; }
@media (max-width: 600px) { .migration-grid, .migration-mapping { grid-template-columns: 1fr; } }

.migration-export { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--heirlo-border, #e2e7f0); }
.migration-export h4 { margin: 0 0 8px; }
