.migration-intake {
  width: min(980px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #e3e7ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}
.migration-intake[hidden] {
  display: none;
}
.migration-intake-head {
  max-width: 720px;
  margin-bottom: 26px;
}
.migration-intake-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}
.migration-intake-head p {
  margin: 0;
  color: #667085;
}
.migration-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.migration-option {
  display: block;
  border: 1px solid #dfe3ea;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.migration-option:hover,
.migration-option:has(input:checked) {
  border-color: #8eb8ff;
  box-shadow: 0 16px 34px rgba(92, 134, 255, 0.14);
  transform: translateY(-2px);
}
.migration-option input {
  margin: 0 0 14px;
}
.migration-option strong {
  display: block;
  font-size: 1.05rem;
}
.migration-option small {
  display: block;
  margin-top: 8px;
  color: #667085;
  line-height: 1.45;
}
.migration-recommended {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7efff;
  color: #2858a5;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.migration-detail {
  margin-top: 20px;
  padding: 22px;
  border-radius: 20px;
  background: #f8faff;
  border: 1px solid #e3eaff;
}
.migration-detail[hidden] {
  display: none;
}
.migration-dropzone {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed #9cbcff;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f2f6ff);
  text-align: center;
}
.migration-dropzone input {
  max-width: 100%;
}
.migration-file-summary {
  margin: 12px 0 0;
  color: #46536a;
}
.migration-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.migration-business-grid label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}
.migration-business-grid label:last-child {
  grid-column: 1/-1;
}
.migration-business-grid input {
  min-height: 48px;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}
.migration-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.migration-actions p {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
}
.migration-actions .button {
  white-space: nowrap;
}
.migration-progress-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #eef4ff;
  color: #315d9d;
  font-weight: 750;
}
@media (max-width: 760px) {
  .migration-options,
  .migration-business-grid {
    grid-template-columns: 1fr;
  }
  .migration-business-grid label:last-child {
    grid-column: auto;
  }
  .migration-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .migration-actions .button {
    width: 100%;
  }
}
/* Panderr Design System — template-first new website flow */

.panderr-template-gallery {
  width: min(1180px, calc(100% - 40px));
  margin: 52px auto 80px;
}

.panderr-template-gallery[hidden] {
  display: none;
}

.panderr-template-gallery-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.panderr-template-gallery-head h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #172033;
}

.panderr-template-gallery-head > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: #667085;
  font-size: 1.05rem;
  line-height: 1.65;
}

.panderr-template-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.panderr-template-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #deded8;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.08);
}

.panderr-template-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #eef0ec;
}

.panderr-template-visual-image {
  position: absolute;
  inset: 0;
}

.panderr-template-visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panderr-template-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 34, 0.02) 35%,
    rgba(8, 18, 34, 0.74) 100%
  );
  pointer-events: none;
}

.panderr-template-visual-copy {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff;
}

.panderr-template-visual-copy span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panderr-template-visual-copy strong {
  display: block;
  max-width: 12ch;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.panderr-template-visual-copy em {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-style: normal;
  opacity: 0.88;
}

.panderr-template-card-copy {
  display: block;
  padding: 24px;
}

.panderr-template-card-copy h2 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.panderr-template-card-copy > div:first-child > p:last-child {
  margin: 0;
  color: #666a65;
  font-size: 0.94rem;
  line-height: 1.55;
}

.panderr-template-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.panderr-template-card-actions .button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .panderr-template-card {
    width: 100%;
  }

  .panderr-template-visual {
    height: 220px;
  }

  .panderr-template-card-actions {
    flex-direction: column;
  }

  .panderr-template-card-actions .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .panderr-template-visual {
    grid-template-columns: 1fr;
  }

  .panderr-template-visual-image,
  .panderr-template-visual-image img {
    min-height: 360px;
  }

  .panderr-template-card-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .panderr-template-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .panderr-template-visual-copy {
    padding: 28px 22px;
  }

  .panderr-template-visual-copy strong {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .panderr-template-visual-image,
  .panderr-template-visual-image img {
    min-height: 280px;
  }

  .panderr-template-gallery {
    width: min(100% - 24px, 1180px);
    margin-top: 30px;
  }

  .panderr-template-gallery-head h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .panderr-template-card {
    border-radius: 20px;
  }

  .panderr-template-card-copy {
    padding: 22px;
  }

  .panderr-template-card-actions {
    width: 100%;
    flex-direction: column;
  }

  .panderr-template-card-actions .button {
    width: 100%;
  }
}

/* Template discovery controls */

.panderr-template-gallery-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
}

.panderr-template-search {
  flex: 1 1 280px;
  max-width: 420px;
}

.panderr-template-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #d9ddd7;
  border-radius: 999px;
  background: #fff;
  color: #181a1c;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.panderr-template-search input:focus {
  border-color: #181a1c;
  box-shadow: 0 0 0 3px rgba(24, 26, 28, 0.08);
}

.panderr-template-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.panderr-template-filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d9ddd7;
  border-radius: 999px;
  background: #fff;
  color: #444842;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.panderr-template-filter:hover {
  border-color: #181a1c;
  color: #181a1c;
}

.panderr-template-filter.is-active {
  border-color: #181a1c;
  background: #181a1c;
  color: #fff;
}

.panderr-template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.panderr-template-card {
  width: 100%;
  height: 100%;
}

.panderr-template-card[hidden] {
  display: none;
}

.panderr-template-card-copy {
  display: flex;
  height: calc(100% - 260px);
  flex-direction: column;
  justify-content: space-between;
}

.panderr-template-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed #d9ddd7;
  border-radius: 22px;
  text-align: center;
  color: #666a65;
}

.panderr-template-empty strong,
.panderr-template-empty span {
  display: block;
}

.panderr-template-empty strong {
  margin-bottom: 6px;
  color: #181a1c;
  font-size: 1.15rem;
}

@media (max-width: 860px) {
  .panderr-template-gallery-grid {
    grid-template-columns: 1fr;
  }

  .panderr-template-gallery-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .panderr-template-search {
    max-width: none;
  }

  .panderr-template-filters {
    justify-content: flex-start;
  }

  .panderr-template-card-copy {
    height: auto;
  }
}

/* Migration Preview template chooser */

.panderr-preview-template-chooser {
  width: min(100% - 48px, 1180px);
  margin: 34px auto 0;
  padding: 30px;
  border: 1px solid #e4e4df;
  border-radius: 24px;
  background: #fff;
}

.panderr-preview-template-chooser-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.panderr-preview-template-chooser-head h2 {
  margin: 4px 0 8px;
}

.panderr-preview-template-chooser-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: #666a65;
}

.panderr-preview-template-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.panderr-preview-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panderr-preview-template-card {
  overflow: hidden;
  border: 1px solid #e5e5df;
  border-radius: 20px;
  background: #fff;
}

.panderr-preview-template-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.panderr-preview-template-card > div {
  padding: 22px;
}

.panderr-preview-template-card h3 {
  margin: 5px 0 8px;
}

.panderr-preview-template-card > div > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: #666a65;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .panderr-preview-template-chooser {
    width: min(100% - 24px, 1180px);
    padding: 22px;
  }

  .panderr-preview-template-chooser-head {
    flex-direction: column;
  }

  .panderr-preview-template-grid {
    grid-template-columns: 1fr;
  }
}
