:root {
  color-scheme: dark;
  --setup-bg: #08080c;
  --setup-panel: #111018;
  --setup-panel-2: #181621;
  --setup-line: rgba(255, 255, 255, 0.11);
  --setup-text: #f8f6fc;
  --setup-muted: #aaa6b5;
  --setup-accent: #b894ff;
  --setup-accent-strong: #9368f7;
  --setup-good: #72d6a4;
  --setup-red: #ff4f5e;
  --setup-red-soft: rgba(255, 79, 94, 0.18);
  --setup-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--setup-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--setup-text);
  background:
    radial-gradient(circle at 12% -10%, rgba(116, 70, 225, 0.18), transparent 34rem),
    var(--setup-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(184, 148, 255, 0.48);
  outline-offset: 3px;
}

.setup-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.setup-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--setup-line);
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(18px);
}

.setup-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.setup-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.setup-brand img {
  width: min(205px, 54vw);
  height: auto;
  display: block;
}

.setup-help-link {
  padding: 9px 13px;
  border: 1px solid var(--setup-line);
  border-radius: 999px;
  color: var(--setup-muted);
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.setup-help-link:hover {
  color: var(--setup-text);
  border-color: rgba(184, 148, 255, 0.45);
}

.setup-main {
  padding: 38px 0 70px;
}

.setup-intro {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.setup-eyebrow,
.setup-step-kicker {
  margin: 0;
  color: var(--setup-accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.setup-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.setup-intro > p:not(.setup-eyebrow) {
  margin: 13px 0 0;
  color: var(--setup-muted);
  font-size: 1.02rem;
}

.setup-wizard {
  max-width: 1020px;
  margin: 0 auto;
}

.setup-progress {
  margin: 0 2px 12px;
}

.setup-progress-copy {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--setup-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.setup-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.setup-progress-value {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d61f2, #cbb3ff);
  transition: width 180ms ease;
}

.setup-card {
  min-height: 585px;
  overflow: hidden;
  border: 1px solid var(--setup-line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--setup-panel);
  box-shadow: var(--setup-shadow);
}

.setup-step {
  min-height: 585px;
  padding: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 58px);
}

.setup-step[hidden] {
  display: none;
}

.setup-step-choice {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.setup-copy {
  min-width: 0;
}

.setup-step h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.7vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.setup-step h2 strong {
  color: #e1d2ff;
}

.setup-step h2:focus {
  outline: none;
}

.setup-step-copy {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--setup-muted);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.6;
}

.setup-picker {
  margin-top: 26px;
}

.setup-picker-label {
  margin: 0 0 9px;
  color: var(--setup-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setup-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-choice {
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--setup-line);
  border-radius: 17px;
  color: var(--setup-text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.setup-choice:hover,
.setup-choice[aria-pressed="true"] {
  border-color: rgba(184, 148, 255, 0.62);
  background: rgba(147, 104, 247, 0.13);
  box-shadow: 0 0 0 3px rgba(147, 104, 247, 0.1);
}

.setup-choice > span:last-child,
.setup-choice strong,
.setup-choice small {
  display: block;
}

.setup-choice strong {
  font-size: 1rem;
}

.setup-choice small {
  margin-top: 3px;
  color: var(--setup-muted);
  font-size: 0.78rem;
}

.setup-choice-icon {
  position: relative;
  height: 31px;
  flex: 0 0 auto;
  border: 2px solid rgba(207, 183, 255, 0.8);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(184, 148, 255, 0.1), rgba(184, 148, 255, 0.5), rgba(184, 148, 255, 0.1));
  box-shadow: 0 0 16px rgba(147, 104, 247, 0.24);
}

.setup-choice-icon::after {
  position: absolute;
  inset: 4px;
  content: "";
  background: repeating-linear-gradient(90deg, #bd9cff 0 3px, transparent 3px 6px);
  opacity: 0.75;
}

.setup-choice-icon-edge {
  width: 52px;
}

.setup-choice-icon-scroll {
  width: 82px;
}

.setup-small-note {
  width: fit-content;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d6d2de;
  font-size: 0.88rem;
  line-height: 1.45;
}

.setup-small-note > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #0a0a0f;
  background: var(--setup-accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.setup-address {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  display: block;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(184, 148, 255, 0.35);
  border-radius: 11px;
  color: #f0eaff;
  background: rgba(0, 0, 0, 0.28);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.setup-device-note {
  margin: 9px 0 0;
  color: var(--setup-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.setup-mini-instructions {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--setup-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.setup-mini-instructions li + li {
  margin-top: 6px;
}

.setup-fallback {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  color: var(--setup-muted);
  font-size: 0.88rem;
}

.setup-fallback summary {
  color: #d9ccff;
  font-weight: 780;
  cursor: pointer;
}

.setup-fallback p {
  max-width: 370px;
  margin: 9px 0 0;
  line-height: 1.55;
}

.setup-visual {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.setup-callout-label {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--setup-red);
  box-shadow: 0 7px 18px rgba(255, 79, 94, 0.22);
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.setup-target-box,
.setup-target-wrap {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--setup-red), 0 0 0 7px var(--setup-red-soft) !important;
}

.setup-target-wrap {
  border-radius: 12px;
}

.setup-callout-number {
  position: absolute;
  z-index: 4;
  top: -13px;
  right: -13px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--setup-red);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.38);
  font-size: 0.75rem;
  font-weight: 950;
}

.setup-device-shell {
  width: min(100%, 440px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #050507;
  box-shadow: inset 0 0 24px rgba(105, 69, 197, 0.13), 0 18px 40px rgba(0, 0, 0, 0.32);
}

.setup-device-screen {
  min-height: 118px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(rgba(181, 148, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 148, 255, 0.055) 1px, transparent 1px),
    #08070d;
  background-size: 5px 5px;
  color: #f3eaff;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(184, 148, 255, 0.7);
}

.setup-device-screen > div {
  display: grid;
  gap: 3px;
}

.phone-preview {
  width: min(100%, 330px);
  min-height: 430px;
  padding: 26px 15px 20px;
  border: 8px solid #07070a;
  border-radius: 35px;
  color: #16141a;
  background: #f4f2f7;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: #6c6772;
  font-size: 0.7rem;
  font-weight: 800;
}

.phone-title {
  margin: 18px 4px 12px;
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.phone-row {
  min-height: 52px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ddd9e1;
  background: #fff;
  font-size: 0.82rem;
}

.phone-row:first-of-type {
  border-radius: 13px 13px 0 0;
}

.phone-row-muted {
  border-radius: 0 0 13px 13px;
  color: #6f6a75;
}

.phone-row-target {
  z-index: 2;
  border-radius: 9px;
}

.wifi-bars {
  color: #625c68;
  font-size: 1.15rem;
}

.real-ui-frame {
  width: min(100%, 370px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #0a0a0f;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.real-ui-browser {
  height: 36px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #aaa6b5;
  background: #15141b;
  font-size: 0.66rem;
  text-align: center;
}

.real-ui-browser span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 12px 0 #ffbd2e;
}

.real-ap,
.real-handoff {
  padding: 16px;
  color: #f3f3fa;
  background: #0a0a0f;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.real-ap > small,
.real-handoff > small {
  display: block;
  color: #b8b8d0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.real-handoff > small {
  color: #d9ccff;
}

.real-ap h3,
.real-handoff h3 {
  margin: 3px 0 10px;
  font-size: 1.25rem;
}

.real-ap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.real-ap-pills span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.59rem;
}

.real-ap section {
  margin-top: 12px;
  padding-top: 11px;
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.real-ap section > strong {
  margin-bottom: 1px;
  font-size: 0.72rem;
}

.real-ap label,
.real-handoff label {
  margin: 3px 0 -1px 1px;
  color: #b8b8d0;
  font-size: 0.61rem;
}

.real-input,
.real-url {
  min-height: 36px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #b8b8d0;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.real-input-filled {
  color: #f3f3fa;
}

.real-ap em {
  color: #b8b8d0;
  font-size: 0.57rem;
  font-style: normal;
}

.real-button {
  min-height: 38px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #0a0a0f;
  background: linear-gradient(180deg, #e9e0ff, #b795ff);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.real-button-primary {
  margin-top: 9px;
  background: linear-gradient(180deg, #d9ccff, #a782ff);
}

.real-ap-secondary {
  gap: 5px !important;
}

.setup-edge-only {
  display: grid;
  gap: 5px;
}

html[data-device="scroll"] .setup-edge-only {
  display: none;
}

.real-ui-frame-bottom .real-ap {
  padding-top: 10px;
}

.real-notice {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid rgba(183, 156, 255, 0.5);
  border-radius: 10px;
  color: #ece8f4;
  background: rgba(183, 156, 255, 0.12);
  font-size: 0.69rem;
  line-height: 1.4;
}

.real-url {
  margin-top: 5px;
  color: #fff;
  font-size: 0.71rem;
  text-align: center;
}

.real-handoff-status {
  min-height: 18px;
  margin-top: 8px;
  color: #d9ccff;
  font-size: 0.61rem;
  font-weight: 700;
}

.setup-target-wrap-spaced {
  margin-top: 11px;
}

.setup-numbered-copy {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
  color: #ddd8e5;
  font-size: 0.91rem;
}

.setup-numbered-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.setup-numbered-copy li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--setup-red);
  font-size: 0.73rem;
  font-weight: 900;
}

.real-control {
  position: relative;
  width: min(100%, 370px);
  overflow: hidden;
  padding: 20px 16px 74px;
  border: 1px solid #2a2633;
  border-radius: 24px;
  color: #f8f6fc;
  background:
    radial-gradient(circle at 15% 0%, rgba(166, 119, 255, 0.13), transparent 15rem),
    #15121c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.37);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.real-control > .setup-callout-number {
  top: 9px;
  right: 9px;
}

.real-control-brand {
  margin: 0 2px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.real-control-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: transparent;
  box-shadow: 0 0 18px rgba(167, 118, 255, 0.28);
}

.real-control-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.real-control section {
  padding: 15px;
  border: 1px solid rgba(225, 215, 245, 0.08);
  border-radius: 18px;
  background: #191620;
  box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.025);
}

.real-control section + section {
  margin-top: 12px;
}

.real-control h3 {
  margin: 0 0 11px;
  font-size: 0.76rem;
}

.real-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.real-mode-grid > span {
  min-width: 0;
  min-height: 60px;
  padding: 9px 6px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 13px;
  background: #1d1925;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.25), -2px -2px 5px rgba(255, 255, 255, 0.025);
  font-size: 0.62rem;
  font-weight: 750;
}

.real-mode-grid small {
  margin-top: 2px;
  color: #8f8998;
  font-size: 0.47rem;
  font-weight: 700;
  text-transform: uppercase;
}

html[data-device="edge"] .real-mode-edge,
html[data-device="scroll"] .real-mode-scroll {
  color: #fff;
  background: linear-gradient(145deg, #b88de9, #9570df);
}

html[data-device="edge"] .real-mode-edge small,
html[data-device="scroll"] .real-mode-scroll small {
  color: rgba(255, 255, 255, 0.78);
}

.real-brightness > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.real-brightness > div h3 {
  margin: 0;
}

.real-brightness > div b {
  font-size: 0.7rem;
}

.real-brightness > span {
  position: relative;
  height: 26px;
  margin-top: 12px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #a77de5 0 67%, #0f0d13 67% 100%);
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.35);
}

.real-brightness > span::after {
  position: absolute;
  top: 3px;
  left: calc(67% - 10px);
  width: 20px;
  height: 20px;
  content: "";
  border-radius: 50%;
  background: #eee4ff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.34);
}

.real-control-nav {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  height: 52px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 5px;
  border: 1px solid rgba(225, 215, 245, 0.08);
  border-radius: 18px;
  background: #18141e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.real-control-nav b {
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #9c95a5;
  font-size: 0.58rem;
}

.real-control-nav b:first-child,
.real-control-nav b:last-child {
  color: #fff;
}

.real-control-nav b:last-child {
  background: linear-gradient(145deg, #b88de9, #9570df);
}

.setup-finish-links {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.setup-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.setup-actions[hidden] {
  display: none;
}

.setup-button {
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--setup-line);
  border-radius: 999px;
  color: var(--setup-text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.setup-button-primary {
  min-width: 165px;
  border-color: transparent;
  color: #0b0910;
  background: linear-gradient(180deg, #e0d3ff, #ae88ff);
  box-shadow: 0 12px 28px rgba(127, 79, 255, 0.2);
}

.setup-button:hover:not(:disabled) {
  border-color: rgba(184, 148, 255, 0.58);
}

.setup-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.setup-support-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--setup-muted);
  font-size: 0.77rem;
}

.setup-support-row button {
  padding: 0;
  border: 0;
  color: #d6c8f7;
  background: transparent;
  font-size: inherit;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.setup-troubleshooter {
  margin-top: 12px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 14px;
  border: 1px solid rgba(255, 198, 83, 0.26);
  border-radius: 15px;
  color: #d8d1c2;
  background: rgba(255, 198, 83, 0.06);
  font-size: 0.83rem;
  line-height: 1.5;
}

.setup-troubleshooter[hidden] {
  display: none;
}

.setup-troubleshooter strong {
  color: var(--setup-text);
}

.setup-troubleshooter a {
  color: #ead39a;
  font-weight: 800;
  white-space: nowrap;
}

.setup-note {
  max-width: 900px;
  margin: 18px auto 0;
  color: #7f7a88;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.setup-troubleshooting-page {
  max-width: 900px;
  margin: 0 auto;
}

.setup-troubleshooting-page h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.setup-troubleshooting-lead {
  max-width: 680px;
  color: var(--setup-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.setup-topic-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.setup-topic {
  scroll-margin-top: 90px;
  border: 1px solid var(--setup-line);
  border-radius: 18px;
  background: var(--setup-panel);
}

.setup-topic summary {
  padding: 19px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 850;
}

.setup-topic-body {
  padding: 0 20px 20px;
  color: var(--setup-muted);
  line-height: 1.7;
}

.setup-topic-body p:first-child {
  margin-top: 0;
}

.setup-topic-body a {
  color: var(--setup-accent);
  font-weight: 800;
}

.setup-footer {
  padding: 28px 0 38px;
  border-top: 1px solid var(--setup-line);
  color: var(--setup-muted);
  font-size: 0.8rem;
}

.setup-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.setup-footer a {
  color: var(--setup-text);
  font-weight: 730;
}

.setup-noscript {
  max-width: 900px;
  margin: 20px auto;
  padding: 22px;
  border: 1px solid var(--setup-line);
  border-radius: 18px;
  background: var(--setup-panel);
  color: var(--setup-muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .setup-step {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .setup-copy {
    max-width: 650px;
  }

  .setup-visual {
    justify-items: center;
  }
}

@media (max-width: 620px) {
  .setup-shell {
    width: min(100% - 20px, 1060px);
  }

  .setup-header-inner {
    min-height: 62px;
  }

  .setup-help-link {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .setup-main {
    padding: 28px 0 48px;
  }

  .setup-intro {
    margin-bottom: 20px;
  }

  .setup-intro h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .setup-card,
  .setup-step {
    min-height: 0;
  }

  .setup-card {
    border-radius: 21px;
  }

  .setup-step {
    padding: 26px 19px 30px;
  }

  .setup-step h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .setup-device-grid {
    grid-template-columns: 1fr;
  }

  .setup-choice {
    min-height: 74px;
  }

  .setup-actions {
    display: grid;
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.28fr);
  }

  .setup-actions .setup-button {
    width: 100%;
    min-width: 0;
  }

  .setup-support-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .setup-troubleshooter {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    min-height: 380px;
  }

  .setup-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
.real-mode-grid {
    gap: 5px;
  }

  .real-mode-grid > span {
    min-height: 54px;
    padding: 7px 5px;
    font-size: 0.57rem;
  }

  .setup-finish-links {
    display: grid;
  }

  .setup-finish-links .setup-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Phone-first setup realism */
.setup-product-choice {
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.setup-choice-photo {
  height: 138px;
  padding: 8px 10px;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--setup-line);
  background: #fff;
  box-shadow: inset 0 0 34px rgba(28, 23, 38, 0.055);
}

.setup-choice-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  object-fit: contain !important;
  object-position: center;
}

.setup-product-choice > span:last-child {
  padding: 12px 14px 14px;
}

.phone-preview {
  position: relative;
  width: min(100%, 350px);
  min-height: 555px;
  padding: 52px 14px 38px;
  overflow: hidden;
  border: 8px solid #050507;
  border-radius: 44px;
  color: #17151a;
  background: #f2f2f7;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.43), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phone-notch {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 50%;
  width: 112px;
  height: 28px;
  border-radius: 0 0 17px 17px;
  background: #050507;
  transform: translateX(-50%);
}

.phone-system {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  color: currentColor;
  font-size: 0.67rem;
  font-weight: 750;
}

.iphone-nav {
  margin: 3px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #007aff;
  font-size: 0.82rem;
}

.iphone-nav strong {
  color: #111;
  font-size: 1rem;
}

.phone-toggle-row {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #fff;
}

.phone-toggle-row i {
  position: relative;
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: #34c759;
}

.phone-toggle-row i::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 21px;
  height: 21px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.phone-section-label {
  margin: 23px 13px 7px;
  color: #747077;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.phone-preview .phone-row {
  min-height: 55px;
  padding: 0 13px;
  border-bottom-color: #dedbe1;
  font-size: 0.82rem;
}

.phone-preview .phone-row > span:first-of-type,
.phone-preview .phone-row > span:nth-child(2) {
  min-width: 0;
}

.phone-preview .phone-row strong,
.phone-preview .phone-row small {
  display: block;
}

.phone-preview .phone-row small {
  margin-top: 3px;
  color: #77717d;
  font-size: 0.65rem;
}

.phone-preview .phone-row-target {
  margin: 8px 0;
  border: 0;
  border-radius: 10px;
}

.phone-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid #c8c4ca;
  border-top-color: #6e6873;
  border-radius: 50%;
  animation: setup-phone-spin 1s linear infinite;
}

.phone-help {
  margin: 18px 8px 0;
  color: #6e6873;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.phone-home-bar,
.phone-gesture-bar {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  left: 50%;
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: #17151a;
  transform: translateX(-50%);
}

@keyframes setup-phone-spin {
  to { transform: rotate(360deg); }
}

.real-ui-frame,
.real-control {
  position: relative;
  width: min(100%, 350px);
  overflow: hidden;
  border: 8px solid #050507;
  border-radius: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.real-ui-frame {
  padding: 35px 0 21px;
  background: #050507;
}

.real-phone-status {
  position: absolute;
  z-index: 8;
  top: 7px;
  right: 13px;
  left: 13px;
  height: 22px;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  pointer-events: none;
}

.real-phone-status i {
  width: 86px;
  height: 24px;
  justify-self: center;
  border: 1px solid #19191d;
  border-radius: 999px;
  background: #000;
}

.real-phone-status span:last-child {
  justify-self: end;
  font-size: 0.5rem;
  letter-spacing: 0.02em;
}

.real-ui-frame::after,
.real-control::after {
  position: absolute;
  z-index: 9;
  bottom: 8px;
  left: 50%;
  width: 104px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
}

.real-ui-browser {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.real-control {
  padding: 50px 16px 88px;
  border-color: #050507;
  border-radius: 44px;
}

.real-control > .setup-callout-number {
  top: 40px;
  right: 6px;
}

.real-control-nav {
  right: 12px;
  bottom: 26px;
  left: 12px;
}

.setup-step-copy {
  line-height: 1.48;
}


.phone-preview,
.real-ui-frame,
.real-control {
  aspect-ratio: 9 / 19.5;
  min-height: 0;
}

.real-control {
  display: flex;
  flex-direction: column;
}

.real-control-brand {
  margin-bottom: 10px;
}

.real-control-content {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.real-control-content-edge {
  display: none;
}

html[data-device="edge"] .real-control-content-edge {
  display: flex;
}

html[data-device="edge"] .real-control-content-scroll {
  display: none;
}

.real-control-content section {
  padding: 10px 11px;
  border-radius: 14px;
}

.real-control-content section + section {
  margin-top: 0;
}

.real-control-content h3 {
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.real-control-content-edge .real-mode-grid {
  gap: 6px;
}

.real-control-content-edge .real-mode-grid > span {
  min-height: 47px;
  padding: 7px 6px;
  border-radius: 11px;
  font-size: 0.56rem;
}

.real-control-content-edge .real-mode-grid small {
  font-size: 0.42rem;
}

.real-mode-grid > .is-active,
.real-segment > .is-active,
.real-league-grid > .is-active {
  color: #fff;
  background: linear-gradient(145deg, #b88de9, #9570df);
}

.real-mode-grid > .is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.real-control-content .real-brightness {
  flex: 0 0 auto;
}

.real-control-content .real-brightness > span {
  height: 22px;
  margin-top: 8px;
}

.real-control-content .real-brightness > span::after {
  top: 2px;
  width: 18px;
  height: 18px;
}

.real-mode-detail {
  min-height: 0;
  flex: 1;
}

.real-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.real-market-grid > span {
  min-width: 0;
  min-height: 51px;
  padding: 7px 9px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 11px;
  background: #1d1925;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.2);
}

.real-market-grid small,
.real-market-grid em {
  min-width: 0;
  overflow: hidden;
  color: #8f8998;
  font-size: 0.43rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-market-grid b {
  margin: 1px 0;
  font-size: 0.63rem;
}

.real-segment {
  display: grid;
  gap: 5px;
}

.real-segment-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.real-segment-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.real-segment > b {
  min-width: 0;
  min-height: 34px;
  padding: 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 10px;
  color: #aea7b8;
  background: #1d1925;
  font-size: 0.5rem;
  line-height: 1.08;
  text-align: center;
}

.real-market-detail > .real-segment {
  margin-top: 7px;
}

.real-field-row {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.real-field-row > span {
  min-width: 0;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 10px;
  color: #8f8998;
  background: #1d1925;
  font-size: 0.43rem;
}

.real-field-row b {
  overflow: hidden;
  color: #f8f6fc;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-scroll-mode {
  flex: 0 0 auto;
}

.real-section-label,
.real-subhead small {
  display: block;
  color: #9b94a4;
  font-size: 0.49rem;
  font-weight: 750;
}

.real-league-grid {
  margin: 5px 0 7px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.real-league-grid span {
  min-height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 8px;
  color: #aaa3b2;
  background: #1d1925;
  font-size: 0.46rem;
  font-weight: 800;
}

.real-subhead {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.real-subhead b {
  color: #9b94a4;
  font-size: 0.44rem;
}

.real-team-row {
  margin-bottom: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.real-team-row > span {
  min-width: 0;
  min-height: 35px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(225, 215, 245, 0.07);
  border-radius: 10px;
  color: #e9e5ee;
  background: #1d1925;
  font-size: 0.46rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-team-row i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #874fca;
  font-size: 0.45rem;
  font-style: normal;
}

.real-sports-detail > .real-segment {
  margin: 5px 0 7px;
}

.real-scroll-ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.real-scroll-ranges > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #9b94a4;
  font-size: 0.47rem;
}

.real-scroll-ranges b {
  overflow: hidden;
  color: #f8f6fc;
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .setup-picker {
    margin-top: 20px;
  }

  .setup-choice-photo {
    height: 112px;
  }

  .setup-product-choice > span:last-child {
    padding: 10px 12px 11px;
  }

  .phone-preview {
    min-height: 0;
  }
}
.setup-qr-visual {
  align-content: start;
}

.setup-qr-card {
  width: min(100%, 330px);
  padding: 22px 24px 24px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(28, 23, 38, 0.12);
  border-radius: 24px;
  color: #17131c;
  background: linear-gradient(145deg, #ffffff, #f3f0f8);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.setup-qr-card > strong {
  font-size: 1rem;
}

.setup-qr-card > small {
  color: #6f6877;
  font-size: 0.72rem;
}

.setup-qr-card-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #2d2734;
  font-size: 0.82rem;
}

.setup-qr-card-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.setup-qr-code {
  position: relative;
  width: 156px;
  aspect-ratio: 1;
  margin: 7px 0 5px;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 12px;
  background:
    repeating-conic-gradient(#151219 0 25%, transparent 0 50%) 0 0 / 16px 16px,
    #fff;
  box-shadow: 0 0 0 1px rgba(28, 23, 38, 0.13), 0 10px 24px rgba(28, 23, 38, 0.12);
}

.setup-qr-code-scroll,
.setup-qr-code-edge {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.setup-qr-code-edge {
  display: none;
}

.setup-qr-copy-edge {
  display: none;
}

html[data-device="edge"] .setup-qr-code-scroll,
html[data-device="edge"] .setup-qr-copy-scroll {
  display: none;
}

html[data-device="edge"] .setup-qr-code-edge {
  display: block;
}

html[data-device="edge"] .setup-qr-copy-edge {
  display: block;
}

.setup-qr-fallback {
  width: min(100%, 350px);
  margin: 20px auto 0;
  border: 1px solid var(--setup-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
}

.setup-qr-fallback summary {
  padding: 14px 16px;
}

.setup-qr-fallback > p {
  margin: 0;
  padding: 0 16px 4px;
  color: var(--setup-muted);
  text-align: center;
}

.setup-qr-fallback .phone-preview {
  margin: 14px auto 0;
}
/* Mobile usability: keep the action and progress reachable while preserving the desktop layout. */
@media (max-width: 620px) {
  .setup-shell {
    width: min(100% - 12px, 1060px);
  }

  .setup-header-inner {
    min-height: 54px;
  }

  .setup-brand img {
    width: min(164px, 47vw);
  }

  .setup-help-link {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .setup-main {
    padding: 10px 0 calc(118px + env(safe-area-inset-bottom));
  }

  .setup-intro {
    margin-bottom: 11px;
  }

  .setup-intro .setup-eyebrow,
  .setup-intro > p:not(.setup-eyebrow) {
    display: none;
  }

  .setup-intro h1 {
    margin: 0;
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .setup-wizard {
    scroll-margin-top: 61px;
  }

  .setup-progress {
    position: sticky;
    z-index: 16;
    top: 54px;
    margin: 0 0 8px;
    padding: 7px 8px 8px;
    border: 1px solid var(--setup-line);
    border-radius: 13px;
    background: rgba(13, 12, 18, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
  }

  .setup-progress-copy {
    margin-bottom: 6px;
    font-size: 0.67rem;
  }

  .setup-progress-track {
    height: 4px;
  }

  .setup-card {
    border-radius: 19px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  }

  .setup-step {
    padding: 20px 14px 24px;
    gap: 18px;
  }

  .setup-step h2 {
    margin-top: 7px;
    font-size: clamp(1.72rem, 8.2vw, 2.25rem);
    line-height: 1.04;
  }

  .setup-step-copy {
    margin-top: 9px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .setup-step-kicker {
    font-size: 0.67rem;
  }

  .setup-small-note,
  .setup-fallback,
  .setup-address {
    margin-top: 13px;
  }

  .setup-small-note {
    font-size: 0.81rem;
  }

  .setup-visual {
    gap: 0;
  }

  .setup-callout-label {
    margin-bottom: 9px;
  }

  .phone-preview,
  .real-ui-frame,
  .real-control {
    width: min(100%, 310px);
  }

  .setup-qr-card {
    width: min(100%, 290px);
    padding: 17px 18px 19px;
    border-radius: 20px;
  }

  .setup-qr-code {
    width: 138px;
  }

  .setup-qr-fallback {
    margin-top: 13px;
  }

  .setup-actions {
    position: fixed;
    z-index: 40;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: min(456px, calc(100% - 16px));
    margin: 0 auto;
    padding: 7px;
    grid-template-columns: minmax(84px, 0.7fr) minmax(0, 1.3fr);
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background: rgba(15, 13, 21, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(18px);
  }

  .setup-actions .setup-button {
    min-height: 50px;
  }

  .setup-support-row {
    margin: 12px 5px 0;
    gap: 5px;
    font-size: 0.72rem;
  }

  .setup-note {
    margin-top: 13px;
    padding: 0 8px;
  }

  .setup-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .setup-shell {
    width: min(100% - 8px, 1060px);
  }

  .setup-step {
    padding-inline: 11px;
  }

  .phone-preview,
  .real-ui-frame,
  .real-control {
    width: min(100%, 294px);
  }

  .setup-choice-photo {
    height: 100px;
  }

  .setup-product-choice > span:last-child {
    padding: 9px 11px 10px;
  }
}
/* Screenshot-faithful phone screens: 2026-07-25 */
.iphone-statusbar {
  position: absolute;
  z-index: 30;
  top: 12px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.iphone-settings-preview,
.iphone-captive-preview {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: #f5f5f7;
  background: #000;
}

.iphone-settings-preview .phone-notch,
.iphone-captive-preview .phone-notch {
  z-index: 31;
  top: 9px;
  width: 80px;
  height: 21px;
  border-radius: 999px;
}

.iphone-settings-preview .phone-home-bar,
.iphone-captive-preview .phone-home-bar {
  z-index: 32;
  background: rgba(255, 255, 255, 0.9);
}

.setup-focus-muted {
  filter: blur(0.7px);
  opacity: 0.52;
}

.setup-focus-heavy {
  filter: blur(1.7px);
  opacity: 0.28;
}

.iphone-settings-content {
  position: absolute;
  inset: 38px 0 18px;
  padding: 0 12px 25px;
  overflow: hidden;
  color: #f5f5f7;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iphone-settings-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iphone-circle-button,
.iphone-edit {
  min-width: 52px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #323235;
  border-radius: 999px;
  background: #1c1c1e;
  font-size: 1.5rem;
}

.iphone-edit {
  padding: 0 14px;
  font-size: 0.78rem;
}

.iphone-wifi-card {
  position: relative;
  padding: 62px 14px 0;
  border-radius: 25px;
  background: #1c1c1e;
}

.iphone-wifi-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #45aaff, #087df0);
  font-size: 1.8rem;
  font-weight: 900;
  transform: rotate(-18deg);
}

.iphone-wifi-card h3 {
  margin: 0;
  font-size: 1rem;
}

.iphone-wifi-card > p {
  margin: 7px 0 12px;
  color: #9a9a9f;
  font-size: 0.62rem;
  line-height: 1.35;
}

.iphone-setting-line,
.iphone-network-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #3a3a3c;
  font-size: 0.75rem;
}

.iphone-current-network::before {
  margin-right: -2px;
  content: "✓";
  color: #0a84ff;
  font-size: 1rem;
  font-weight: 900;
}

.iphone-switch {
  position: relative;
  width: 46px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #30d158;
}

.iphone-switch::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 23px;
  height: 23px;
  content: "";
  border-radius: 50%;
  background: #fff;
}

.iphone-section-title {
  margin: 20px 12px 7px;
  color: #8e8e93;
  font-size: 0.64rem;
  font-weight: 700;
}

.iphone-network-card {
  padding: 0 13px;
  border-radius: 22px;
  background: #1c1c1e;
}

.iphone-network-row {
  position: relative;
  border-top: 0;
}

.iphone-network-row + .iphone-network-row {
  border-top: 1px solid #3a3a3c;
}

.iphone-network-row > strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iphone-settings-preview .phone-help {
  margin-top: 13px;
  color: #98989f;
}

.iphone-captive-header {
  position: absolute;
  z-index: 24;
  top: 34px;
  right: 0;
  left: 0;
  height: 112px;
  overflow: hidden;
  color: #f5f5f7;
  background: #1c1c1e;
  border-bottom: 1px solid #29292d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iphone-captive-site {
  height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  font-size: 0.65rem;
}

.iphone-captive-site span {
  color: #96969c;
}

.iphone-captive-site strong {
  max-width: 92%;
  overflow: hidden;
  font-size: 0.67rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iphone-captive-nav {
  height: 58px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.iphone-captive-nav > b {
  font-size: 0.9rem;
  text-align: center;
}

.iphone-history,
.iphone-close {
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #323235;
  border-radius: 999px;
  background: #131315;
  font-size: 1.35rem;
}

.iphone-history {
  color: #0a84ff;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
}

.iphone-close {
  font-size: 1.55rem;
  font-weight: 300;
}

.iphone-captive-viewport {
  position: absolute;
  inset: 146px 0 17px;
  overflow: hidden;
  background: #09090f;
}

.iphone-captive-viewport .real-ap,
.iphone-captive-viewport .real-handoff {
  min-height: 100%;
  padding: 14px 12px 28px;
  background: #09090f;
  transition: transform 180ms ease;
}

.real-ui-focus-network .real-ap {
  transform: translateY(-56px);
}

.real-ui-focus-save .real-ap {
  transform: translateY(-225px);
}

html[data-device="edge"] .real-ui-focus-save .real-ap {
  transform: translateY(-258px);
}

.real-ap-heading {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, 0.025);
}

.real-ap-heading > small {
  color: #b8b8d0;
  font-size: 0.61rem;
}

.real-ap-heading h3 {
  margin: 4px 0 10px;
  font-size: 1.26rem;
}

.iphone-captive-viewport .real-ap section {
  margin-top: 0;
  padding: 13px 12px;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  background: rgba(255, 255, 255, 0.025);
}

.iphone-captive-viewport .real-ap section:last-of-type {
  border-radius: 0 0 15px 15px;
}

.iphone-captive-viewport .real-input,
.iphone-captive-viewport .real-url {
  min-height: 42px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.iphone-captive-viewport .real-button {
  min-height: 42px;
  font-size: 0.8rem;
}

.iphone-captive-viewport .real-setup-note {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #b8b8d0;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.56rem;
  line-height: 1.35;
}

.real-ui-focus-save .real-button-primary,
.real-ui-focus-handoff .setup-target-wrap {
  position: relative;
  z-index: 12;
}

.iphone-captive-viewport .real-handoff {
  padding-top: 20px;
}

.iphone-captive-viewport .real-handoff h3 {
  margin: 7px 0 12px;
  font-size: 1.3rem;
}

.iphone-captive-viewport .real-notice {
  font-size: 0.65rem;
}

.iphone-captive-viewport .real-notice > b {
  display: block;
  margin-bottom: 3px;
}

.iphone-captive-viewport .real-url {
  margin-bottom: 9px;
  color: #fff;
  font-size: 0.66rem;
}

.real-handoff-steps {
  margin: 9px 0 0;
  padding-left: 22px;
  color: #b8b8d0;
  font-size: 0.58rem;
  line-height: 1.45;
}

.real-control {
  position: relative;
  padding: 0 12px 82px;
  border: 8px solid #050507;
  border-radius: 44px;
  color: #f8f6fc;
  background: #000;
}

.real-control::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 130px;
  content: "";
  background: linear-gradient(145deg, #a176ee, #c8a8ff);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 92% 100%, 8% 100%, 0 78%);
}

.real-control > .setup-callout-number {
  z-index: 20;
  top: 72px;
  right: 5px;
}

.real-control-brand {
  position: relative;
  z-index: 2;
  min-height: 130px;
  margin: 0;
  padding: 45px 8px 25px;
  color: #fff;
  font-size: 1.02rem;
}

.real-control-mark {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.real-control-content {
  position: relative;
  z-index: 3;
  margin-top: -13px;
  gap: 8px;
}

.real-control-content section,
.real-control-content .control-panel-card {
  border: 1px solid rgba(225, 215, 245, 0.09);
  border-radius: 17px;
  background: #191620;
  box-shadow: 5px 7px 15px rgba(0, 0, 0, 0.32), inset 1px 1px 0 rgba(255, 255, 255, 0.025);
}

.real-control-content-scroll .real-scroll-mode {
  padding: 13px;
}

.real-control-content-scroll .real-scroll-mode h3 {
  font-size: 0.75rem;
}

.real-control-content-scroll .real-segment > b {
  min-height: 45px;
  border-radius: 13px;
  font-size: 0.7rem;
}

.real-control-content-scroll .real-sports-detail {
  padding: 13px;
}

.real-control-section-title {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.real-control-section-title h3 {
  margin: 0;
  font-size: 0.76rem;
}

.real-control-section-title > span {
  min-height: 30px;
  padding: 0 6px 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(225, 215, 245, 0.1);
  border-radius: 999px;
  color: #fff;
  background: #1d1925;
  font-size: 0.52rem;
  font-weight: 800;
}

.real-control-section-title > span small {
  color: #9b94a4;
  font-size: 0.43rem;
}

.real-control-section-title > span i {
  position: relative;
  width: 30px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, #8b5dcc, #b18cff);
}

.real-control-section-title > span i::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: #f3f3fa;
}

.real-control-inset {
  padding: 10px;
  border: 1px solid rgba(225, 215, 245, 0.08);
  border-radius: 14px;
  background: #0e0c12;
}

.real-control-inset + .real-control-inset {
  margin-top: 8px;
}

.real-control-content-scroll .real-league-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.real-control-content-scroll .real-league-grid span {
  min-height: 35px;
  border-radius: 10px;
  font-size: 0.55rem;
}

.real-team-summary,
.real-team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.real-team-summary {
  margin-bottom: 6px;
}

.real-team-summary > span {
  display: flex;
  justify-content: space-between;
  color: #b8b1c2;
  font-size: 0.46rem;
}

.real-team-cards > span {
  min-height: 72px;
  padding: 9px;
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid rgba(225, 215, 245, 0.08);
  border-radius: 12px;
  background: #1d1925;
}

.real-team-cards > span > b,
.real-team-cards > span > small {
  width: 100%;
  font-size: 0.53rem;
}

.real-team-cards i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2c2735;
  font-size: 0.42rem;
  font-style: normal;
  font-weight: 900;
}

.real-control-nav {
  z-index: 12;
  right: 12px;
  bottom: 24px;
  left: 12px;
  height: 58px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(24, 20, 30, 0.96);
  backdrop-filter: blur(12px);
}

.real-control-nav b {
  gap: 2px;
  align-content: center;
  font-size: 0.54rem;
}

.real-control-nav b i {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
}

.real-control-nav b:first-child {
  color: #d7b6ff;
  background: #131017;
}

.real-control-nav b:last-child {
  color: #fff;
  background: linear-gradient(145deg, #b88de9, #9570df);
}

@media (max-width: 390px) {
  .iphone-settings-nav {
    height: 58px;
  }

  .iphone-wifi-card {
    padding-top: 55px;
  }

  .iphone-setting-line,
  .iphone-network-row {
    min-height: 44px;
  }

  .iphone-section-title {
    margin-top: 14px;
  }

  .iphone-captive-header {
    height: 104px;
  }

  .iphone-captive-site {
    height: 48px;
  }

  .iphone-captive-nav {
    height: 56px;
  }

  .iphone-captive-viewport {
    top: 138px;
  }

  .real-ui-focus-network .real-ap {
    transform: translateY(-72px);
  }

  .real-ui-focus-save .real-ap {
    transform: translateY(-248px);
  }

  html[data-device="edge"] .real-ui-focus-save .real-ap {
    transform: translateY(-282px);
  }

  .real-control::before {
    height: 112px;
  }

  .real-control-brand {
    min-height: 112px;
    padding-top: 38px;
  }

  .real-control-content-scroll .real-segment > b {
    min-height: 40px;
  }

  .real-team-cards > span {
    min-height: 61px;
  }
}

/* Real flat control-panel header: 2026-07-25 */
.real-control::before {
  display: none;
  content: none;
}

.real-control-status {
  position: relative;
  z-index: 3;
  min-height: 44px;
  margin: 0 -12px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #0d0c12;
  font-size: 0.55rem;
  font-weight: 800;
}

.real-control-brand {
  min-height: 86px;
  margin: 0 -12px 12px;
  padding: 0 18px;
  background: #282534;
}

.real-control-content {
  margin-top: 0;
}

.real-control > .setup-callout-number {
  top: 53px;
}

@media (max-width: 390px) {
  .real-control-status {
    min-height: 42px;
  }

  .real-control-brand {
    min-height: 78px;
    padding: 0 16px;
  }
}
