.ipwh-migration-checker-section,
.ipwh-migration-checker-section * {
  box-sizing: border-box;
}

.ipwh-migration-checker-section {
  padding: 82px 0;
  scroll-margin-top: 100px;
  background:
    radial-gradient(circle at 12% 10%, rgba(129, 34, 31, 0.08), transparent 31%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ipwh-migration-checker-head {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.ipwh-migration-checker-kicker {
  margin: 0 0 10px;
  color: #81221f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipwh-migration-checker-head h2 {
  margin: 0;
  color: #142033;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ipwh-migration-checker-intro {
  margin: 16px auto 0;
  color: #56657a;
  font-size: 17px;
  line-height: 1.7;
}

.ipwh-migration-checker-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}

.ipwh-migration-checker-card,
.ipwh-migration-checker-note {
  border: 1px solid #dce3ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(20, 32, 51, 0.09);
}

.ipwh-migration-checker-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.ipwh-migration-checker-note {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-top: 4px solid #81221f;
}

.ipwh-migration-checker-note h3 {
  margin: 0 0 10px;
  color: #142033;
  font-size: 18px;
  line-height: 1.35;
}

.ipwh-migration-checker-note p {
  margin: 0;
  color: #5d6a7c;
  font-size: 13px;
  line-height: 1.7;
}

.ipwh-migration-checker-note p + p {
  margin-top: 14px;
}

.ipwh-migration-checker-note a {
  color: #81221f;
  font-weight: 800;
}

.ipwh-migration-checker-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: #526074;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ipwh-migration-checker-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf1;
}

.ipwh-migration-checker-progress-bar {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #81221f, #b1443f);
  transition: width 180ms ease;
}

.ipwh-migration-checker-panel {
  min-width: 0;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}

.ipwh-migration-checker-panel[hidden],
.ipwh-migration-checker-result[hidden] {
  display: none;
}

.ipwh-migration-checker-panel legend {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #142033;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ipwh-migration-checker-help {
  margin: 10px 0 24px;
  color: #607086;
  font-size: 14px;
  line-height: 1.65;
}

.ipwh-migration-checker-field + .ipwh-migration-checker-field {
  margin-top: 24px;
}

.ipwh-migration-checker-options > .ipwh-migration-checker-field + .ipwh-migration-checker-field {
  margin-top: 0;
}

.ipwh-migration-checker-label {
  display: block;
  margin-bottom: 9px;
  color: #26354a;
  font-size: 14px;
  font-weight: 800;
}

.ipwh-migration-checker-select {
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #142033;
  background: #ffffff;
  font: 700 15px/1.3 Arial, sans-serif;
}

.ipwh-migration-checker-select:focus,
.ipwh-migration-checker-option input:focus-visible + span {
  border-color: #81221f;
  outline: 3px solid rgba(129, 34, 31, 0.14);
  outline-offset: 2px;
}

.ipwh-migration-checker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ipwh-migration-checker-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.ipwh-migration-checker-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ipwh-migration-checker-option span {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 14px 15px 14px 45px;
  border: 1px solid #d5dde7;
  border-radius: 12px;
  color: #35445a;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ipwh-migration-checker-option span::before {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid #a9b4c3;
  border-radius: 50%;
  content: "";
}

.ipwh-migration-checker-option input[type="checkbox"] + span::before {
  border-radius: 5px;
}

.ipwh-migration-checker-option input:checked + span {
  border-color: rgba(129, 34, 31, 0.52);
  color: #6f1b18;
  background: #fcf5f4;
  box-shadow: inset 0 0 0 1px rgba(129, 34, 31, 0.12);
}

.ipwh-migration-checker-option input:checked + span::before {
  border-color: #81221f;
  background: #81221f;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.ipwh-migration-checker-option input[type="checkbox"]:checked + span::before {
  box-shadow: inset 0 0 0 3px #ffffff;
}

.ipwh-migration-checker-error {
  min-height: 22px;
  margin: 18px 0 0;
  color: #a1201b;
  font-size: 13px;
  font-weight: 800;
}

.ipwh-migration-checker-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e4e9f0;
}

.ipwh-migration-checker-button,
.ipwh-migration-checker-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #81221f;
  border-radius: 10px;
  background: #81221f;
  color: #ffffff;
  cursor: pointer;
  font: 800 14px/1 Arial, sans-serif;
  text-decoration: none;
}

.ipwh-migration-checker-button:hover,
.ipwh-migration-checker-button:focus-visible,
.ipwh-migration-checker-link:hover,
.ipwh-migration-checker-link:focus-visible {
  border-color: #5f1714;
  background: #5f1714;
  color: #ffffff;
  outline: 3px solid rgba(129, 34, 31, 0.18);
  outline-offset: 2px;
}

.ipwh-migration-checker-button-secondary,
.ipwh-migration-checker-link-secondary {
  border-color: #cbd5e1;
  color: #35445a;
  background: #ffffff;
}

.ipwh-migration-checker-button-secondary:hover,
.ipwh-migration-checker-button-secondary:focus-visible,
.ipwh-migration-checker-link-secondary:hover,
.ipwh-migration-checker-link-secondary:focus-visible {
  border-color: #81221f;
  color: #81221f;
  background: #fcf5f4;
}

.ipwh-migration-checker-result {
  outline: none;
}

.ipwh-migration-checker-result-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #7a1f1b;
  background: #f8e7e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipwh-migration-checker-result[data-status="likely-included"] .ipwh-migration-checker-result-badge {
  color: #14623c;
  background: #e5f5ec;
}

