.create-flow-body {
  background:
    radial-gradient(circle at 8% 18%, rgb(125 66 244 / 0.11), transparent 26%),
    radial-gradient(circle at 94% 10%, rgb(239 79 155 / 0.08), transparent 23%),
    #f7f4fb;
}

.create-flow-body .site-footer {
  display: none;
}

.create-flow-body .site-nav__links,
.create-flow-body .site-nav .button {
  display: none;
}

.create-flow-body .site-nav {
  gap: 0;
}

.page.page--create-flow {
  max-width: none;
  padding: 0;
}

.create-flow {
  min-height: calc(100svh - 82px);
  overflow-x: clip;
  overflow-y: visible;
  padding: 48px 26px 90px;
  position: relative;
}

.create-flow__glow {
  border-radius: 999px;
  filter: blur(84px);
  opacity: 0.17;
  pointer-events: none;
  position: absolute;
}

.create-flow__glow--violet {
  background: #7d42f4;
  height: 260px;
  left: -130px;
  top: 240px;
  width: 260px;
}

.create-flow__glow--pink {
  background: #ef4f9b;
  height: 220px;
  right: -120px;
  top: 20px;
  width: 260px;
}

.create-flow__intro {
  align-items: end;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.68fr);
  margin: 0 auto 30px;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.create-flow__intro h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
  max-width: 800px;
}

.create-flow__intro > p {
  color: #645974;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 4px;
  max-width: 510px;
}

.create-flow__eyebrow,
.wizard-step__kicker,
.final-summary__eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.story-wizard {
  margin: 0 auto;
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.story-wizard__progress {
  background: rgb(255 255 255 / 0.78);
  border: 1px solid rgb(228 221 236 / 0.88);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgb(53 28 91 / 0.06);
  display: none;
  margin-bottom: 18px;
  padding: 17px 22px 15px;
}

.has-story-wizard .story-wizard__progress {
  display: block;
}

.story-wizard__progress-copy {
  align-items: center;
  display: none;
  gap: 9px;
  justify-content: space-between;
}

.story-wizard__progress-copy span {
  color: #8a7c9c;
  font-size: 11px;
  font-weight: 700;
}

.story-wizard__progress-copy strong {
  color: #47365d;
  font-size: 12px;
}

.story-wizard__progress-track {
  background: #eee8f4;
  border-radius: 99px;
  display: none;
  height: 4px;
  margin: 12px 0 0;
  overflow: hidden;
}

.story-wizard__progress-track span {
  background: linear-gradient(105deg, #7541f5 0%, #bb45e7 48%, #ef4f9b 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 420ms ease;
  width: 20%;
}

.story-wizard__steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-wizard__steps li {
  align-items: center;
  color: #9a8daa;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-wizard__steps li::before {
  background: #e8e0ef;
  border: 4px solid #f7f3fa;
  border-radius: 50%;
  content: "";
  height: 15px;
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
  width: 15px;
}

.story-wizard__steps li[aria-current="step"] {
  color: #4f346c;
}

.story-wizard__steps li[aria-current="step"]::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(125 66 244 / 0.12);
}

.story-wizard__steps li.is-complete {
  color: #6d5c82;
}

.story-wizard__steps li.is-complete::before {
  background: #63cdbd;
}

.story-wizard__noscript {
  background: #fff6dc;
  border: 1px solid #eed799;
  border-radius: 14px;
  color: #644f26;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  padding: 13px 16px;
}

.story-wizard__form-error {
  background: #fff0ee;
  border: 1px solid #e8b9b2;
  border-radius: 14px;
  color: #7e2d27;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 18px;
  padding: 13px 16px;
}

.story-wizard__layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
}

.story-wizard__paper {
  background:
    linear-gradient(135deg, rgb(125 66 244 / 0.035), transparent 33%),
    #fff;
  border: 1px solid #e8e0ef;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgb(53 28 91 / 0.09);
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  scroll-margin-top: 100px;
}

.wizard-step {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0 0 46px;
}

.wizard-step.is-server-hidden {
  display: none;
}

.wizard-step + .wizard-step {
  border-top: 1px solid #ece5f2;
  padding-top: 46px;
}

.wizard-step:last-child {
  padding-bottom: 0;
}

.has-story-wizard .wizard-step {
  animation: wizard-step-in 520ms ease-out both;
  padding-bottom: 0;
}

.has-story-wizard .wizard-step + .wizard-step {
  border-top: 0;
  padding-top: 0;
}

@keyframes wizard-step-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step__header {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 34px;
}

.wizard-step__number {
  align-items: center;
  background: linear-gradient(145deg, #f0e8ff, #fff0f7);
  border: 1px solid #e7d8fb;
  border-radius: 15px;
  color: #7d42f4;
  display: flex;
  flex: 0 0 auto;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 11px;
  height: 47px;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 47px;
}

.wizard-step__header h2 {
  color: #281a3d;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.05em;
  line-height: 1.16;
  margin: 0 0 12px;
}

.wizard-step__header h2:focus {
  outline: none;
}

.wizard-step__header p:last-child {
  color: #716680;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
}

.story-wizard fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.story-wizard legend,
.create-field > label {
  color: #332344;
  display: block;
  float: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 9px;
  padding: 0;
  width: 100%;
}

.create-field {
  margin-bottom: 26px;
}

.create-input {
  appearance: none;
  background: #fff;
  border: 1px solid #dcd3e5;
  border-radius: 13px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  min-height: 51px;
  outline: none;
  padding: 13px 15px;
  resize: vertical;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  width: 100%;
}

.create-input--large {
  font-size: 17px;
  font-weight: 700;
  min-height: 58px;
  padding: 15px 17px;
}

.create-input::placeholder {
  color: #aaa0b5;
}

.create-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(125 66 244 / 0.1);
}

