.migration-visible { overflow: hidden; }
.migration-overlay { position: fixed; inset: 0; z-index: 10000; overflow-y: auto; padding: 36px 20px; background: #f3f6f4; color: #1d2421; font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; }
.migration-overlay * { box-sizing: border-box; }
.migration-overlay [hidden] { display: none !important; }
.migration-card { width: min(960px, 100%); margin: 0 auto; padding: 32px 40px; border: 1px solid #d9dfdc; border-radius: 14px; background: #fff; box-shadow: 0 14px 45px #1d24210a; }
.migration-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-bottom: 25px; border-bottom: 1px solid #e8edea; }
.migration-header img { display: block; width: 190px; height: auto; }
.migration-tag { padding: 6px 10px; border: 1px solid #d9dfdc; border-radius: 20px; color: #69736e; font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.migration-intro { padding: 28px 0 20px; }
.migration-eyebrow { color: #23856d; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.migration-intro h1 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.migration-intro p { max-width: 650px; margin: 0; color: #69736e; }
.migration-collection { margin: 0 0 24px; padding: 11px 14px; border: 1px solid #e4ddd0; border-radius: 7px; background: #faf7f0; color: #77633e; font-size: 12px; }
.migration-collection.is-collecting { border-color: #d1e6da; background: #edf7f1; color: #1f6c51; }
.migration-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: phase; }
.migration-steps li { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 3px solid #e6ebe8; color: #7c8780; font-size: 11px; }
.migration-steps li::before { counter-increment: phase; content: counter(phase); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef1ef; font-size: 10px; flex-shrink: 0; }
.migration-steps .is-current { border-color: #23856d; color: #1d2421; font-weight: 750; }
.migration-steps .is-current::before { background: #23856d; color: white; }
.migration-steps .is-done { border-color: #9ecdb6; color: #23856d; }
.migration-phase { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.migration-phase h2, .migration-table-heading h2 { margin: 0; font-size: 15px; font-weight: 750; }
.migration-phase strong { color: #23856d; font-size: 18px; }
.migration-progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 10px; margin: 12px 0; overflow: hidden; border: 0; border-radius: 8px; background: #e9eeeb; accent-color: #23856d; }
.migration-progress::-webkit-progress-bar { background: #e9eeeb; border-radius: 8px; }
.migration-progress::-webkit-progress-value { background: #23856d; border-radius: 8px; transition: width .4s ease; }
.migration-progress::-moz-progress-bar { background: #23856d; border-radius: 8px; }
.migration-progress:indeterminate { background: repeating-linear-gradient(110deg, #d5e8dd 0, #d5e8dd 20px, #edf4ef 20px, #edf4ef 40px); }
.migration-status { min-height: 36px; margin: 0; color: #69736e; font-size: 12px; }
.migration-status.is-warning { color: #976525; }
.migration-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 26px; padding: 20px; border: 1px solid #e1e8e3; border-radius: 9px; background: #f8faf8; }
.migration-stats span { display: block; margin-bottom: 7px; color: #69736e; font-size: 11px; }
.migration-stats strong { font-size: clamp(16px, 2vw, 21px); font-variant-numeric: tabular-nums; }
.migration-table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.migration-table-heading > span { color: #69736e; font-size: 11px; }
.migration-table-wrap { max-height: 300px; overflow: auto; border: 1px solid #e1e8e3; border-radius: 7px; }
.migration-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.migration-table th, .migration-table td { padding: 11px 14px; border-bottom: 1px solid #edf0ee; text-align: left; }
.migration-table thead th { position: sticky; top: 0; background: #f7f9f7; color: #69736e; font-size: 10px; font-weight: 650; }
.migration-table tbody th { font-weight: 550; }
.migration-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.migration-table td:last-child { color: #69736e; font-size: 11px; }
.migration-table td.migration-done { color: #23856d; font-weight: 650; }
.migration-empty { margin: 0; padding: 20px; color: #69736e; font-size: 12px; }
.migration-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: #7a867e; font-size: 10px; }
.migration-footer p { max-width: 500px; margin: 0; }
@media (max-width: 600px) {
  .migration-overlay { padding: 12px; }
  .migration-card { padding: 22px 18px; border-radius: 10px; }
  .migration-header img { width: 155px; }
  .migration-tag { font-size: 8px; }
  .migration-stats { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .migration-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .migration-stats span { max-width: 55%; margin: 0; }
  .migration-stats strong { text-align: right; }
  .migration-steps { gap: 5px; }
  .migration-steps li { flex-direction: column; align-items: flex-start; font-size: 10px; }
  .migration-table-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .migration-progress::-webkit-progress-value { transition: none; } }
