/* Website migration page (/migration) */
#migrationSteps { max-width: none; }
.wsMigrationShell { width: 100%; max-width: 1280px; margin: 0 auto; }

.wsMigrationAlert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; margin-bottom: 28px;
  border: 1px solid #fed7aa; border-radius: 10px;
  background: #fff7ed; color: #9a3412;
  font-size: 14px; font-weight: 600; line-height: 1.5;
}

.wsMigrationStepper {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 auto 40px; max-width: 720px;
}
.wsMigrationStep {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; position: relative; color: #94a3b8; font-size: 12px; font-weight: 700;
}
.wsMigrationStep::after {
  content: ""; position: absolute; top: 15px; left: calc(50% + 22px);
  width: calc(100% - 44px); height: 2px; background: #e2e8f0; border-radius: 2px;
}
.wsMigrationStep:last-child::after { display: none; }
.wsStepNum {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b;
  font-size: 13px; font-weight: 800;
}
.wsMigrationStep.isActive { color: #0066ff; }
.wsMigrationStep.isActive .wsStepNum { background: #0066ff; border-color: #0066ff; color: #fff; box-shadow: 0 6px 16px rgba(0, 102, 255, .25); }
.wsMigrationStep.isDone .wsStepNum { background: #0f9d6e; border-color: #0f9d6e; color: #fff; }
.wsMigrationStep.isDone::after { background: #0f9d6e; }

.wsMigrationPanel { display: none; }
.wsMigrationPanel.isActive { display: block; animation: wsFadeIn .25s ease; }
@keyframes wsFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wsMigrationPanelHead { text-align: center; max-width: 700px; margin: 0 auto 32px; }
.wsMigrationTitle { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); color: #0f172a; letter-spacing: -.02em; }
.wsMigrationSub { margin: 0; color: #64748b; font-size: 15px; line-height: 1.6; }

.wsGoogleCard {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; max-width: none; margin: 0 auto 26px; padding: 22px 26px;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, .35);
}
.wsGoogleText { display: flex; align-items: center; gap: 14px; }
.wsGoogleText div { display: flex; flex-direction: column; gap: 3px; }
.wsGoogleText strong { font-size: 15px; color: #0f172a; }
.wsGoogleText span { font-size: 13px; color: #64748b; }
.wsGoogleIcon { font-size: 22px; color: #4285f4; }
.wsGoogleButton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 8px; border: 1px solid #cbd5e1;
  background: #fff; color: #0f172a; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.wsGoogleButton:hover { border-color: #94a3b8; box-shadow: 0 4px 14px -6px rgba(15,23,42,.3); }
.wsGoogleButton.isDisabled { opacity: .55; cursor: not-allowed; }
.wsGoogleNote { margin: 0; max-width: 300px; text-align: left; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.wsGoogleButton { flex-shrink: 0; white-space: nowrap; }

.wsAuthDivider {
  display: flex; align-items: center; gap: 16px; width: 100%; margin: 0 auto 26px;
  color: #94a3b8; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.wsAuthDivider::before, .wsAuthDivider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

.wsAuthGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 0 auto; }
.wsAuthCard {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, .4);
}
.wsAuthCard h3 { margin: 0; font-size: 19px; color: #0f172a; }
.wsAuthHint { margin: -6px 0 4px; font-size: 13px; color: #64748b; line-height: 1.5; }

.wsField { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; }
.wsField small, .wsFieldHint { font-size: 12px; font-weight: 500; color: #64748b; line-height: 1.4; }
.wsFieldHint { display: block; }
.wsFieldset { border: 0; padding: 0; margin: 0 0 22px; }
.wsFieldset legend { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.wsFieldGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.wsFormMessage { min-height: 18px; margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #b42318; }
.wsFormMessage[data-tone="ok"] { color: #0f9d6e; }

.wsMigrationPrimary, .wsMigrationGhost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 8px; font-size: 14.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.wsMigrationPrimary { border: 0; background: #0066ff; color: #fff; box-shadow: 0 10px 24px -12px rgba(0,102,255,.7); }
.wsMigrationPrimary:hover { background: #0052cc; }
.wsMigrationPrimary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.wsMigrationGhost { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.wsMigrationGhost:hover { border-color: #94a3b8; }
.wsAuthCard .wsMigrationPrimary { width: 100%; margin-top: 4px; }

.wsMigrationActions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.wsMigrationFinePrint { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 12.5px; color: #94a3b8; line-height: 1.5; }

.wsMigrationUserBar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; margin: 0 auto 20px; padding: 12px 18px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
  font-size: 13.5px; color: #475569; font-weight: 600;
}
.wsLinkButton { border: 0; background: none; color: #0066ff; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.wsLinkButton:hover { text-decoration: underline; }

.wsPackageGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.wsPackageCard {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border: 1.5px solid #e2e8f0; border-radius: 16px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.wsPackageCard:hover { border-color: #bfdbfe; box-shadow: 0 18px 40px -30px rgba(15,23,42,.5); }
.wsPackageCard.isSelected { border-color: #0066ff; box-shadow: 0 0 0 3px rgba(0,102,255,.12); }
.wsPackageHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wsPackageHead h3 { margin: 0; font-size: 19px; color: #0f172a; }
.wsPackageBadge { padding: 4px 10px; border-radius: 999px; background: #e0eeff; color: #0052cc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.wsPackageFeatures { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wsPackageFeatures li { position: relative; padding-left: 20px; font-size: 13px; color: #475569; line-height: 1.45; }
.wsPackageFeatures li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; font-size: 11px; color: #0f9d6e; }
.wsPackagePrices { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wsPackagePrices .wsPriceOption:only-of-type { grid-column: 1 / -1; }
.wsPriceOption {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  min-width: 0; min-height: 96px; padding: 12px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.wsPriceOption:hover { border-color: #93c5fd; }
.wsPriceOption.isSelected { border-color: #0066ff; background: #f0f7ff; }
.wsPriceOption strong { font-size: 14px; color: #0f172a; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wsPriceOption span { font-size: 11.5px; color: #64748b; font-weight: 600; }
.wsPriceOption em { margin-top: 4px; font-size: 11px; font-weight: 800; color: #0f9d6e; font-style: normal; }
.wsPackageDest { margin: 0; font-size: 12px; color: #94a3b8; font-weight: 600; }

.wsMigrationSelection {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  width: 100%; margin: 0 auto 24px; padding: 14px 18px;
  border: 1px solid #dbeafe; border-radius: 10px; background: #f0f7ff;
  font-size: 13px; color: #475569;
}
.wsMigrationSelection strong { color: #0f172a; font-size: 15px; }
.wsMigrationSelection span:last-child { margin-left: auto; color: #0052cc; font-weight: 800; }

#migrationForm { width: 100%; margin: 0 auto; padding: 28px; border: 1px solid #e2e8f0; border-radius: 16px; }
.wsPanelChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wsPanelChoice { position: relative; display: block; cursor: pointer; }
.wsPanelChoice input { position: absolute; opacity: 0; pointer-events: none; }
.wsPanelChoiceBody {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.wsPanelChoiceBody strong { color: #0f172a; font-size: 15px; }
.wsPanelChoiceBody span { color: #64748b; font-size: 12.5px; line-height: 1.45; }
.wsPanelChoice input:checked + .wsPanelChoiceBody { border-color: #0066ff; box-shadow: 0 0 0 3px rgba(0,102,255,.12); background: #f8fbff; }

.wsBillingCycle { margin: 22px 0 6px; }
.wsFieldLabel { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.wsCycleOptions { display: flex; gap: 12px; }
.wsCycle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; color: #334155; cursor: pointer; }
.wsCycle input { accent-color: #0066ff; }
.wsCycle:has(input:checked) { border-color: #0066ff; background: #f0f7ff; color: #0052cc; }
.wsCycle:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.wsProgressCard { width: 100%; margin: 0 auto; padding: 26px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px -35px rgba(15,23,42,.45); }
.wsProgressTop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wsProgressStatus { font-size: 14px; font-weight: 800; color: #0052cc; }
.wsProgressPercent { font-size: 14px; font-weight: 800; color: #0f172a; }
.wsProgressTrack { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.wsProgressBar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #0066ff, #38bdf8); transition: width .5s ease; }
.wsProgressBar[data-tone="done"] { background: linear-gradient(90deg, #0f9d6e, #34d399); }
.wsProgressBar[data-tone="error"] { background: linear-gradient(90deg, #b42318, #f97066); }
.wsProgressStep { margin: 14px 0 18px; font-size: 13.5px; color: #475569; font-weight: 600; }
.wsProgressMeta { display: grid; gap: 8px; margin-bottom: 20px; }
.wsProgressMeta div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #e2e8f0; font-size: 12.5px; }
.wsProgressMeta span { color: #94a3b8; font-weight: 600; }
.wsProgressMeta strong { color: #334155; font-weight: 700; text-align: right; word-break: break-word; }
.wsProgressLog .wsProgressLogTitle { margin: 0 0 10px; font-size: 13px; color: #334155; }
.wsProgressLog ul { list-style: none; margin: 0; padding: 12px 14px; max-height: 220px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 6px; }
.wsProgressLog li { display: flex; gap: 10px; font-size: 12.5px; color: #475569; line-height: 1.45; }
.wsProgressLog time { flex: none; color: #94a3b8; font-variant-numeric: tabular-nums; }
.wsProgressActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wsLoading { color: #64748b; font-size: 14px; }

.wsMigrationInfo { padding: 76px 24px; border-top: 1px solid #e2e8f0; }
.wsMigrationInfo.isTinted { background: #f5f9ff; }
.wsMigrationInfoInner { max-width: 1280px; margin: 0 auto; }
.wsMigrationInfoHead { max-width: 720px; margin-bottom: 32px; }
.wsMigrationEyebrow { display: block; margin-bottom: 12px; color: #0066ff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wsMigrationInfo h2 { margin: 0 0 14px; color: #0f172a; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
.wsMigrationInfo p { color: #64748b; font-size: 14px; line-height: 1.75; margin: 0; }
.wsMigrationInfoGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.wsMigrationInfoCard { padding: 26px; background: #fff; border: 1px solid #dce6f3; border-radius: 16px; }
.wsMigrationInfoCard h3 { margin: 18px 0 10px; font-size: 18px; color: #0f172a; }
.wsMigrationInfoIcon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: #edf4ff; color: #0066ff; font-size: 18px; }
.wsMigrationGuideGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.wsMigrationChecklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.wsMigrationChecklist li { display: flex; gap: 12px; color: #475569; font-size: 14px; line-height: 1.65; }
.wsMigrationChecklist li > span { margin-top: 5px; color: #0f9d6e; flex-shrink: 0; }
.wsMigrationChecklist strong { display: block; color: #0f172a; margin-bottom: 2px; }
.wsMigrationGuideNote { padding: 30px; border-radius: 18px; background: #f5f9ff; border: 1px solid #dbeafe; }
.wsMigrationGuideNote h3 { color: #0f172a; font-size: 21px; margin: 0 0 14px; }
.wsMigrationGuideNote p + p { margin-top: 16px; }
.wsMigrationGuideNote a { display: inline-block; margin-top: 24px; color: #0066ff; font-weight: 700; font-size: 14px; }
.wsMigrationFaq { display: grid; gap: 12px; }
.wsMigrationFaq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wsMigrationFaq article { border: 1px solid #dce6f3; border-radius: 12px; padding: 24px; background: #fff; }
.wsMigrationFaq h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.5; }
.wsMigrationFaq article p { max-width: 960px; }
.wsMigrationHelp { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px; border: 1px solid #dbeafe; border-radius: 18px; background: #f5f9ff; }
.wsMigrationHelp h2 { font-size: 27px; }
.wsMigrationHelp .wsMigrationPrimary { flex-shrink: 0; }
.wsPriceOption:focus-visible, .wsGoogleButton:focus-visible, .wsMigrationFaq summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }

@media (max-width: 1020px) {
  .wsMigrationInfoGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsGoogleCard { flex-wrap: wrap; }
  .wsGoogleNote { max-width: none; flex-basis: 100%; }
}

@media (max-width: 760px) {
  .wsAuthGrid, .wsFieldGrid, .wsPanelChoices { grid-template-columns: 1fr; }
  .wsGoogleCard { flex-direction: column; align-items: flex-start; }
  .wsMigrationStep { font-size: 11px; }
  .wsStepLabel { display: none; }
  .wsMigrationStepper { max-width: 320px; }
  .wsMigrationActions { justify-content: stretch; }
  .wsMigrationActions > * { flex: 1; }
  .wsProgressCard { padding: 20px; }
  #migrationForm { padding: 20px; }
  .wsMigrationUserBar { flex-wrap: wrap; overflow-wrap: anywhere; }
  .wsMigrationGuideGrid, .wsMigrationInfoGrid, .wsMigrationFaq { grid-template-columns: 1fr; gap: 20px; }
  .wsMigrationInfo { padding: 48px 20px; }
  .wsMigrationHelp { flex-direction: column; align-items: flex-start; padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .wsMigrationPanel.isActive { animation: none; }
}