.create-field__hint {
  color: #887d94;
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

.create-field__error,
.wizard-client-error {
  color: #a42f28;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 8px;
}

.choice-field {
  margin-bottom: 28px !important;
}

.choice-field--plain {
  margin-bottom: 0 !important;
}

.choice-field.is-invalid > legend {
  color: #a42f28;
}

.choice-field__client-error .wizard-client-error {
  margin: 9px 0 0;
}

.age-pills,
.lesson-pills,
.suggestion-pills,
.companion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.age-pills {
  margin-top: 15px;
}

.age-pill input,
.lesson-pill input,
.scenario-card input,
.visual-style-card__input,
.hero-choice__input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.age-pill span {
  align-items: center;
  background: #faf8fc;
  border: 1px solid #e2dae9;
  border-radius: 14px;
  color: #574967;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  width: 48px;
}

.age-pill:hover span {
  border-color: #bba3db;
  transform: translateY(-2px);
}

.age-pill input:checked + span {
  background: linear-gradient(145deg, #7d42f4, #9554f4);
  border-color: #7d42f4;
  box-shadow: 0 8px 22px rgb(125 66 244 / 0.22);
  color: #fff;
}

.age-pill input:focus-visible + span,
.lesson-pill input:focus-visible + span,
.scenario-card:has(input:focus-visible),
.visual-style-card:has(input:focus-visible),
.gender-choice:has(input:focus-visible),
.eye-color-choice:has(input:focus-visible) {
  outline: 3px solid rgb(125 66 244 / 0.3);
  outline-offset: 3px;
}

.hero-attribute-field {
  border-top: 1px solid #eee7f3 !important;
  padding-top: 24px !important;
}

.hero-attribute-field > .create-field__hint {
  margin-top: -2px;
}

.gender-choice-grid,
.eye-color-grid {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.gender-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eye-color-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gender-choice,
.eye-color-choice {
  cursor: pointer;
  min-width: 0;
  position: relative;
}

.gender-choice__content,
.eye-color-choice__content {
  background:
    radial-gradient(circle at 12% 0%, rgb(125 66 244 / 0.06), transparent 42%),
    #fbf9fd;
  border: 1px solid #e3dbe9;
  color: #4d3b5d;
  display: flex;
  position: relative;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.gender-choice__content {
  align-items: center;
  border-radius: 17px;
  gap: 13px;
  min-height: 78px;
  padding: 12px 42px 12px 13px;
}

.gender-choice:hover .gender-choice__content,
.eye-color-choice:hover .eye-color-choice__content {
  border-color: #bba5d4;
  transform: translateY(-2px);
}

.gender-choice:has(input:checked) .gender-choice__content,
.eye-color-choice:has(input:checked) .eye-color-choice__content {
  background:
    radial-gradient(circle at 12% 0%, rgb(125 66 244 / 0.13), transparent 45%),
    linear-gradient(145deg, #f9f5ff, #fffafd);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 14px 30px rgb(125 66 244 / 0.12);
  color: #4e287d;
}

.gender-choice__pronoun {
  align-items: center;
  background: linear-gradient(145deg, #efe7fc, #fff0f7);
  border: 1px solid #e3d4f5;
  border-radius: 14px;
  color: #6b3aa8;
  display: flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  letter-spacing: 0.01em;
  width: 48px;
}

.gender-choice__copy {
  display: block;
  min-width: 0;
}

.gender-choice__copy strong,
.gender-choice__copy small {
  display: block;
}

.gender-choice__copy strong {
  color: #372448;
  font-size: 13px;
  line-height: 1.35;
}

.gender-choice__copy small {
  color: #8a7c96;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 4px;
}

.hero-choice__check {
  background: #7d42f4;
  border: 3px solid #efe7fc;
  border-radius: 50%;
  height: 22px;
  opacity: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  transform: scale(0.72);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  width: 22px;
}

.hero-choice__check::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 7px;
  left: 6px;
  position: absolute;
  top: 3px;
  transform: rotate(42deg);
  width: 4px;
}

.gender-choice:has(input:checked) .hero-choice__check,
.eye-color-choice:has(input:checked) .hero-choice__check {
  opacity: 1;
  transform: scale(1);
}

.eye-color-choice__content {
  align-items: center;
  border-radius: 17px;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  overflow: hidden;
  padding: 17px 8px 13px;
  text-align: center;
}

.eye-color-choice__content > strong {
  color: #433151;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 11px;
}

.eye-color-choice__eye {
  --iris: #85502f;
  --iris-light: #bd7b50;
  --iris-shadow: #56301d;
  background: linear-gradient(180deg, #fff, #fbf8f1);
  border: 1px solid #d7d0db;
  border-radius: 52% 48% 50% 50% / 58% 58% 42% 42%;
  box-shadow:
    0 7px 15px rgb(44 24 61 / 0.1),
    inset 0 -5px 8px rgb(87 61 105 / 0.04);
  display: block;
  height: 36px;
  overflow: hidden;
  position: relative;
  width: 68px;
}

.eye-color-choice__eye::before {
  background:
    radial-gradient(circle at 35% 28%, rgb(255 255 255 / 0.74) 0 8%, transparent 9%),
    radial-gradient(circle at center, var(--iris-light) 0 48%, var(--iris) 49% 72%, var(--iris-shadow) 73% 100%);
  border: 1px solid rgb(40 28 46 / 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.3);
  content: "";
  height: 27px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 27px;
}

.eye-color-choice__eye::after {
  background: #17131d;
  border-radius: 50%;
  box-shadow: inset 1px 1px 1px rgb(255 255 255 / 0.12);
  content: "";
  height: 11px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
}

.eye-color-choice__eye > span {
  background: rgb(255 255 255 / 0.88);
  border-radius: 50%;
  height: 4px;
  left: calc(50% - 6px);
  position: absolute;
  top: 10px;
  width: 4px;
  z-index: 1;
}

.eye-color-choice--blue .eye-color-choice__eye {
  --iris: #3f8fdf;
  --iris-light: #72bdff;
  --iris-shadow: #225ba7;
}

.eye-color-choice--green .eye-color-choice__eye {
  --iris: #469958;
  --iris-light: #7acd84;
  --iris-shadow: #286c39;
}

.eye-color-choice--gray .eye-color-choice__eye {
  --iris: #7c8a98;
  --iris-light: #b8c5ce;
  --iris-shadow: #4f5e6d;
}

.eye-color-choice--other .eye-color-choice__eye::before {
  background:
    radial-gradient(circle at 35% 28%, rgb(255 255 255 / 0.75) 0 8%, transparent 9%),
    conic-gradient(from 30deg, #63e6d4, #7d42f4, #ef4f9b, #ffd98a, #63e6d4);
}

.eye-color-choice .hero-choice__check {
  right: 8px;
  top: 8px;
}

.wizard-step__note {
  align-items: start;
  background: linear-gradient(115deg, #f8f4ff, #fff6fa);
  border: 1px solid #eadff3;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  padding: 15px 16px;
}

.wizard-step__note > span {
  background: #63e6d4;
  border: 4px solid #dcfaf5;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 14px;
  margin-top: 4px;
  width: 14px;
}

.wizard-step__note p {
  color: #625471;
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}

.wizard-step__note strong {
  color: #38264c;
}

.wizard-step__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
}

.wizard-step__actions [data-wizard-next],
.wizard-step__actions [data-wizard-back] {
  display: none;
}

.has-story-wizard .wizard-step__actions [data-wizard-next],
.has-story-wizard .wizard-step__actions [data-wizard-back] {
  display: inline-flex;
}

.create-action {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.create-action--primary {
  background: linear-gradient(105deg, #7541f5 0%, #bb45e7 48%, #ef4f9b 100%);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 13px 28px rgb(125 66 244 / 0.24);
  color: #fff;
}

.create-action--primary:hover {
  box-shadow: 0 17px 35px rgb(205 67 183 / 0.3);
  transform: translateY(-2px);
}

.create-action--primary > span {
  transition: transform 180ms ease;
}

.create-action--primary:hover > span {
  transform: translateX(4px);
}

.create-action--secondary {
  background: #fff;
  border: 1px solid #ddd4e7;
  color: #59476c;
}

.create-action--secondary:hover {
  border-color: #aa93c8;
  color: var(--accent);
}

.create-action:focus-visible,
.suggestion-pills button:focus-visible,
.companion-pills button:focus-visible,
.avoid-details summary:focus-visible {
  outline: 3px solid rgb(125 66 244 / 0.28);
  outline-offset: 3px;
}

.style-choice-status {
  align-items: center;
  background: #f7f2fc;
  border: 1px solid #eadff3;
  border-radius: 999px;
  display: none;
  font-size: 11px;
  gap: 7px;
  margin: -10px 0 19px auto;
  padding: 8px 12px;
  width: fit-content;
}

.has-story-wizard .style-choice-status {
  display: flex;
}

.style-choice-status span {
  color: #7e708d;
}

.style-choice-status strong {
  color: #4b3268;
}

.visual-style-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visual-style-card {
  background: #fff;
  border: 1px solid #e7dfed;
  border-radius: 19px;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    filter 200ms ease,
    opacity 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.visual-style-card:hover {
  border-color: #baa5d6;
  transform: translateY(-3px);
}

.visual-style-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 35px rgb(125 66 244 / 0.14);
}

.visual-style-card.is-unavailable {
  background: #faf8fc;
  border-color: #eee8f2;
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.52;
  transform: none;
}

.visual-style-card.is-unavailable:hover {
  border-color: #eee8f2;
  transform: none;
}

.visual-style-card.is-unavailable:hover .visual-style-card__art img {
  transform: none;
}

.visual-style-card__art {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 65% 28%, rgb(255 255 255 / 0.82), transparent 11%),
    linear-gradient(150deg, #6a39d5, #e66aaf);
  display: block;
  overflow: hidden;
  position: relative;
}

.visual-style-card__art img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
  width: 100%;
}

.visual-style-card:hover .visual-style-card__art img {
  transform: scale(1.025);
}

.visual-style-card--fairytale-world .visual-style-card__art {
  background: radial-gradient(circle at 25% 25%, #ffd98a 0 4%, transparent 5%),
    radial-gradient(circle at 80% 18%, #fff 0 2%, transparent 3%),
    linear-gradient(145deg, #254c89, #48bca5 56%, #a054ce);
}

.visual-style-card--cinematic .visual-style-card__art {
  background: radial-gradient(circle at 75% 22%, #ffc97b 0 7%, transparent 19%),
    linear-gradient(160deg, #1d1737, #8f405c 58%, #e89f61);
}

.visual-style-card--russian-fairytale .visual-style-card__art {
  background: radial-gradient(circle at 20% 80%, #ffd98a 0 3%, transparent 4%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgb(255 255 255 / 0.1) 13px 15px),
    linear-gradient(145deg, #862f53, #e2a44e);
}

.visual-style-card--watercolor .visual-style-card__art {
  background:
    radial-gradient(circle at 20% 25%, rgb(255 255 255 / 0.7), transparent 28%),
    radial-gradient(circle at 70% 70%, #79c6c4, transparent 45%),
    linear-gradient(145deg, #e99cc7, #aa9ae1 48%, #f3cf95);
}

.visual-style-card--realistic .visual-style-card__art {
  background: radial-gradient(circle at 73% 20%, #ffe5b6 0 8%, transparent 24%),
    linear-gradient(150deg, #436b75, #a9c8ae 53%, #cc8c78);
}

.visual-style-card--anime .visual-style-card__art {
  background: radial-gradient(circle at 73% 17%, #fff 0 3%, transparent 4%),
    linear-gradient(155deg, #253a83, #a852cb 48%, #ef709f);
}

.visual-style-card--paper-theatre .visual-style-card__art {
  background:
    radial-gradient(circle at 72% 24%, rgb(255 225 156 / 0.88), transparent 25%),
    repeating-linear-gradient(
      135deg,
      rgb(255 255 255 / 0.14) 0 3px,
      transparent 3px 14px
    ),
    linear-gradient(150deg, #563463, #b75f78 52%, #dbac68);
}

.visual-style-card__copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 12px 11px 13px;
}

.visual-style-card__copy strong {
  color: #332146;
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.visual-style-card__copy small {
  color: #807487;
  display: -webkit-box;
  font-size: 9px;
  line-height: 1.45;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.visual-style-card__choice {
  color: #8c7a9f;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.visual-style-card:has(input:checked) .visual-style-card__choice {
  color: var(--accent);
}

.wizard-step__microcopy,
.wizard-step__privacy {
  color: #7b7087;
  font-size: 11px;
  line-height: 1.65;
  margin: 15px 0 0;
}

.scenario-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.scenario-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e4ddec;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 106px;
  overflow: hidden;
  padding: 10px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.scenario-card:hover {
  border-color: #b8a2d4;
  transform: translateY(-2px);
}

.scenario-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 13px 27px rgb(125 66 244 / 0.11);
}

.scenario-card__art {
  background: linear-gradient(145deg, #362058, #7a46a3);
  border-radius: 13px;
  display: block;
  height: 84px;
  overflow: hidden;
  position: relative;
}

.scenario-card__art i,
.scenario-card__art b,
.scenario-card__art em {
  display: block;
  position: absolute;
}

.scenario-card__art i {
  background: #ffd98a;
  border-radius: 50%;
  box-shadow:
    26px 16px 0 -5px #63e6d4,
    -18px 26px 0 -6px #f28ac0;
  height: 13px;
  left: 30px;
  top: 19px;
  width: 13px;
}

.scenario-card__art b,
.scenario-card__art em {
  background: #1f443e;
  border-radius: 80% 8% 70% 20%;
  bottom: -13px;
  height: 62px;
  transform: rotate(34deg);
  width: 26px;
}

.scenario-card__art b {
  left: 9px;
}

.scenario-card__art em {
  right: 7px;
  transform: scaleX(-1) rotate(34deg);
}

.scenario-card--space-journey .scenario-card__art {
  background: radial-gradient(circle at 68% 28%, #fbd27f 0 8%, transparent 9%),
    radial-gradient(circle at 25% 18%, #fff 0 2%, transparent 3%),
    linear-gradient(150deg, #18164c, #533599);
}

.scenario-card--space-journey .scenario-card__art b,
.scenario-card--space-journey .scenario-card__art em {
  background: #70d8dc;
  border-radius: 50%;
  bottom: 8px;
  height: 31px;
  transform: none;
  width: 31px;
}

.scenario-card--first-day .scenario-card__art {
  background: linear-gradient(150deg, #82c7b8, #f0c57e);
}

.scenario-card--first-day .scenario-card__art b,
.scenario-card--first-day .scenario-card__art em {
  background: #fff5da;
  border-radius: 8px 8px 0 0;
  bottom: 0;
  height: 48px;
  transform: none;
  width: 32px;
}

.scenario-card--birthday-wonders .scenario-card__art {
  background: linear-gradient(145deg, #8d4bb9, #ed78a9);
}

.scenario-card--birthday-wonders .scenario-card__art b,
.scenario-card--birthday-wonders .scenario-card__art em {
  background: #ffd98a;
  border-radius: 50% 50% 46% 54%;
  bottom: 9px;
  height: 34px;
  transform: none;
  width: 27px;
}

.scenario-card--underwater-city .scenario-card__art {
  background:
    radial-gradient(circle at 22% 18%, rgb(255 255 255 / 0.88) 0 2%, transparent 3%),
    radial-gradient(circle at 76% 31%, rgb(99 230 212 / 0.72) 0 5%, transparent 6%),
    linear-gradient(155deg, #171a56 0%, #315c9a 52%, #38a9a1 100%);
}

.scenario-card--underwater-city .scenario-card__art i {
  background: #ffd98a;
  box-shadow:
    8px 10px 0 -4px rgb(255 255 255 / 0.72),
    23px -8px 0 -4px #63e6d4;
  left: 25px;
  top: 28px;
}

.scenario-card--underwater-city .scenario-card__art b,
.scenario-card--underwater-city .scenario-card__art em {
  background: linear-gradient(180deg, #83ead6, #277f77);
  border-radius: 70% 30% 12% 10%;
  bottom: -8px;
  height: 47px;
  transform: rotate(-10deg);
  width: 18px;
}

.scenario-card--underwater-city .scenario-card__art b {
  left: 13px;
}

.scenario-card--underwater-city .scenario-card__art em {
  right: 10px;
  transform: scaleX(-1) rotate(-16deg);
}

.scenario-card--dragon-valley .scenario-card__art {
  background:
    radial-gradient(circle at 72% 19%, #ffd98a 0 7%, transparent 8%),
    linear-gradient(155deg, #38235d 0%, #7d42a9 46%, #d16d9e 100%);
}

.scenario-card--dragon-valley .scenario-card__art i {
  background: #63e6d4;
  border-radius: 66% 48% 58% 42%;
  box-shadow:
    12px -6px 0 -4px #ffd98a,
    18px 7px 0 -5px #ef91ba;
  height: 17px;
  left: 28px;
  top: 24px;
  transform: rotate(-14deg);
  width: 24px;
}

.scenario-card--dragon-valley .scenario-card__art b,
.scenario-card--dragon-valley .scenario-card__art em {
  background: linear-gradient(145deg, #6c3d91, #2f2259);
  border-radius: 50% 50% 20% 20%;
  bottom: -17px;
  height: 50px;
  transform: rotate(18deg);
  width: 34px;
}

.scenario-card--dragon-valley .scenario-card__art b {
  left: -4px;
}

.scenario-card--dragon-valley .scenario-card__art em {
  right: -3px;
  transform: scaleX(-1) rotate(21deg);
}

.scenario-card strong,
.scenario-card small {
  display: block;
}

.scenario-card strong {
  color: #362548;
  font-size: 13px;
  line-height: 1.35;
}

.scenario-card small {
  color: #817589;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 5px;
}

.lesson-pills {
  margin-top: 14px;
}

.lesson-pill span,
.suggestion-pills button,
.companion-pills button {
  align-items: center;
  background: #faf8fc;
  border: 1px solid #e3dce9;
  border-radius: 999px;
  color: #645471;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.35;
  min-height: 44px;
  padding: 10px 14px;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lesson-pill:hover span,
.suggestion-pills button:hover,
.companion-pills button:hover {
  border-color: #b9a3d3;
  transform: translateY(-1px);
}

.lesson-pill input:checked + span,
.suggestion-pills button.is-selected,
.companion-pills button.is-selected {
  background: #efe7fc;
  border-color: #9e72da;
  color: #5b2f98;
}

.suggestion-pills,
.companion-pills {
  display: none;
  margin-bottom: 11px;
}

.has-story-wizard .suggestion-pills,
.has-story-wizard .companion-pills {
  display: flex;
}

.avoid-details {
  background: #faf8fc;
  border: 1px solid #e6dfec;
  border-radius: 16px;
  overflow: hidden;
}

.avoid-details summary {
  align-items: center;
  color: #4b3b5b;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 54px;
  padding: 13px 16px;
}

.avoid-details summary::-webkit-details-marker {
  display: none;
}

.avoid-details summary::after {
  color: var(--accent);
  content: "+";
  font-size: 18px;
  margin-left: 14px;
}

.avoid-details[open] summary::after {
  content: "−";
}

.avoid-details summary small {
  color: #94889f;
  font-size: 9px;
  font-weight: 700;
  margin-left: auto;
}

.avoid-details .create-field {
  border-top: 1px solid #e8e1ee;
  margin: 0;
  padding: 15px 16px 16px;
}

.photo-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(230px, 0.9fr) minmax(220px, 1.1fr);
}

.photo-upload {
  background:
    radial-gradient(circle at 50% 35%, rgb(125 66 244 / 0.1), transparent 34%),
    #faf8fd;
  border: 1px dashed #bca9d0;
  border-radius: 20px;
  min-height: 250px;
  overflow: hidden;
  position: relative;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.photo-upload:hover,
.photo-upload.is-dragging {
  background-color: #f5effd;
  border-color: var(--accent);
}

.photo-upload.is-invalid {
  background-color: #fff8f7;
  border-color: #c96b64;
  box-shadow: 0 0 0 4px rgb(164 47 40 / 0.08);
}

.photo-upload:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgb(125 66 244 / 0.14);
}

.photo-upload__input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.photo-upload__empty,
.photo-upload__preview {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.photo-upload__empty[hidden],
.photo-upload__preview[hidden] {
  display: none;
}

.photo-upload__empty strong {
  color: #3a2850;
  font-size: 13px;
  margin-top: 14px;
}

.photo-upload__empty small {
  color: #8e829a;
  font-size: 10px;
  margin-top: 5px;
}

.photo-upload__portrait {
  background: linear-gradient(145deg, #e7dcfa, #fce7f0);
  border: 1px solid #ded1ee;
  border-radius: 50%;
  display: block;
  height: 66px;
  overflow: hidden;
  position: relative;
  width: 66px;
}

.photo-upload__portrait i,
.photo-upload__portrait b {
  background: #8b60ca;
  display: block;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.photo-upload__portrait i {
  border-radius: 50%;
  height: 21px;
  top: 14px;
  width: 21px;
}

.photo-upload__portrait b {
  border-radius: 21px 21px 0 0;
  bottom: -2px;
  height: 28px;
  width: 41px;
}

.photo-upload__button {
  background: #fff;
  border: 1px solid #ddd3e7;
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  margin-top: 15px;
  padding: 9px 13px;
}

.photo-upload__preview {
  background: #1c1134;
  padding: 0;
}

.photo-upload__preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-upload__preview span {
  background: rgb(18 10 45 / 0.8);
  border-radius: 999px;
  bottom: 12px;
  color: #fff;
  font-size: 9px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 7px 10px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-guidance {
  background: linear-gradient(145deg, #f6f2fb, #fff);
  border: 1px solid #e5ddec;
  border-radius: 20px;
  padding: 22px;
}

.photo-guidance-stack {
  display: grid;
  gap: 12px;
}

.photo-quality-error {
  align-items: start;
  background: #fff5f3;
  border: 1px solid #efc7c2;
  border-radius: 16px;
  color: #813c36;
  display: grid;
  gap: 11px;
  grid-template-columns: 30px minmax(0, 1fr);
  margin: -4px 0 18px;
  padding: 13px 15px;
}

.photo-quality-error[hidden] {
  display: none;
}

.photo-quality-error__mark {
  align-items: center;
  background: #a42f28;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.photo-quality-error strong {
  display: block;
  font-size: 12px;
  margin: 1px 0 3px;
}

.photo-quality-error p {
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.photo-guidance__title {
  color: #38254d;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
}

.photo-guidance ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.photo-guidance li {
  color: #665873;
  font-size: 12px;
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.photo-guidance li::before {
  background: #63d9c8;
  border: 3px solid #dcf8f4;
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 3px;
  width: 10px;
}

.photo-guidance > p:last-child {
  border-top: 1px solid #e7e0ec;
  color: #887c94;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  padding-top: 15px;
}

.photo-safety {
  align-items: start;
  background:
    radial-gradient(circle at 92% 8%, rgb(99 230 212 / 0.16), transparent 34%),
    #f3fbf9;
  border: 1px solid #cdebe6;
  border-radius: 20px;
  display: grid;
  gap: 13px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px;
}

.photo-safety__icon {
  align-items: center;
  background: #fff;
  border: 1px solid #c9e9e3;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgb(50 133 121 / 0.09);
  color: #319f91;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.photo-safety__icon svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 23px;
}

.photo-safety strong {
  color: #284d48;
  display: block;
  font-size: 12px;
  margin: 1px 0 6px;
}

.photo-safety p {
  color: #58736f;
  font-size: 10px;
  line-height: 1.58;
  margin: 0;
}

.photo-safety p + p {
  margin-top: 7px;
}

.photo-safety a {
  color: #237e73;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 9px;
  text-underline-offset: 3px;
}

.photo-safety a:hover {
  color: #6f35e4;
}

.photo-safety a:focus-visible {
  outline: 3px solid rgb(99 230 212 / 0.6);
  outline-offset: 3px;
}

.create-terms-field {
  border: 1px solid transparent;
  border-radius: 13px;
  margin-top: 18px;
  padding: 9px 10px 8px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.create-terms-field.is-invalid {
  background: #fff8f7;
  border-color: #e4b3af;
}

.create-terms {
  align-items: flex-start;
  color: #786d84;
  cursor: pointer;
  display: flex;
  font-size: 10px;
  gap: 10px;
  margin: 0;
}

.create-terms > span {
  display: block;
  line-height: 18px;
  min-height: 18px;
}

.create-terms input {
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.create-terms-field.is-invalid .create-terms {
  color: #7f312c;
}

.create-terms-field.is-invalid .create-terms input,
.create-terms input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px #a42f28;
  border-radius: 3px;
}

.create-terms a {
  color: #6f35e4;
  font-weight: 800;
  text-underline-offset: 2px;
}

.create-terms a:hover {
  color: #d53f91;
}

.create-terms input:focus-visible,
.create-terms a:focus-visible {
  outline: 3px solid rgb(99 230 212 / 0.65);
  outline-offset: 3px;
}

.create-terms__errors {
  margin-top: 7px;
}

.create-terms__errors:empty {
  display: none;
}

.preview-price-note {
  align-items: center;
  background:
    radial-gradient(circle at 90% 0%, rgb(99 230 212 / 0.14), transparent 34%),
    linear-gradient(135deg, #f5fffc, #fbf8ff);
  border: 1px solid #d6ece7;
  border-radius: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 17px 18px;
}

.preview-price-note__mark {
  align-items: center;
  background: linear-gradient(145deg, #5dddc6, #7d42f4);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgb(70 175 156 / 0.2);
  color: #fff;
  display: flex;
  font-size: 15px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.preview-price-note__copy p {
  color: #258f7d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.preview-price-note__copy h3 {
  color: #2d2140;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 14px;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin: 0 0 5px;
}

.preview-price-note__copy > span {
  color: #70637b;
  display: block;
  font-size: 10px;
  line-height: 1.55;
}

.preview-price-note > strong {
  background: #fff;
  border: 1px solid #dceee9;
  border-radius: 999px;
  color: #287d6f;
  font-size: 10px;
  padding: 8px 11px;
  white-space: nowrap;
}

.preview-price-note--style-expansion {
  margin-top: 18px;
}

.final-summary {
  background: #faf8fc;
  border: 1px solid #e8e0ee;
  border-radius: 18px;
  display: none;
  margin-top: 24px;
  padding: 17px 18px;
}

.has-story-wizard .final-summary {
  display: block;
}

.final-summary__eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}

.final-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.final-summary dl > div {
  align-items: baseline;
  border-top: 1px solid #eae3ef;
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding-top: 8px;
}

.final-summary dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.final-summary dt {
  color: #91849d;
  font-size: 10px;
  font-weight: 700;
}

.final-summary dd {
  color: #443354;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.create-action--submit {
  min-width: 250px;
}

.story-preview {
  background:
    radial-gradient(circle at 80% 8%, rgb(239 79 155 / 0.21), transparent 26%),
    radial-gradient(circle at 5% 48%, rgb(99 230 212 / 0.13), transparent 28%),
    linear-gradient(145deg, #100725 0%, #160a34 48%, #0b0824 100%);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgb(15 7 39 / 0.2);
  color: #fff;
  overflow: hidden;
  padding: 18px;
  position: sticky;
  top: 100px;
}

.story-preview::before {
  background: var(--gold);
  border-radius: 50%;
  box-shadow:
    21px 18px 0 -3px #63e6d4,
    -15px 40px 0 -4px #ee79b5;
  content: "";
  height: 5px;
  opacity: 0.8;
  position: absolute;
  right: 33px;
  top: 67px;
  width: 5px;
}

.story-preview__topline {
  align-items: center;
  color: #c9badd;
  display: flex;
  font-size: 8px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.15em;
  padding: 2px 3px 15px;
  text-transform: uppercase;
}

.story-preview__topline i {
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgb(255 217 138 / 0.65);
  height: 5px;
  width: 5px;
}

.story-preview__book {
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgb(5 2 18 / 0.32);
  overflow: hidden;
  position: relative;
}

.story-preview__book img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 220ms ease,
    transform 420ms ease;
  width: 100%;
}

.story-preview__book-shade {
  background: linear-gradient(180deg, transparent 28%, rgb(12 6 31 / 0.2) 55%, rgb(9 4 25 / 0.94) 100%);
  inset: 0;
  position: absolute;
}

.story-preview__book-copy {
  bottom: 0;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
}

.story-preview__example-label {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-bottom: 10px;
}

.story-preview__example-label > span {
  background: rgb(255 217 138 / 0.13);
  border: 1px solid rgb(255 217 138 / 0.25);
  border-radius: 999px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 7px;
  text-transform: uppercase;
}

.story-preview__example-label > strong {
  color: #f2e8fb;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.story-preview__book-copy h2 {
  margin: 0;
}

.story-preview__book-copy h2 > strong,
.story-preview__book-copy h2 > small {
  display: block;
}

.story-preview__book-copy h2 > strong {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(17px, 2.1vw, 24px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.story-preview__hero-traits {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.story-preview__hero-traits > span {
  align-items: center;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 999px;
  color: #eee5f6;
  display: inline-flex;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 7px;
  font-weight: 800;
  gap: 5px;
  letter-spacing: 0.02em;
  line-height: 1;
  min-height: 21px;
  padding: 5px 8px;
}

.story-preview__hero-traits > span[hidden] {
  display: none;
}

.story-preview__hero-traits b {
  font: inherit;
}

.story-preview__eye-swatch {
  background: #8b5432;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 50%;
  display: block;
  height: 8px;
  width: 8px;
}

.story-preview__eye-swatch--blue {
  background: #4a9be9;
}

.story-preview__eye-swatch--green {
  background: #55a965;
}

.story-preview__eye-swatch--gray {
  background: #8a9aa9;
}

.story-preview__eye-swatch--other {
  background: conic-gradient(#63e6d4, #7d42f4, #ef4f9b, #ffd98a, #63e6d4);
}

.story-preview__book-copy h2 > small {
  color: #d2c7dd;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 6px;
}

.story-preview__style-slots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.story-preview__style-slots > button {
  appearance: none;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 13px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 0;
  padding: 8px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.story-preview__style-slots > button:not(:disabled):hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 217 138 / 0.34);
  transform: translateY(-1px);
}

.story-preview__style-slots > button:focus-visible {
  outline: 3px solid rgb(99 230 212 / 0.42);
  outline-offset: 2px;
}

.story-preview__style-slots > button.is-active {
  background: rgb(125 66 244 / 0.2);
  border-color: rgb(198 158 255 / 0.48);
}

.story-preview__style-slots > button:disabled {
  cursor: default;
  opacity: 0.68;
}

.story-preview__slot-visual {
  aspect-ratio: 1;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 9px;
  display: block;
  overflow: hidden;
  position: relative;
}

.story-preview__slot-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-preview__slot-visual > span {
  align-items: center;
  color: #a991c5;
  display: flex;
  font-size: 7px;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.story-preview__slot-copy {
  align-self: center;
  display: block;
  min-width: 0;
}

.story-preview__slot-copy small,
.story-preview__slot-copy strong {
  display: block;
}

.story-preview__slot-copy small {
  color: #9f8db5;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.story-preview__slot-copy strong {
  color: #e7dfef;
  font-size: 9px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-preview__summary {
  background: rgb(255 255 255 / 0.055);
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 17px;
  margin-top: 10px;
  padding: 15px;
}

.story-preview__summary > p {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 11px;
}

.story-preview__summary ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-preview__summary li {
  align-items: center;
  color: #c5b8d3;
  display: flex;
  font-size: 9px;
  gap: 8px;
  line-height: 1.4;
}

.story-preview__summary li span {
  background: #63e6d4;
  border: 2px solid rgb(99 230 212 / 0.18);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.story-preview__caption {
  color: #837596;
  font-size: 8px;
  line-height: 1.55;
  margin: 12px 4px 2px;
}

.page--create-flow .visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1040px) {
  .create-flow__intro {
    align-items: start;
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .create-flow__intro > p {
    max-width: 720px;
  }

  .story-wizard__layout {
    grid-template-columns: 1fr;
  }

  .story-preview {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
    position: static;
  }

  .story-preview__topline,
  .story-preview__caption {
    grid-column: 1 / -1;
  }

  .story-preview__book {
    grid-row: span 2;
  }

  .story-preview__style-slots,
  .story-preview__summary {
    margin-top: 0;
  }
}

@media (max-width: 959px) {
  .create-flow-body .nav-toggle {
    display: none;
  }

  .create-flow-body .site-nav {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    position: static;
  }

  .create-flow-body .site-nav__actions {
    align-items: center;
    flex-direction: row;
  }

  .create-flow-body .site-nav__actions .nav-account,
  .create-flow-body .site-nav__actions .nav-form button {
    padding: 9px 5px;
    text-align: right;
  }
}

@media (max-width: 720px) {
  .create-flow {
    padding: 36px 20px 72px;
  }

  .create-flow__intro {
    margin-bottom: 23px;
  }

  .create-flow__intro h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .story-wizard__progress {
    border-radius: 17px;
    padding: 14px 16px;
  }

  .story-wizard__steps {
    display: none;
  }

  .story-wizard__progress-copy,
  .story-wizard__progress-track {
    display: flex;
  }

  .story-wizard__progress-track {
    display: block;
  }

  .story-wizard__paper {
    border-radius: 24px;
    padding: 27px 21px;
  }

  .wizard-step__header {
    gap: 13px;
    margin-bottom: 28px;
  }

  .wizard-step__number {
    border-radius: 13px;
    height: 42px;
    width: 42px;
  }

  .wizard-step__header h2 {
    font-size: 25px;
  }

  .visual-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eye-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-style-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .photo-layout {
    grid-template-columns: 1fr;
  }

  .photo-upload {
    min-height: 270px;
  }

  .story-preview {
    border-radius: 24px;
    display: block;
  }

  .story-preview__book {
    aspect-ratio: 1;
  }

  .story-preview__style-slots,
  .story-preview__summary {
    margin-top: 10px;
  }

  .story-preview__caption {
    margin-top: 12px;
  }
}

@media (max-width: 580px) {
  .create-flow-body .brand__word small {
    display: none;
  }

  .create-flow-body .site-header {
    padding-left: 8px;
    padding-right: 8px;
  }

  .create-flow-body .site-header__inner {
    padding-left: 11px;
  }

  .create-flow-body .site-nav a,
  .create-flow-body .nav-form button {
    font-size: 11px;
  }

  .create-flow {
    padding-left: 12px;
    padding-right: 12px;
  }

  .create-flow__intro {
    padding: 0 8px;
  }

  .create-flow__intro > p {
    font-size: 13px;
  }

  .wizard-step__header {
    grid-template-columns: 1fr;
  }

  .wizard-step__number {
    height: 37px;
    width: 37px;
  }

  .visual-style-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .visual-style-card {
    align-items: center;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 112px;
  }

  .visual-style-card__art {
    height: 112px;
    width: 112px;
  }

  .gender-choice__content {
    gap: 9px;
    padding-left: 10px;
    padding-right: 35px;
  }

  .gender-choice__pronoun {
    height: 42px;
    width: 42px;
  }

  .wizard-step__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-step__actions > span:empty {
    display: none;
  }

  .create-action {
    width: 100%;
  }

  .wizard-step__actions--submit .create-action--submit {
    order: 2;
  }

  .wizard-step__actions--submit [data-wizard-back] {
    order: 1;
  }

  .final-summary dl > div {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  .preview-price-note {
    align-items: start;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .preview-price-note__mark {
    border-radius: 12px;
    height: 38px;
    width: 38px;
  }

  .preview-price-note > strong {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .gender-choice-grid,
  .eye-color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gender-choice__content {
    align-items: flex-start;
    flex-direction: column;
    min-height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-story-wizard .wizard-step {
    animation: none;
  }

  .gender-choice__content,
  .eye-color-choice__content,
  .hero-choice__check,
  .visual-style-card,
  .visual-style-card__art img,
  .story-preview__book img,
  .story-preview__style-slots > button {
    transition: none;
  }
}

.create-limit {
  align-items: center;
  display: flex;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  padding: 54px 26px 76px;
  position: relative;
}

.create-limit__shell {
  margin: 0 auto;
  max-width: 1080px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.create-limit__paper {
  background: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(228 221 236 / 0.9);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgb(53 28 91 / 0.11);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.75fr);
  margin: 0 auto;
  max-width: 1080px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.create-limit__paper--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  max-width: 900px;
}

.create-limit__copy {
  padding: clamp(38px, 6vw, 72px);
}

.create-limit__signal {
  align-items: center;
  background: linear-gradient(145deg, #eee6ff 0%, #fae5f1 100%);
  border: 1px solid #dfd1f4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgb(101 62 154 / 0.12);
  display: flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 26px;
  position: relative;
  width: 52px;
}

.create-limit__signal::before,
.create-limit__signal::after,
.create-limit__signal span::before,
.create-limit__signal span::after {
  background: linear-gradient(145deg, #7d42f4, #ef4f9b);
  border-radius: 50% 50% 48% 52%;
  content: "";
  height: 13px;
  position: absolute;
  width: 13px;
}

.create-limit__signal::before {
  transform: translate(-7px, -7px);
}

.create-limit__signal::after {
  transform: translate(7px, -7px) rotate(90deg);
}

.create-limit__signal span::before {
  transform: translate(-7px, 7px) rotate(-90deg);
}

.create-limit__signal span::after {
  transform: translate(7px, 7px) rotate(180deg);
}

.create-limit__copy h1 {
  font-size: clamp(34px, 4.25vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.03;
  margin: 0;
  max-width: 690px;
}

.create-limit__lead {
  color: #665a76;
  font-size: 16px;
  line-height: 1.75;
  margin: 24px 0 0;
  max-width: 650px;
}

.create-limit__paths {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 24px;
}

.create-limit__path {
  align-items: flex-start;
  background: linear-gradient(145deg, #fbf9fd, #f5f0fb);
  border: 1px solid #e8dff0;
  border-radius: 18px;
  display: grid;
  gap: 11px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 15px;
}

.create-limit__path > span {
  align-items: center;
  background: #fff;
  border: 1px solid #dfd3ec;
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  font-size: 8px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  letter-spacing: 0.05em;
  width: 30px;
}

.create-limit__path p {
  color: #746b82;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.create-limit__path strong {
  color: #3f3150;
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 3px;
}

.create-limit__features {
  display: grid;
  gap: 15px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.create-limit__features li {
  align-items: center;
  color: #493c58;
  display: grid;
  font-size: 14px;
  gap: 13px;
  grid-template-columns: 34px minmax(0, 1fr);
  line-height: 1.45;
}

.create-limit__features span {
  align-items: center;
  background: #f2ecfb;
  border: 1px solid #e4d9f4;
  border-radius: 50%;
  color: #7541f5;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.06em;
  width: 34px;
}

.create-limit__back {
  color: #6e5c7e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  margin-top: 36px;
  text-decoration: none;
}

.create-limit__back:hover {
  color: var(--accent);
}

.create-limit__support {
  align-items: center;
  background: rgb(255 255 255 / 0.74);
  border: 1px solid rgb(228 221 236 / 0.92);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgb(53 28 91 / 0.07);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 18px auto 0;
  max-width: 900px;
  padding: 18px 20px;
}

.create-limit__support-copy {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.create-limit__support-mark {
  align-items: center;
  background: #f2ecfb;
  border: 1px solid #e2d6f2;
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 15px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.create-limit__support h2 {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.create-limit__support p {
  color: #746b82;
  font-size: 12px;
  line-height: 1.55;
  margin: 3px 0 0;
}

.create-limit__support-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.create-limit__support-links a {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ddec;
  border-radius: 999px;
  color: #493c58;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.create-limit__support-links a:hover {
  border-color: #bca5df;
  color: var(--accent);
  transform: translateY(-2px);
}

.create-limit__support-links a > span:first-child {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.create-limit__offer {
  background:
    radial-gradient(circle at 90% 10%, rgb(239 79 155 / 0.18), transparent 35%),
    linear-gradient(155deg, #291d3c 0%, #17111f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 58px);
}

.create-limit__offer-kicker {
  color: #d9c5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.create-limit__amount {
  align-items: center;
  display: flex;
  gap: 16px;
  margin: 19px 0 18px;
}

.create-limit__amount strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.create-limit__amount span {
  color: #e5ddec;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.create-limit__offer > p {
  color: #cfc4d8;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 25px;
}

.create-limit__pay {
  justify-content: space-between;
  width: 100%;
}

.create-limit__pay:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.create-limit__secure {
  align-items: center;
  color: #cfc4d8;
  display: flex;
  font-size: 11px;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.create-limit__secure svg {
  fill: none;
  height: 15px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.create-limit__message {
  color: #d9cfea !important;
  margin: 15px 0 0 !important;
  text-align: center;
}

.create-limit__message.is-error {
  color: #ffb9c8 !important;
}

.create-limit__legal {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #9f92aa !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
  margin: 24px 0 0 !important;
  padding-top: 18px;
  text-align: center;
}

.create-limit__legal a {
  color: #cfc2db;
}

@media (max-width: 820px) {
  .create-limit {
    align-items: flex-start;
    padding: 28px 16px 54px;
  }

  .create-limit__paper {
    border-radius: 26px;
    grid-template-columns: 1fr;
  }

  .create-limit__support {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .create-limit__support-links {
    justify-content: flex-start;
  }

  .create-limit__support-links a {
    justify-content: center;
  }

  .create-limit__copy,
  .create-limit__offer {
    padding: 34px 26px;
  }

  .create-limit__copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .create-limit__back {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .create-limit__paths {
    grid-template-columns: 1fr;
  }

  .create-limit__support-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}
