.wizard-view {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 90px;
}
.wizard-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 29px;
  padding: 0;
  list-style: none;
}
.wizard-stepper li {
  padding: 8px 3px;
  border-bottom: 2px solid var(--gx-line);
  color: var(--gx-muted);
  font: 700 10px/1.3 var(--gx-mono);
  text-align: center;
}
.wizard-stepper li.done {
  border-color: var(--gx-cobalt);
  color: var(--gx-cobalt);
}
.wizard-stepper li.current {
  border-color: var(--gx-ink);
  color: var(--gx-ink);
}
.wizard-text-button {
  width: fit-content;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--gx-ink);
  font-weight: 800;
}
#wizard-back {
  grid-column: 1;
}
#wizard-skip {
  grid-column: 3;
  justify-self: end;
}
.wizard-progress-wrap {
  grid-column: 2;
  min-width: 150px;
  text-align: center;
}
.wizard-progress-wrap > span {
  font: 700 11px/1.5 var(--gx-mono);
  color: var(--gx-cobalt);
}
.wizard-progress {
  height: 7px;
  margin-top: 7px;
  border-radius: 8px;
  background: #d5d8ea;
  overflow: hidden;
}
.wizard-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--gx-cobalt);
  transition: width 0.2s ease;
}
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}
.wizard-panel {
  min-width: 0;
  padding: clamp(26px, 3.8vw, 48px);
  border: 1px solid var(--gx-line);
  border-radius: 20px;
  background: #fff;
}
.wizard-step > h1 {
  margin: 11px 0 9px;
  font: 800 clamp(30px, 3.2vw, 42px)/1.06 var(--gx-display);
  letter-spacing: -0.045em;
}
.wizard-step > p {
  max-width: 560px;
  margin: 0 0 27px;
  color: var(--gx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.wizard-step form > .primary-button {
  margin-top: 28px;
}
.wizard-choice-grid {
  display: grid;
  gap: 11px;
}
.wizard-purpose-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wizard-choice-grid label {
  position: relative;
  display: block;
  cursor: pointer;
}
.wizard-choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.wizard-purpose-grid label > span,
.wizard-social-grid label > span,
.wizard-theme-grid label {
  border: 2px solid #c6cae1;
  border-radius: 13px;
  background: #fff;
}
.wizard-purpose-grid label > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 96px;
  padding: 18px;
}
.wizard-purpose-grid strong {
  font: 800 17px var(--gx-display);
}
.wizard-purpose-grid small {
  color: var(--gx-muted);
  font-size: 11px;
  line-height: 1.4;
}
.wizard-choice-grid label:has(input:checked) > span,
.wizard-theme-grid label:has(input:checked) {
  border-color: var(--gx-cobalt);
  background: #e9edff;
  box-shadow: 3px 3px 0 var(--gx-cobalt);
}
.wizard-choice-grid label:has(input:focus-visible) > span,
.wizard-theme-grid label:has(input:focus-visible) {
  outline: 3px solid var(--gx-cobalt);
  outline-offset: 3px;
}
.wizard-theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}
.wizard-theme-grid label {
  padding: 10px;
}
.wizard-theme-grid label > strong {
  display: block;
  padding: 9px 4px 3px;
  font-size: 13px;
}
.wizard-theme-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  height: 160px;
  padding: 42px 18px 14px;
  border-radius: 9px;
}
.wizard-theme-sample::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--gx-cobalt);
}
.wizard-theme-sample i {
  width: 100%;
  height: 18px;
  border-radius: 6px;
  background: #fff;
}
.light-sample {
  background: #f7f7f4;
}
.night-sample {
  background: #161b19;
}
.night-sample i {
  background: #454a51;
}
.wizard-field-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
}
.wizard-step
  input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not(
    [type="file"]
  ),
