.setup-wizard { width: 100%; min-height: 480px; padding: 10px 0 24px; }
.wizard-progress { display: flex; justify-content: center; gap: 30px; list-style: none; margin: 0 0 36px !important; padding: 0 !important; }
.wizard-progress li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #7c8ba0; }
.wizard-progress span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d5dfed; border-radius: 50%; font-size: 10px; background: #ffffffb8; }
.wizard-progress [aria-current=step] { color: #3e63b5; font-weight: 600; }
.wizard-progress [aria-current=step] span { background: #e6eeff; border-color: #a9bfea; }
.wizard-intro { text-align: center; margin-bottom: 28px; }
.device-setup .wizard-intro h3 { font-size: clamp(23px, 3vw, 32px); font-weight: 600; letter-spacing: -.8px; margin: 10px 0; }
.wizard-intro p { color: #71809a; }
.wizard-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; margin: 0 auto; }
.device-setup .wizard-choice { --choice-color: #416fd0; --choice-tint: #edf3ff; display: flex; align-items: center; gap: 17px; min-height: 124px; padding: 23px; border: 1px solid #d7e2f2; border-radius: 15px; background: #ffffffed; text-align: left; white-space: normal; box-shadow: 0 5px 22px #45629d07; }
.device-setup .wizard-remote { --choice-color: #8054c2; --choice-tint: #f3ecfc; }
.device-setup .wizard-ios { --choice-color: #178078; --choice-tint: #e6f7f3; }
.device-setup .wizard-android { --choice-color: #a77325; --choice-tint: #fff5e4; }
.device-setup .wizard-choice:hover:not(:disabled) { border-color: var(--choice-color); background: #fff; }
.wizard-choice-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; color: var(--choice-color); background: var(--choice-tint); }
.wizard-choice-icon svg { width: 25px; height: 25px; }
.wizard-choice strong { display: block; font-size: 15px; font-weight: 600; color: #304666; margin-bottom: 7px; }
.wizard-choice small { display: block; font-size: 11px; line-height: 1.6; color: #6b7d95; }
.wizard-choice-arrow { margin-left: auto; color: var(--choice-color); font-size: 22px; }
.device-setup .wizard-back { border: 0; background: none; margin: 0 0 12px; font-size: 11px; }
.wizard-name-card { width: min(100%, 500px); margin: 15px auto 35px; padding: 36px; background: #fff; border: 1px solid #d9e3f1; border-radius: 18px; box-shadow: 0 10px 35px #47669e09; }
.device-setup .wizard-name-card h3 { font-size: 24px; letter-spacing: -.6px; margin: 12px 0; }
.wizard-name-card label { display: block; margin: 25px 0 8px; font-size: 12px; font-weight: 600; }
.wizard-name-card input { width: 100%; padding: 13px 14px; font-size: 15px; border-radius: 9px; }
.wizard-name-card .muted { margin-top: 12px; font-size: 11px; }
.device-setup .wizard-name-card .primary { width: 100%; margin-top: 24px; padding: 12px; background: #3e69ce; color: white; border-color: #3e69ce; border-radius: 9px; }
.device-setup .wizard-name-card .primary:hover:not(:disabled) { background: #315bbd; }
.wizard-activation-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.device-setup .wizard-activation-heading h3 { font-size: 26px; font-weight: 600; letter-spacing: -.6px; margin: 8px 0; overflow-wrap: anywhere; }
.wizard-activation-heading button { flex: none; font-size: 11px; }
.wizard-activation-grid { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 30px; align-items: start; }
.wizard-code-card { min-width: 0; text-align: center; padding: 22px 16px; border: 1px solid #d3e0f2; border-radius: 16px; background: #fff; box-shadow: 0 5px 20px #315fbd08; }
.wizard-code-card > strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.wizard-qr { margin: 15px auto 10px; padding: 6px; background: #fff; width: 192px; max-width: 100%; }
.wizard-qr svg { display: block; width: 100%; height: auto; }
.wizard-code-actions { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
.wizard-code-actions button, .wizard-code-actions a { font-size: 10px; padding: 6px 8px; }
.device-setup .wizard-private { font-size: 10px; color: #7d8aa0; }
#wizard-dns { border-top: 1px solid #e3eaf4; margin-top: 18px; padding-top: 15px; }
#wizard-dns .copy-line { justify-content: center; margin-top: 8px; gap: 6px; }
#wizard-dns-value { font-size: 16px; color: #18788b; }
#wizard-copy-dns { padding: 4px 6px; font-size: 10px; }
#wizard-guide { min-width: 0; padding: 8px 0; }
.setup-guide .sg-steps { list-style: none; padding: 0; margin: 0; }
.wizard-receipt { display: flex; gap: 13px; align-items: center; margin-top: 25px; padding: 16px 20px; border: 1px solid #d9e5f7; border-radius: 12px; background: #eff5ff; }
.wizard-receipt strong { font-size: 13px; font-weight: 600; }
.device-setup .wizard-receipt p { font-size: 11px; margin-top: 3px; }
.wizard-signal { width: 10px; height: 10px; background: #7492ca; border-radius: 50%; box-shadow: 0 0 0 5px #dfe9fa; flex: none; }
.wizard-receipt.received { border-color: #b8dfd0; background: #eaf8f2; }
.received .wizard-signal { background: #339477; box-shadow: 0 0 0 5px #d6eee4; }
.device-setup .wizard-scope { font-size: 10px; margin-top: 10px; text-align: center; color: #7b899c; }
#wizard-error:empty { display: none; }
#wizard-error { max-width: 650px; margin: 0 auto 16px; }
.setup-saved { display: flex; flex-direction: column; gap: 18px; }
.saved-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.saved-heading h3 { margin: 0; }
.wizard-forward { animation: wizard-forward .32s cubic-bezier(.2,.7,.2,1) both; }
.wizard-backward { animation: wizard-backward .26s cubic-bezier(.2,.7,.2,1) both; }
.capture-arriving { animation: capture-arriving .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes wizard-forward { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes wizard-backward { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes capture-arriving { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 900px) { .wizard-activation-grid { grid-template-columns: 215px minmax(0,1fr); gap: 20px; } .wizard-qr { width: 170px; } }
@media(max-width: 760px) { .wizard-activation-grid { grid-template-columns: 1fr; } .wizard-code-card { width: min(100%, 340px); margin: 0 auto; } .wizard-qr { width: 192px; } .wizard-activation-heading { flex-wrap: wrap; } }
@media(max-width: 600px) { .setup-wizard { min-height: 0; } .wizard-progress { gap: 15px; margin-bottom: 25px !important; } .wizard-choices { grid-template-columns: 1fr; gap: 12px; } .device-setup .wizard-choice { min-height: 94px; padding: 17px; gap: 13px; } .wizard-choice-icon { width: 42px; height: 42px; } .wizard-name-card { padding: 25px 20px; margin-top: 5px; } .wizard-receipt { padding: 14px; } .saved-heading { flex-wrap: wrap; } }
@media(prefers-reduced-motion: reduce) { .wizard-forward, .wizard-backward, .capture-arriving { animation: none; } }