.ipwh-migration-checker-result[data-status="outside-scope"] .ipwh-migration-checker-result-badge {
  color: #8a3d09;
  background: #fff0df;
}

.ipwh-migration-checker-result h3 {
  margin: 17px 0 10px;
  color: #142033;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.ipwh-migration-checker-result-summary {
  margin: 0;
  color: #526176;
  font-size: 16px;
  line-height: 1.7;
}

.ipwh-migration-checker-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.ipwh-migration-checker-result-panel {
  padding: 20px;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #f8fafc;
}

.ipwh-migration-checker-result-panel h4 {
  margin: 0 0 10px;
  color: #25354a;
  font-size: 15px;
}

.ipwh-migration-checker-result-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #59687d;
  font-size: 13px;
  line-height: 1.55;
}

.ipwh-migration-checker-disclaimer {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #81221f;
  border-radius: 8px;
  color: #5b687b;
  background: #fcf5f4;
  font-size: 12px;
  line-height: 1.65;
}

.ipwh-migration-checker-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(196, 75, 69, 0.13), transparent 31%),
    linear-gradient(180deg, #101927 0%, #0b121d 100%);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-kicker,
html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-note a {
  color: #e49a96;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-head h2,
  .ipwh-migration-checker-note h3,
  .ipwh-migration-checker-panel legend,
  .ipwh-migration-checker-label,
  .ipwh-migration-checker-result h3,
  .ipwh-migration-checker-result-panel h4
) {
  color: #f3f6fb;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-intro,
  .ipwh-migration-checker-note p,
  .ipwh-migration-checker-help,
  .ipwh-migration-checker-result-summary,
  .ipwh-migration-checker-result-panel ul
) {
  color: #b6c0cf;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-card,
  .ipwh-migration-checker-note
) {
  border-color: #2b3748;
  background: #141e2d;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-note {
  border-top-color: #bf4b45;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-progress-head {
  color: #aeb9c8;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-progress-track {
  background: #29384b;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-progress-bar {
  background: linear-gradient(90deg, #a73530, #e49a96);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-select {
  border-color: #39475b;
  color: #f3f6fb;
  background: #101927;
  color-scheme: dark;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-select:focus,
html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option input:focus-visible + span {
  border-color: #e49a96;
  outline-color: rgba(228, 154, 150, 0.3);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option span {
  border-color: #39475b;
  color: #d6deea;
  background: #101927;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option span::before {
  border-color: #738197;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option input:checked + span {
  border-color: #bf5a54;
  color: #ffc1bd;
  background: #321d23;
  box-shadow: inset 0 0 0 1px rgba(228, 154, 150, 0.16);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option input:checked + span::before {
  border-color: #e49a96;
  background: #bf4b45;
  box-shadow: inset 0 0 0 4px #321d23;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-option input[type="checkbox"]:checked + span::before {
  box-shadow: inset 0 0 0 3px #321d23;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-error {
  color: #ffaaa4;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-actions {
  border-top-color: #2b3748;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button:not(.ipwh-migration-checker-button-secondary),
  .ipwh-migration-checker-link:not(.ipwh-migration-checker-link-secondary)
) {
  border-color: #bf4b45;
  color: #ffffff;
  background: #8f2925;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button:not(.ipwh-migration-checker-button-secondary),
  .ipwh-migration-checker-link:not(.ipwh-migration-checker-link-secondary)
):hover,
html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button:not(.ipwh-migration-checker-button-secondary),
  .ipwh-migration-checker-link:not(.ipwh-migration-checker-link-secondary)
):focus-visible {
  border-color: #d76660;
  color: #ffffff;
  background: #a73530;
  outline-color: rgba(228, 154, 150, 0.32);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button-secondary,
  .ipwh-migration-checker-link-secondary
) {
  border-color: #46556a;
  color: #d6deea;
  background: #141e2d;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button-secondary,
  .ipwh-migration-checker-link-secondary
):hover,
html[data-ipwh-theme="dark"] .ipwh-migration-page :where(
  .ipwh-migration-checker-button-secondary,
  .ipwh-migration-checker-link-secondary
):focus-visible {
  border-color: #e49a96;
  color: #ffc1bd;
  background: #321d23;
  outline-color: rgba(228, 154, 150, 0.3);
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-result-panel {
  border-color: #2b3748;
  background: #101927;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-result-badge {
  color: #ffc1bd;
  background: #43242a;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-result[data-status="likely-included"] .ipwh-migration-checker-result-badge {
  color: #8ee0b8;
  background: #142b25;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-result[data-status="outside-scope"] .ipwh-migration-checker-result-badge {
  color: #f5c47c;
  background: #392b19;
}

html[data-ipwh-theme="dark"] .ipwh-migration-page .ipwh-migration-checker-disclaimer {
  border-left-color: #bf4b45;
  color: #d6deea;
  background: #321d23;
}

@media (max-width: 860px) {
  .ipwh-migration-checker-shell {
    grid-template-columns: 1fr;
  }

  .ipwh-migration-checker-note {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  .ipwh-migration-checker-section {
    padding: 58px 0;
  }

  .ipwh-migration-checker-options,
  .ipwh-migration-checker-result-grid {
    grid-template-columns: 1fr;
  }

  .ipwh-migration-checker-actions,
  .ipwh-migration-checker-result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ipwh-migration-checker-button,
  .ipwh-migration-checker-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ipwh-migration-checker-progress-bar,
  .ipwh-migration-checker-option span {
    transition: none;
  }
}
