html:has(body.pairing) { background: #0b1423; }

body.pairing {
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 49rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: #f2f8fc;
  background: radial-gradient(ellipse 38rem 28rem at 50% -10rem, #18476b 0%, #0b1423 72%);
  line-height: 1.55;
}

.pairing .brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pairing .brand-home {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #f2f8fc;
  text-decoration: none;
}

.pairing .brand-logo {
  flex: none;
  width: 14rem;
  height: auto;
  max-width: 100%;
  border-radius: .65rem;
  object-fit: contain;
  filter: drop-shadow(0 .4rem .75rem #02081280);
}

.pairing .brand-copy strong,
.pairing .brand-copy small {
  display: block;
}

.pairing .brand-copy strong {
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.pairing .brand-copy small {
  margin-top: .2rem;
  color: #a9c4d5;
  font-size: .84rem;
  line-height: 1.3;
}

.pairing .languages {
  justify-content: flex-start;
  gap: .28rem;
  margin: 0;
  font-size: .82rem;
}

.pairing .languages span { color: #aec4d4; }
.pairing .languages a { border-color: #46637a; }
.pairing .languages a[aria-current=page] {
  color: #eafcff;
  background: #20475b;
  border-color: #8cebf5;
}

.pairing .page-main {
  padding: clamp(1.4rem, 4vw, 2.35rem);
  border: 1px solid #2d4c63;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #172a40, #101d30 70%);
  box-shadow: 0 1.4rem 3rem #02081370;
}

.pairing h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.pairing h2 { margin-top: 0; }
.pairing a { color: #93e8f3; }
.pairing p { max-width: 66ch; }

.pairing .notice,
.pairing .account {
  background: #0d1b2d;
  border-color: #38566b;
}

.pairing .notice li::marker { color: #78dfea; }
.pairing .steps span { background: #102137; border-color: #36536a; }
.pairing .steps .current { background: #1b5067; border-color: #8cebf5; }
.pairing .steps .done { border-color: #56788a; }

.pairing .button,
.pairing button {
  max-width: 100%;
  box-sizing: border-box;
  background: #8cebf5;
  color: #082434;
  border: 1px solid #b1f6fb;
  box-shadow: 0 .25rem .8rem #02081335;
}

.pairing .button:hover,
.pairing button:hover { background: #b1f6fb; }
.pairing .secondary {
  background: transparent;
  color: #e9f8fb;
  border-color: #7898a9;
  box-shadow: none;
}

.pairing .secondary:hover { background: #204358; }
.pairing .button:focus-visible,
.pairing button:focus-visible,
.pairing a:focus-visible,
.pairing input:focus-visible { outline: 3px solid #b1f6fb; outline-offset: 3px; }

.pairing .pair-code-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #0d1b2d;
  color: #f2f8fc;
  border-color: #7898a9;
}

.pairing .fine { color: #c4d4df; }
.pairing .muted { color: #afc1cd; }
.pairing footer { margin-top: 1.75rem; border-color: #345269; font-size: .86rem; }

@media (max-width: 35rem) {
  body.pairing { padding: 1.15rem; }
  .pairing .brand { margin-bottom: 1.1rem; }
  .pairing .brand-logo { width: 14rem; height: auto; }
  .pairing .languages { width: 100%; font-size: .78rem; }
  .pairing .languages a { padding: .25rem .38rem; }
  .pairing .page-main { padding: 1.35rem; }
  .pairing .steps span { padding: .5rem .2rem; }
}