.wizard-step textarea,
.wizard-step select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #b9c2ec;
  border-radius: 9px;
  background: #fff;
  color: var(--gx-ink);
}
.wizard-step textarea {
  resize: vertical;
}
#wizard-accent {
  width: 56px;
  height: 48px;
  padding: 4px;
  border: 1px solid #b9c2ec;
  border-radius: 9px;
  background: #fff;
}
.wizard-social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wizard-social-grid label > span {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 800;
}
.wizard-social-grid img {
  width: 27px;
  height: 27px;
}
.wizard-step h2 {
  margin: 24px 0 13px;
  font: 800 17px var(--gx-display);
}
.wizard-link-list {
  display: grid;
  gap: 10px;
}
.wizard-link-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}
.wizard-link-row > img {
  width: 35px;
  height: 35px;
  padding: 7px;
  margin-top: 6px;
  border: 1px solid #c6cae1;
  border-radius: 9px;
  background: #fff;
}
.wizard-link-fields {
  display: grid;
  gap: 7px;
}
.wizard-link-fields label {
  font-size: 11px;
  font-weight: 800;
}
.wizard-link-fields input + input {
  margin-top: 3px;
}
.wizard-extra-row {
  grid-template-columns: 36px minmax(0, 1fr) 30px;
}
.wizard-remove-link {
  align-self: center;
  border: 0;
  background: none;
  font-size: 23px;
}
.wizard-add-link {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #b9c2ec;
  border-radius: 9px;
  background: #fff;
  color: var(--gx-cobalt);
  font-size: 12px;
  font-weight: 800;
}
#wizard-add-link {
  margin-top: 13px;
}
.wizard-avatar-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.wizard-avatar-upload small {
  display: block;
  margin-top: 4px;
  color: var(--gx-muted);
  font-size: 10px;
  font-weight: 400;
}
#wizard-avatar-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 2px solid var(--gx-ink);
  border-radius: 50%;
  background: #c8d4ff;
  font: 800 27px var(--gx-display);
}
#wizard-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wizard-wallet-box {
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #c6cae1;
  border-radius: 12px;
  background: #f4f5ff;
}
.wizard-wallet-box strong {
  font: 800 14px var(--gx-display);
}
.wizard-wallet-box strong span {
  margin-left: 6px;
  color: var(--gx-cobalt);
  font: 700 10px var(--gx-mono);
}
.wizard-wallet-box p,
.wizard-wallet-box small {
  display: block;
  color: var(--gx-muted);
  font-size: 11px;
  line-height: 1.5;
}
.wizard-wallet-box p {
  margin: 7px 0 12px;
}
.wizard-wallet-box small {
  margin-top: 8px;
}
.wizard-preview-wrap {
  position: sticky;
  top: 100px;
}
.wizard-preview-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 3px 0 16px;
}
.wizard-preview-label span {
  color: var(--gx-cobalt);
  font: 700 10px var(--gx-mono);
  letter-spacing: 0.08em;
}
.wizard-preview-label strong {
  font: 800 17px var(--gx-display);
}
.wizard-preview-page {
  --preview-accent: #5975ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 560px;
  padding: 52px 22px 22px;
  border: 1px solid #c6cae1;
  border-radius: 23px;
  background: #f7f7f4;
  color: #151b18;
  text-align: center;
}
.wizard-preview-page.night {
  background: #161b19;
  color: #fff;
}
.wizard-preview-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--preview-accent);
  color: #fff;
  font: 800 35px var(--gx-display);
}
.wizard-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wizard-preview-page > small {
  margin-top: 15px;
  color: inherit;
  font-size: 11px;
  opacity: 0.7;
}
.wizard-preview-page h2 {
  margin: 7px 0;
  font: 800 26px var(--gx-display);
}
.wizard-preview-page p {
  margin: 0 0 17px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.7;
}
.wizard-preview-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 36px;
}
.wizard-preview-socials img {
  width: 22px;
  height: 22px;
}
.wizard-preview-page.night .wizard-preview-socials img,
.wizard-preview-page.night .wizard-preview-links img {
  filter: invert(1);
}
.wizard-preview-links {
  display: grid;
  align-content: start;
  gap: 9px;
  width: 100%;
  margin-top: 22px;
}
.wizard-preview-links > div {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #d2d5d9;
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.wizard-preview-links img {
  width: 21px;
  height: 21px;
}
.wizard-preview-page.night .wizard-preview-links > div {
  border-color: #46524a;
  background: #252c28;
}
.wizard-preview-brand {
  margin-top: auto !important;
  padding-top: 22px;
}
.wizard-preview-page.grid .wizard-preview-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wizard-preview-page.grid .wizard-preview-links > div {
  grid-template-columns: 20px 1fr;
  gap: 4px;
  font-size: 10px;
}
.wizard-preview-page.grid .wizard-preview-links > div span:last-child {
  display: none;
}
@media (max-width: 850px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .wizard-preview-wrap {
    position: static;
    width: min(420px, 100%);
    margin: 0 auto;
  }
}
@media (max-width: 620px) {
  .wizard-view {
    width: calc(100% - 30px);
    padding-top: 16px;
  }
  .wizard-topline {
    margin-bottom: 18px;
  }
  .wizard-stepper {
    gap: 2px;
    margin-bottom: 18px;
  }
  .wizard-stepper li {
    font-size: 8px;
  }
  .wizard-panel {
    padding: 24px 20px;
  }
  .wizard-purpose-grid {
    grid-template-columns: 1fr;
  }
  .wizard-purpose-grid label > span {
    min-height: 76px;
  }
  .wizard-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wizard-preview-wrap {
    width: 100%;
  }
  .wizard-preview-page {
    min-height: 420px;
    padding-top: 32px;
  }
}
