.fiabe-create-page {
  --create-ink: #2f2a25;
  --create-copy: #6d635a;
  --create-coral: #e97850;
  --create-coral-dark: #bd5636;
  --create-gold: #f4be61;
  --create-sage: #e3eee7;
  --create-night: #1e474b;
  --create-line: rgba(78, 57, 40, .14);
  --create-shadow: 0 24px 64px rgba(86, 58, 36, .12);
  background: #fbf6ee;
  color: var(--create-ink);
}

.fiabe-create-page::before,
.fiabe-create-page .fiabe-section::before {
  display: none;
}

.fiabe-create-page [hidden] {
  display: none !important;
}

.fiabe-create-page .fiabe-container {
  width: min(1160px, calc(100% - 40px));
}

.fiabe-create-hero {
  padding: clamp(38px, 6vw, 72px) 0 clamp(32px, 5vw, 54px);
  background:
    radial-gradient(circle at 10% 12%, rgba(244, 190, 97, .22), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(97, 151, 131, .2), transparent 25rem),
    linear-gradient(180deg, #fffaf0, #fbf6ee);
}

.fiabe-create-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
}

.fiabe-create-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #72533b;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.fiabe-create-back:hover {
  color: var(--create-coral-dark);
}

.fiabe-create-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 68px);
}

.fiabe-create-hero__inner > div:first-child > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--create-copy);
  font-size: clamp(18px, 2vw, 21px);
}

.fiabe-create-gift {
  display: flex;
  min-width: 275px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(53, 105, 82, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 38px rgba(65, 54, 42, .08);
}

.fiabe-create-gift > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffe8a3, #f3b968);
  color: #75471f;
  font-size: 23px;
}

.fiabe-create-gift > div {
  display: grid;
  gap: 3px;
}

.fiabe-create-gift strong {
  color: var(--create-ink);
}

.fiabe-create-gift small {
  color: var(--create-copy);
}

.fiabe-create-shell {
  padding: 0 0 clamp(70px, 9vw, 110px);
}

.fiabe-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.fiabe-create-main {
  min-width: 0;
}

.fiabe-create-progress {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid var(--create-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 32px rgba(86, 58, 36, .06);
}

.fiabe-create-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--create-copy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fiabe-create-progress__top strong {
  color: var(--create-coral-dark);
}

.fiabe-create-page .fiabe-wizard-progress {
  height: 8px;
  margin-top: 12px;
  background: #eadfd3;
}

.fiabe-create-page .fiabe-wizard-progress span {
  background: linear-gradient(90deg, var(--create-coral), var(--create-gold));
}

.fiabe-create-page .fiabe-step-dots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fiabe-create-page .fiabe-step-dots li {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #92867b;
  font-size: 11px;
  text-align: center;
}

.fiabe-create-page .fiabe-step-dots li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #dfd3c8;
  border-radius: 11px;
  background: #fff;
  color: #8a7b70;
  font-weight: 950;
}

.fiabe-create-page .fiabe-step-dots li.is-active,
.fiabe-create-page .fiabe-step-dots li.is-complete {
  color: var(--create-ink);
}

.fiabe-create-page .fiabe-step-dots li.is-active > span {
  border-color: var(--create-coral);
  background: var(--create-coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(190, 87, 54, .2);
}

.fiabe-create-page .fiabe-step-dots li.is-complete > span {
  border-color: rgba(45, 121, 88, .2);
  background: #e8f3ed;
  color: #2d7958;
}

.fiabe-create-errors {
  display: block;
  margin-bottom: 20px;
}

.fiabe-create-errors strong {
  display: block;
  margin-bottom: 8px;
}

.fiabe-create-errors p + p {
  margin-top: 6px;
}

.fiabe-create-form {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 34px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--create-shadow);
}

.fiabe-create-form::before {
  display: none;
}

.fiabe-create-page .fiabe-wizard-step {
  gap: 28px;
}

.fiabe-step-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--create-line);
}

.fiabe-step-heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 19px;
  background: var(--create-night);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .04em;
}

.fiabe-step-heading p {
  margin: 0 0 5px;
  color: var(--create-coral-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fiabe-step-heading h2 {
  margin-bottom: 7px;
  font-size: clamp(28px, 4vw, 40px);
}

.fiabe-step-heading small {
  display: block;
  color: var(--create-copy);
  font-size: 15px;
  line-height: 1.55;
}

.fiabe-create-info {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(57, 115, 89, .14);
  border-radius: 20px;
  background: #edf5ef;
  color: #486158;
}

.fiabe-create-info > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #d8eadf;
  color: #2f7657;
  font-weight: 950;
}

.fiabe-create-info p,
p.fiabe-create-info {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.fiabe-create-info--compact {
  align-items: center;
}

.fiabe-create-fields {
  display: grid;
  gap: 16px;
}

.fiabe-create-fields--three {
  grid-template-columns: 1.25fr .6fr 1fr;
}

.fiabe-create-fields--two {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr);
}

.fiabe-create-page .fiabe-field {
  gap: 8px;
}

.fiabe-create-page .fiabe-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.fiabe-create-page .fiabe-field label > span,
.fiabe-create-page .fiabe-field label > small {
  color: #9a7560;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fiabe-create-page .fiabe-field input,
.fiabe-create-page .fiabe-field textarea,
.fiabe-create-page .fiabe-field select {
  min-height: 54px;
  border-color: #e6d8cb;
  border-radius: 17px;
  background: #fffdf9;
}

.fiabe-create-page .fiabe-field > small {
  color: #8a7d71;
  font-size: 12px;
}

.fiabe-create-page .fiabe-field.is-invalid input,
.fiabe-create-page .fiabe-field.is-invalid textarea,
.fiabe-create-page .fiabe-field.is-invalid select {
  border-color: #d65f45;
  box-shadow: 0 0 0 4px rgba(214, 95, 69, .11);
}

.fiabe-gender-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.fiabe-gender-choice legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--create-ink);
  font-size: 14px;
  font-weight: 900;
}

.fiabe-gender-choice label {
  position: relative;
  display: flex;
  min-height: 62px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border: 1px solid #e6d8cb;
  border-radius: 18px;
  background: #fffdf9;
  color: var(--create-ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fiabe-gender-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fiabe-gender-choice label > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #f6ede4;
  color: #875c45;
  font-size: 15px;
  font-weight: 900;
}

.fiabe-gender-choice label > strong {
  font-size: 13px;
  line-height: 1.2;
}

.fiabe-gender-choice label:has(input:checked) {
  border-color: var(--create-coral);
  background: #fff3eb;
  box-shadow: 0 8px 22px rgba(190, 87, 54, .12);
  transform: translateY(-1px);
}

.fiabe-gender-choice label:has(input:checked) > span {
  background: var(--create-coral);
  color: #fff;
}

.fiabe-gender-choice label:focus-within {
  outline: 3px solid rgba(233, 120, 80, .24);
  outline-offset: 3px;
}

.fiabe-free-story-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(124, 95, 165, .17);
  border-radius: 24px;
  background: linear-gradient(135deg, #f1e9f6, #fff4dc);
  cursor: pointer;
}

.fiabe-free-story-card > input,
.fiabe-theme-card > input,
.fiabe-style-card > input,
.fiabe-voice-card > input,
.fiabe-length-card > input,
.fiabe-story-mode-guided > input {
  position: absolute;
  width: 22px;
  height: 22px;
  right: 16px;
  top: 16px;
  z-index: 4;
  margin: 0;
  opacity: 1;
  accent-color: var(--create-coral);
  cursor: pointer;
}

.fiabe-story-mode-guided > input {
  width: 1px;
  height: 1px;
  right: auto;
  top: auto;
  opacity: 0;
}

.fiabe-free-story-card > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 19px;
  background: rgba(255, 255, 255, .67);
  color: #75539c;
  font-size: 26px;
}

.fiabe-free-story-card > div {
  display: grid;
  gap: 5px;
}

.fiabe-free-story-card strong {
  color: var(--create-ink);
  font-size: 19px;
}

.fiabe-free-story-card small {
  color: #6f6278;
  line-height: 1.5;
}

.fiabe-free-story-card > b,
.fiabe-style-card > b,
.fiabe-voice-card > b,
.fiabe-length-card > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(79, 59, 43, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: transparent;
}

.fiabe-free-story-card > b,
.fiabe-style-card > b,
.fiabe-voice-card > b,
.fiabe-length-card:not(.is-disabled) > b,
.fiabe-theme-card:has(input:checked)::after {
  display: none;
}

.fiabe-free-story-card:has(input:checked),
.fiabe-style-card:has(input:checked),
.fiabe-voice-card:has(input:checked),
.fiabe-length-card:has(input:checked) {
  border-color: var(--create-coral);
  box-shadow: 0 0 0 4px rgba(233, 120, 80, .1);
}

.fiabe-free-story-card:has(input:checked) > b,
.fiabe-style-card:has(input:checked) > b,
.fiabe-voice-card:has(input:checked) > b,
.fiabe-length-card:has(input:checked) > b {
  border-color: var(--create-coral);
  background: var(--create-coral);
  color: #fff;
}

.fiabe-theme-toolbar {
  display: grid;
  gap: 14px;
}

.fiabe-theme-search {
  position: relative;
}

.fiabe-theme-search > span {
  position: absolute;
  left: 17px;
  top: 50%;
  color: #8b7b70;
  font-size: 23px;
  transform: translateY(-52%);
  pointer-events: none;
}

.fiabe-theme-search input {
  width: 100%;
  height: 52px;
  padding: 12px 18px 12px 48px;
  border: 1px solid #e3d5c8;
  border-radius: 17px;
  background: #fffdf9;
  color: var(--create-ink);
  font: inherit;
  outline: 0;
}

.fiabe-theme-search input:focus {
  border-color: var(--create-coral);
  box-shadow: 0 0 0 4px rgba(233, 120, 80, .11);
}

.fiabe-theme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fiabe-theme-filters button {
  appearance: none;
  padding: 9px 13px;
  border: 1px solid #e0d3c7;
  border-radius: 999px;
  background: #fff;
  color: #75685d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.fiabe-theme-filters button.is-active {
  border-color: var(--create-night);
  background: var(--create-night);
  color: #fff;
}

.fiabe-theme-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fiabe-theme-card {
  position: relative;
  display: grid;
  min-height: 215px;
  align-content: start;
  gap: 7px;
  padding: 20px;
  border: 1px solid #e3d6ca;
  border-radius: 23px;
  background: #fffdf9;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fiabe-theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(86, 58, 36, .09);
}

.fiabe-theme-card:has(input:checked) {
  border-color: var(--create-coral);
  background: linear-gradient(145deg, #fff, #fff4e9);
  box-shadow: 0 0 0 4px rgba(233, 120, 80, .1);
}

.fiabe-theme-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 15px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--create-coral);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.fiabe-theme-card[hidden] {
  display: none;
}

.fiabe-theme-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 16px;
  background: #edf3ec;
  color: var(--create-night);
  font-size: 22px;
}

.fiabe-theme-card[data-theme-type="problem"] .fiabe-theme-card__icon {
  background: #f8e7d7;
  color: #9d5b35;
}

.fiabe-theme-card > small {
  color: #927052;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fiabe-theme-card > strong {
  padding-right: 28px;
  color: var(--create-ink);
  font-size: 19px;
  line-height: 1.2;
}

.fiabe-theme-card > em {
  color: var(--create-copy);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.fiabe-theme-card > b {
  margin-top: auto;
  color: #8a7769;
  font-size: 11px;
}

.fiabe-theme-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed #d9c8ba;
  border-radius: 18px;
  color: var(--create-copy);
  text-align: center;
}

.fiabe-skill-extra {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--create-line);
  border-radius: 22px;
  background: #f5f7f2;
}

.fiabe-skill-extra h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.fiabe-skill-extra h3 > span {
  color: #8c7d70;
  font-size: 10px;
  text-transform: uppercase;
}

.fiabe-skill-extra p {
  margin: 0;
  color: var(--create-copy);
  font-size: 13px;
}

.fiabe-skill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fiabe-skill-options label {
  position: relative;
  cursor: pointer;
}

.fiabe-skill-options input {
  position: absolute;
  opacity: 0;
}

.fiabe-skill-options span {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid #d8d8cf;
  border-radius: 999px;
  background: #fff;
  color: #625c55;
  font-size: 12px;
  font-weight: 900;
}

.fiabe-skill-options input:checked + span {
  border-color: var(--create-night);
  background: var(--create-night);
  color: #fff;
}

.fiabe-skill-options label.is-unavailable {
  opacity: .45;
  pointer-events: none;
}

.fiabe-story-mode-guided {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.fiabe-idea-field textarea {
  min-height: 190px !important;
  font-size: 16px;
  line-height: 1.65;
}

.fiabe-idea-prompts > p {
  margin: 0 0 12px;
  color: var(--create-copy);
  font-size: 14px;
  font-weight: 800;
}

.fiabe-create-page .fiabe-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fiabe-create-page .fiabe-examples button {
  justify-content: flex-start;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 17px;
  color: #655348;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.fiabe-create-page .fiabe-examples button > span {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 9px;
  background: #f2e6d9;
  color: #875d3e;
  font-size: 10px;
  font-weight: 950;
}

.fiabe-future-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px dashed #d8cbbc;
  border-radius: 20px;
  background: #faf7f2;
  color: #8d8176;
}

.fiabe-future-option > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #eee7df;
  font-size: 21px;
}

.fiabe-future-option > div {
  display: grid;
  gap: 3px;
}

.fiabe-future-option > b {
  padding: 7px 9px;
  border-radius: 999px;
  background: #ece5de;
  font-size: 9px;
  text-transform: uppercase;
}

.fiabe-style-grid,
.fiabe-voice-grid,
.fiabe-length-grid {
  display: grid;
  gap: 14px;
}

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

.fiabe-style-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
}

.fiabe-style-card__preview {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ece6df;
}

.fiabe-style-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fiabe-style-card__preview i,
.fiabe-style-card__preview i::before,
.fiabe-style-card__preview i::after {
  position: absolute;
  display: block;
  content: "";
}

.fiabe-style-card__preview i {
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, #fff4ae 0 18px, transparent 19px),
    linear-gradient(160deg, #8fc3b1, #f1c88d 70%);
}

.fiabe-style-card__preview i::before {
  left: 13%;
  bottom: -16%;
  width: 74%;
  height: 68%;
  border-radius: 50% 50% 0 0;
  background: #507b61;
  box-shadow: 70px -18px 0 -16px rgba(53, 96, 72, .72);
}

.fiabe-style-card__preview i::after {
  right: 24%;
  bottom: 16%;
  width: 42px;
  height: 58px;
  border-radius: 50% 50% 40% 40%;
  background: #e67d50;
  box-shadow: 0 -21px 0 -8px #f1be92;
}

.fiabe-style-card[data-style-alias="cartone-dolce"] .fiabe-style-card__preview i {
  background: radial-gradient(circle at 72% 24%, #fff48b 0 20px, transparent 21px), linear-gradient(160deg, #82cde3, #ffd477 72%);
}

.fiabe-style-card[data-style-alias="cartone-dolce"] .fiabe-style-card__preview i::before {
  background: #61b370;
  box-shadow: 70px -18px 0 -16px #3f965f;
}

.fiabe-style-card[data-style-alias="acquerello"] .fiabe-style-card__preview i {
  background: radial-gradient(circle at 72% 24%, rgba(255, 239, 159, .8) 0 20px, transparent 22px), linear-gradient(160deg, #b7d8d2, #e9c8b4 70%);
  filter: saturate(.75);
}

.fiabe-style-card[data-style-alias="avventura-magica"] .fiabe-style-card__preview i {
  background: radial-gradient(circle at 72% 24%, #fff1a0 0 18px, transparent 20px), linear-gradient(160deg, #315a79, #946aa7 58%, #f0a96d);
}

.fiabe-style-card__copy {
  display: grid;
  gap: 5px;
  padding: 18px 54px 18px 18px;
}

.fiabe-style-card__copy strong {
  color: var(--create-ink);
  font-size: 18px;
}

.fiabe-style-card__copy small {
  color: var(--create-copy);
  line-height: 1.45;
}

.fiabe-style-card > b {
  position: absolute;
  right: 15px;
  bottom: 18px;
}

.fiabe-voice-grid {
  grid-template-columns: 1fr;
}

.fiabe-voice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid #dfd2c5;
  border-radius: 22px;
  background: #fffdf9;
  cursor: pointer;
}

.fiabe-voice-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #e6f0eb;
  color: var(--create-night);
  font-size: 24px;
}

.fiabe-voice-card__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.fiabe-voice-card__copy strong {
  color: var(--create-ink);
  font-size: 18px;
}

.fiabe-voice-card__copy small {
  color: var(--create-copy);
}

.fiabe-voice-card__copy i {
  width: min(190px, 80%);
  height: 16px;
  margin-top: 5px;
  background: repeating-linear-gradient(90deg, rgba(46, 102, 88, .48) 0 3px, transparent 3px 7px);
  clip-path: polygon(0 40%, 8% 20%, 16% 45%, 24% 5%, 32% 55%, 40% 28%, 48% 72%, 56% 10%, 64% 58%, 72% 32%, 80% 76%, 88% 22%, 96% 46%, 100% 40%, 100% 60%, 96% 54%, 88% 78%, 80% 24%, 72% 68%, 64% 42%, 56% 90%, 48% 28%, 40% 72%, 32% 45%, 24% 95%, 16% 55%, 8% 80%, 0 60%);
}

.fiabe-voice-card audio {
  grid-column: 2 / -1;
  width: 100%;
}

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

.fiabe-length-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  min-height: 230px;
  padding: 24px;
  border: 1px solid #dfd2c5;
  border-radius: 24px;
  background: #fffdf9;
  cursor: pointer;
}

.fiabe-length-card > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #e8f1eb;
  color: var(--create-night);
  font-size: 25px;
}

.fiabe-length-card > div {
  display: grid;
  gap: 7px;
}

.fiabe-length-card small {
  color: #917358;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fiabe-length-card strong {
  color: var(--create-ink);
  font-size: 21px;
}

.fiabe-length-card p {
  margin: 0;
  color: var(--create-copy);
  font-size: 14px;
}

.fiabe-length-card > b {
  position: absolute;
  right: 16px;
  top: 16px;
}

.fiabe-length-card.is-disabled {
  opacity: .58;
  cursor: not-allowed;
}

.fiabe-length-card.is-disabled > b {
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: #e7e0d8;
  color: #786c62;
  font-size: 9px;
  text-transform: uppercase;
}

.fiabe-final-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  gap: 1px;
  border: 1px solid var(--create-line);
  border-radius: 24px;
  background: var(--create-line);
}

.fiabe-final-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  background: #fffdf9;
}

.fiabe-final-summary > div > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: #f3e8da;
  color: #885b3f;
}

.fiabe-final-summary p {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin: 0;
}

.fiabe-final-summary small {
  color: #8b7f74;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fiabe-final-summary strong {
  overflow: hidden;
  color: var(--create-ink);
  font-size: 14px;
  text-overflow: ellipsis;
}

.fiabe-final-summary__idea {
  grid-column: 1 / -1;
}

.fiabe-create-checkout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fiabe-create-checkout > div {
  display: grid;
  gap: 5px;
  padding: 20px;
  border-radius: 22px;
  background: #eef4ef;
}

.fiabe-create-checkout small,
.fiabe-create-checkout span {
  color: #68756f;
  font-size: 11px;
}

.fiabe-create-checkout strong {
  color: var(--create-night);
  font-size: 23px;
}

.fiabe-create-submit {
  width: 100%;
  min-height: 62px !important;
  justify-content: space-between !important;
  padding: 16px 22px !important;
  font-size: 17px !important;
}

.fiabe-create-submit > b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
}

.fiabe-create-submit.is-submitting {
  opacity: .7;
  cursor: wait;
}

.fiabe-create-login-note {
  margin: -12px 0 0;
  color: #81746a;
  font-size: 12px;
  text-align: center;
}

.fiabe-create-page .fiabe-wizard-actions {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--create-line);
}

.fiabe-create-page .fiabe-wizard-actions .fiabe-btn {
  min-width: 145px;
}

.fiabe-create-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}

.fiabe-create-aside__card {
  overflow: hidden;
  border: 1px solid var(--create-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(86, 58, 36, .1);
}

.fiabe-create-aside__cover {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 22%, #fff4aa 0 20px, transparent 21px),
    radial-gradient(circle at 25% 88%, #426f59 0 62px, transparent 63px),
    linear-gradient(150deg, #27515a, #6b688f 55%, #e59a68);
  color: #fff;
}

.fiabe-create-aside__cover > span {
  position: absolute;
  right: 24px;
  top: 20px;
  color: #fff1a6;
  font-size: 40px;
}

.fiabe-create-aside__cover small {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fiabe-create-aside__cover strong {
  max-width: 230px;
  font-size: 25px;
  line-height: 1.15;
}

.fiabe-create-aside__details {
  display: grid;
  padding: 18px 20px;
}

.fiabe-create-aside__details p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--create-line);
  font-size: 12px;
}

.fiabe-create-aside__details p:first-child {
  border-top: 0;
}

.fiabe-create-aside__details span {
  color: #8b7e73;
}

.fiabe-create-aside__details b {
  overflow: hidden;
  color: #514941;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiabe-create-aside__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f3ece3;
  color: #6d5e52;
  font-size: 12px;
}

.fiabe-create-aside__price strong {
  color: var(--create-coral-dark);
  font-size: 15px;
}

.fiabe-create-privacy {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  color: #80746a;
  font-size: 11px;
}

.fiabe-create-page a:focus-visible,
.fiabe-create-page button:focus-visible,
.fiabe-create-page input:focus-visible,
.fiabe-create-page select:focus-visible,
.fiabe-create-page textarea:focus-visible,
.fiabe-create-page label:has(input:focus-visible) {
  outline: 3px solid rgba(38, 92, 90, .35);
  outline-offset: 3px;
}

/* The site breadcrumb remains horizontally scrollable on very narrow screens,
   but its native scrollbar should not compete with the creation interface. */
.breadcrumbs ol {
  scrollbar-width: none;
}

.breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

@media (max-width: 980px) {
  .fiabe-create-layout {
    grid-template-columns: 1fr;
  }

  .fiabe-create-aside {
    position: static;
    grid-row: auto;
  }

  .fiabe-create-aside__card {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .fiabe-create-aside__cover {
    grid-row: 1 / 3;
    min-height: 190px;
  }

  .fiabe-create-aside__price {
    border-top: 1px solid var(--create-line);
  }

  .fiabe-create-privacy {
    display: none;
  }
}

@media (max-width: 700px) {
  .fiabe-gender-choice {
    grid-template-columns: 1fr;
  }

  .fiabe-gender-choice label {
    justify-content: flex-start;
  }

  .fiabe-create-page .fiabe-container {
    width: min(100% - 24px, 1160px);
  }

  .fiabe-create-hero {
    padding: 34px 0;
  }

  .fiabe-create-hero__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fiabe-create-hero h1 {
    font-size: clamp(39px, 12vw, 52px);
  }

  .fiabe-create-gift {
    min-width: 0;
  }

  .fiabe-create-layout {
    gap: 16px;
  }

  .fiabe-create-aside__card {
    display: block;
  }

  .fiabe-create-aside__cover {
    min-height: 160px;
  }

  .fiabe-create-aside__details {
    display: none;
  }

  .fiabe-create-progress {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .fiabe-create-page .fiabe-step-dots {
    display: flex;
    justify-content: space-between;
    overflow: visible;
  }

  .fiabe-create-page .fiabe-step-dots li {
    flex: 1 1 0;
  }

  .fiabe-create-page .fiabe-step-dots li > b {
    display: none;
  }

  .fiabe-create-page .fiabe-step-dots li > span {
    width: 28px;
    height: 28px;
  }

  .fiabe-create-form {
    padding: 22px 17px;
    border-radius: 26px;
  }

  .fiabe-step-heading {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .fiabe-step-heading > span {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .fiabe-create-fields--three,
  .fiabe-create-fields--two,
  .fiabe-theme-primary,
  .fiabe-style-grid,
  .fiabe-length-grid,
  .fiabe-final-summary,
  .fiabe-create-checkout,
  .fiabe-create-page .fiabe-examples {
    grid-template-columns: 1fr;
  }

  .fiabe-final-summary__idea {
    grid-column: auto;
  }

  .fiabe-free-story-card {
    grid-template-columns: auto 1fr;
  }

  .fiabe-free-story-card > b {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .fiabe-theme-card {
    min-height: 195px;
  }

  .fiabe-future-option {
    grid-template-columns: auto 1fr;
  }

  .fiabe-future-option > b {
    grid-column: 2;
    width: fit-content;
  }

  .fiabe-create-page .fiabe-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fiabe-create-page .fiabe-wizard-actions .fiabe-btn {
    min-width: 0;
    width: 100%;
    padding-inline: 14px;
  }
}

/* Language access is intentionally shown only to eligible signed-in accounts. */
.fiabe-create-page .fiabe-language-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.fiabe-create-page .fiabe-language-choice legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--create-ink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.fiabe-create-page .fiabe-language-choice label {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 13px;
  align-content: center;
  padding: 16px 18px;
  border: 1px solid #e3d6ca;
  border-radius: 21px;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fiabe-create-page .fiabe-language-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.fiabe-create-page .fiabe-language-choice label > span {
  display: grid;
  width: 46px;
  height: 46px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 15px;
  background: #edf3ec;
  color: #174c50;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
}

.fiabe-create-page .fiabe-language-choice label > strong {
  align-self: end;
  color: var(--create-ink);
  font-size: 17px;
}

.fiabe-create-page .fiabe-language-choice label > small {
  color: #807268;
  font-size: 12px;
}

.fiabe-create-page .fiabe-language-choice label:has(input:checked) {
  border-color: var(--create-orange);
  background: #fff3e9;
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .1);
  transform: translateY(-1px);
}

.fiabe-create-page .fiabe-language-choice label:has(input:checked) > span {
  background: var(--create-orange);
  color: #fff;
}

.fiabe-create-page .fiabe-language-choice label:focus-within {
  outline: 3px solid rgba(255, 122, 61, .26);
  outline-offset: 3px;
}

.fiabe-create-page .fiabe-language-access {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: -3px 0 0;
  color: #75685d;
  font-size: 12px;
}

.fiabe-create-page .fiabe-language-access > span {
  color: var(--create-orange);
}

.fiabe-create-page .fiabe-voice-option[hidden] {
  display: none !important;
}

.fiabe-create-page .fiabe-length-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.fiabe-create-page .fiabe-length-card {
  min-height: 100%;
}

.fiabe-create-page .fiabe-length-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fiabe-create-page .fiabe-length-card li {
  padding: 7px 10px;
  border: 1px solid rgba(35, 91, 76, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: #49645b;
  font-size: 11px;
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-language-choice,
  .fiabe-create-page .fiabe-length-grid {
    grid-template-columns: 1fr;
  }

  .fiabe-create-page .fiabe-language-choice label {
    min-height: 82px;
  }
}

@media (max-width: 390px) {
  .fiabe-theme-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .fiabe-theme-filters button {
    width: 100%;
  }

  .fiabe-voice-card {
    grid-template-columns: auto 1fr;
  }

  .fiabe-voice-card > b {
    position: absolute;
    right: 12px;
    top: 12px;
  }
}

/* One calm, consistent selection control. The native radio remains keyboard-accessible. */
.fiabe-create-page .fiabe-free-story-card > input,
.fiabe-create-page .fiabe-theme-card > input,
.fiabe-create-page .fiabe-style-card > input,
.fiabe-create-page .fiabe-voice-card > input,
.fiabe-create-page .fiabe-length-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  right: auto;
  top: auto;
  overflow: hidden;
  margin: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}

.fiabe-create-page .fiabe-free-story-card > b,
.fiabe-create-page .fiabe-style-card > b,
.fiabe-create-page .fiabe-voice-card > b,
.fiabe-create-page .fiabe-length-card:not(.is-disabled) > b,
.fiabe-create-page .fiabe-theme-card::after {
  position: absolute;
  z-index: 4;
  right: 13px;
  top: 13px;
  bottom: auto;
  display: block;
  width: 23px;
  height: 23px;
  box-sizing: border-box;
  border: 2px solid rgba(71, 62, 55, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 8px rgba(69, 44, 27, .08);
  color: transparent;
  content: "";
}

.fiabe-create-page .fiabe-free-story-card:has(input:checked) > b,
.fiabe-create-page .fiabe-style-card:has(input:checked) > b,
.fiabe-create-page .fiabe-voice-card:has(input:checked) > b,
.fiabe-create-page .fiabe-length-card:has(input:checked) > b,
.fiabe-create-page .fiabe-theme-card:has(input:checked)::after {
  border-color: var(--create-orange);
  background: radial-gradient(circle, #fff 0 30%, var(--create-orange) 34% 100%);
  color: transparent;
  content: "";
}

.fiabe-create-page .fiabe-free-story-card:focus-within,
.fiabe-create-page .fiabe-theme-card:focus-within,
.fiabe-create-page .fiabe-style-card:focus-within,
.fiabe-create-page .fiabe-voice-card:focus-within,
.fiabe-create-page .fiabe-length-card:focus-within {
  outline: 3px solid rgba(255, 122, 61, .28);
  outline-offset: 3px;
}

.fiabe-create-page .fiabe-style-card__preview {
  aspect-ratio: 1.18 / 1;
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-free-story-card > b,
  .fiabe-create-page .fiabe-style-card > b,
  .fiabe-create-page .fiabe-voice-card > b,
  .fiabe-create-page .fiabe-length-card:not(.is-disabled) > b,
  .fiabe-create-page .fiabe-theme-card::after {
    right: 9px;
    top: 9px;
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fiabe-create-page *,
  .fiabe-create-page *::before,
  .fiabe-create-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Visual creation flow — inspired by the calm, card-led rhythm of a mobile story app. */
.fiabe-create-page {
  --create-peach: #fff0df;
  --create-peach-strong: #ffd9bd;
  --create-orange: #ff7a3d;
  --create-orange-dark: #e75e25;
  background:
    radial-gradient(circle at 4% 5%, rgba(255, 183, 111, .18), transparent 24rem),
    radial-gradient(circle at 94% 9%, rgba(99, 158, 137, .12), transparent 27rem),
    #fffaf3;
}

.fiabe-create-page .fiabe-create-hero {
  padding-top: clamp(30px, 4.5vw, 54px);
  padding-bottom: clamp(24px, 3.5vw, 38px);
}

.fiabe-create-page .fiabe-create-hero h1 {
  max-width: 690px;
  font-size: clamp(40px, 5vw, 60px);
}

.fiabe-create-page .fiabe-create-shell {
  padding-bottom: clamp(72px, 9vw, 112px);
}

.fiabe-create-page .fiabe-create-layout {
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 32px;
}

.fiabe-create-page .fiabe-create-progress {
  position: relative;
  margin-bottom: 14px;
  padding: 17px 20px 18px;
  border-radius: 23px;
  background: rgba(255, 250, 244, .92);
  box-shadow: 0 14px 38px rgba(91, 58, 35, .07);
  backdrop-filter: blur(10px);
}

.fiabe-create-page .fiabe-create-progress__top {
  color: #876b58;
  font-size: 12px;
}

.fiabe-create-page .fiabe-create-progress__top strong {
  color: var(--create-orange-dark);
}

.fiabe-create-page .fiabe-wizard-progress {
  display: none;
}

.fiabe-create-page .fiabe-step-dots {
  gap: 7px;
  margin-top: 13px;
}

.fiabe-create-page .fiabe-step-dots li {
  display: block;
  min-width: 0;
}

.fiabe-create-page .fiabe-step-dots li > span {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e7ded4;
  color: transparent;
  font-size: 0;
  transition: background-color .24s ease, transform .24s ease;
}

.fiabe-create-page .fiabe-step-dots li > b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fiabe-create-page .fiabe-step-dots li.is-complete > span,
.fiabe-create-page .fiabe-step-dots li.is-active > span {
  border: 0;
  background: linear-gradient(90deg, #ff985a, var(--create-orange));
  box-shadow: none;
}

.fiabe-create-page .fiabe-step-dots li.is-active > span {
  transform: scaleY(1.28);
}

.fiabe-create-page .fiabe-create-form {
  padding: clamp(24px, 3vw, 36px);
  border-color: rgba(119, 76, 43, .1);
  border-radius: 31px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 80px rgba(89, 58, 37, .11);
}

.fiabe-create-page .fiabe-wizard-step h2::before {
  display: none;
  content: none;
}

.fiabe-create-page .fiabe-wizard-actions {
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
  border: 0;
}

.fiabe-create-page .fiabe-wizard-step.is-active {
  animation: fiabe-step-arrive .32s cubic-bezier(.2, .75, .3, 1) both;
}

@keyframes fiabe-step-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fiabe-create-page .fiabe-step-heading {
  gap: 15px;
  padding-bottom: 21px;
}

.fiabe-create-page .fiabe-step-heading > span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #184c50;
  box-shadow: 0 10px 24px rgba(24, 76, 80, .16);
}

.fiabe-create-page .fiabe-step-heading h2 {
  max-width: 720px;
  margin-bottom: 6px;
  font-size: clamp(27px, 3.3vw, 38px);
  text-align: left;
}

.fiabe-create-page .fiabe-step-heading small {
  max-width: 650px;
  font-size: 14px;
}

.fiabe-create-page .fiabe-free-story-card {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 10px 18px 10px 10px;
  border-color: rgba(231, 94, 37, .12);
  background: linear-gradient(135deg, #fff2df, #ffe2ce);
}

.fiabe-free-story-card__media,
.fiabe-theme-card__media,
.fiabe-voice-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eadfd3;
}

.fiabe-free-story-card__media {
  width: 82px;
  height: 82px;
  border-radius: 19px;
}

.fiabe-free-story-card__media img,
.fiabe-theme-card__media img,
.fiabe-voice-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.fiabe-create-page label:hover .fiabe-free-story-card__media img,
.fiabe-create-page label:hover .fiabe-theme-card__media img,
.fiabe-create-page label:hover .fiabe-voice-card__media img {
  transform: scale(1.045);
}

.fiabe-create-page .fiabe-theme-toolbar {
  gap: 11px;
}

.fiabe-create-page .fiabe-theme-filters {
  gap: 7px;
}

.fiabe-create-page .fiabe-theme-filters button {
  min-height: 38px;
  padding: 8px 13px;
}

.fiabe-create-page .fiabe-theme-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.fiabe-create-page .fiabe-theme-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "media meta age"
    "media title age"
    "media desc age";
  min-height: 118px;
  gap: 3px 13px;
  align-content: center;
  padding: 11px 13px 11px 11px;
  border-color: rgba(120, 75, 41, .1);
  border-radius: 22px;
  background: #fff8f1;
}

.fiabe-create-page .fiabe-theme-card:hover {
  transform: translateY(-2px);
}

.fiabe-create-page .fiabe-theme-card:has(input:checked) {
  border-color: #f3864d;
  background: #fff4e9;
  box-shadow: 0 0 0 3px rgba(243, 134, 77, .12), 0 14px 28px rgba(102, 61, 34, .08);
}

.fiabe-create-page .fiabe-theme-card:has(input:checked)::after {
  right: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  background: var(--create-orange);
}

.fiabe-create-page .fiabe-theme-card__media {
  grid-area: media;
  width: 92px;
  height: 92px;
  border-radius: 18px;
}

.fiabe-create-page .fiabe-theme-card > small {
  grid-area: meta;
  align-self: end;
  color: #a06442;
  font-size: 9px;
}

.fiabe-create-page .fiabe-theme-card > strong {
  grid-area: title;
  align-self: center;
  padding-right: 26px;
  font-size: 16px;
}

.fiabe-create-page .fiabe-theme-card > em {
  display: -webkit-box;
  overflow: hidden;
  grid-area: desc;
  align-self: start;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fiabe-create-page .fiabe-theme-card > b {
  grid-area: age;
  align-self: end;
  margin: 0;
  padding-left: 4px;
  font-size: 9px;
  white-space: nowrap;
}

.fiabe-create-page .fiabe-idea-field textarea {
  min-height: 170px !important;
  border-width: 1.5px;
  background: #fffcf8;
}

.fiabe-create-page .fiabe-examples button {
  border-color: rgba(230, 113, 66, .15);
  background: #fff3e8;
  box-shadow: none;
}

.fiabe-create-page .fiabe-style-card {
  border-color: rgba(120, 75, 41, .11);
  border-radius: 22px;
  background: #fff8f1;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fiabe-create-page .fiabe-style-card:hover {
  transform: translateY(-2px);
}

.fiabe-create-page .fiabe-style-card:has(input:checked) {
  border-color: var(--create-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .12), 0 15px 30px rgba(86, 50, 29, .09);
}

.fiabe-create-page .fiabe-style-card__preview {
  aspect-ratio: 1.35 / 1;
}

.fiabe-create-page .fiabe-style-card__copy {
  padding: 14px 44px 14px 15px;
}

.fiabe-create-page .fiabe-style-card__copy strong {
  font-size: 16px;
}

.fiabe-create-page .fiabe-style-card__copy small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fiabe-create-page .fiabe-voice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fiabe-create-page .fiabe-voice-card {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 10px;
  border-color: rgba(120, 75, 41, .11);
  border-radius: 23px;
  background: #fff8f1;
}

.fiabe-create-page .fiabe-voice-card:has(input:checked) {
  border-color: var(--create-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .11);
}

.fiabe-create-page .fiabe-voice-card__media {
  width: 132px;
  height: 112px;
  border-radius: 18px;
}

.fiabe-create-page .fiabe-voice-card__media > i {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 122, 61, .94);
  box-shadow: 0 7px 18px rgba(74, 38, 20, .2);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  transform: translate(-50%, -50%);
}

.fiabe-create-page .fiabe-voice-card__copy strong {
  font-size: 17px;
}

.fiabe-create-page .fiabe-voice-card__copy small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fiabe-create-page .fiabe-voice-card > input {
  right: 12px;
  top: 12px;
}

.fiabe-create-page .fiabe-voice-card audio {
  grid-column: 1 / -1;
  height: 36px;
}

.fiabe-create-page .fiabe-length-grid {
  grid-template-columns: 1fr;
}

.fiabe-create-page .fiabe-length-card--featured {
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 0;
  padding: 24px;
  border-color: rgba(44, 112, 91, .16);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 204, 104, .35), transparent 11rem),
    linear-gradient(135deg, #eef6ee, #fff3da);
}

.fiabe-create-page .fiabe-length-card--featured > span {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #174c50;
  color: #ffe29a;
  font-size: 31px;
}

.fiabe-create-page .fiabe-length-card--featured ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fiabe-create-page .fiabe-length-card--featured li {
  padding: 7px 10px;
  border: 1px solid rgba(35, 91, 76, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: #49645b;
  font-size: 11px;
  font-weight: 800;
}

.fiabe-final-cover {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 250px;
  border-radius: 24px;
  background: #173f43;
}

.fiabe-final-cover::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(16, 41, 42, .9));
}

.fiabe-final-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fiabe-final-cover > div {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  color: #fff;
}

.fiabe-final-cover small,
.fiabe-final-cover span {
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
}

.fiabe-final-cover strong {
  font-family: "Merriweather", Georgia, serif;
  font-size: 24px;
}

.fiabe-create-page .fiabe-create-submit,
.fiabe-create-page .fiabe-wizard-actions [data-next-step] {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(100deg, #ff8e4e, #ff6e2f);
  box-shadow: 0 13px 30px rgba(227, 89, 34, .22);
}

.fiabe-create-page .fiabe-create-submit::after,
.fiabe-create-page .fiabe-wizard-actions [data-next-step]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  animation: fiabe-button-glow 3.8s ease-in-out infinite;
}

@keyframes fiabe-button-glow {
  0%, 62% { left: -45%; }
  100% { left: 125%; }
}

.fiabe-create-page .fiabe-create-aside__cover {
  isolation: isolate;
  min-height: 260px;
  background: #234c50;
}

.fiabe-create-page .fiabe-create-aside__cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent, rgba(20, 52, 53, .93));
}

.fiabe-create-page .fiabe-create-aside__cover > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fiabe-create-page .fiabe-create-aside__cover > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 62, 65, .62);
  backdrop-filter: blur(8px);
  font-size: 23px;
}

@media (max-width: 1100px) {
  .fiabe-create-page .fiabe-create-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }

  .fiabe-create-page .fiabe-theme-primary,
  .fiabe-create-page .fiabe-voice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .fiabe-create-page .fiabe-create-layout {
    grid-template-columns: 1fr;
  }

  .fiabe-create-page .fiabe-create-aside {
    display: none;
  }

  .fiabe-create-page .fiabe-final-cover {
    display: block;
  }
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-container {
    width: min(100% - 18px, 1160px);
  }

  .fiabe-create-page .fiabe-create-hero {
    padding: 22px 0 19px;
  }

  .fiabe-create-page .fiabe-create-hero__inner {
    display: block;
  }

  .fiabe-create-page .fiabe-create-back {
    margin-bottom: 13px;
    font-size: 13px;
  }

  .fiabe-create-page .fiabe-create-hero .fiabe-eyebrow,
  .fiabe-create-page .fiabe-create-gift {
    display: none;
  }

  .fiabe-create-page .fiabe-create-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.04;
  }

  .fiabe-create-page .fiabe-create-hero__inner > div:first-child > p:last-child {
    font-size: 15px;
    line-height: 1.45;
  }

  .fiabe-create-page .fiabe-create-shell {
    padding-bottom: 106px;
  }

  .fiabe-create-page .fiabe-create-progress {
    margin-bottom: 9px;
    padding: 13px 13px 14px;
    border-radius: 18px;
  }

  .fiabe-create-page .fiabe-step-dots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .fiabe-create-page .fiabe-step-dots li > span {
    width: 100%;
    height: 5px;
  }

  .fiabe-create-page .fiabe-create-form {
    padding: 18px 14px 22px;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(84, 54, 34, .1);
  }

  .fiabe-create-page .fiabe-wizard-step {
    gap: 18px;
  }

  .fiabe-create-page .fiabe-step-heading {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 16px;
  }

  .fiabe-create-page .fiabe-step-heading > span {
    width: 37px;
    height: 37px;
    border-radius: 13px;
    font-size: 11px;
  }

  .fiabe-create-page .fiabe-step-heading p {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .fiabe-create-page .fiabe-step-heading h2 {
    margin-bottom: 4px;
    font-size: clamp(22px, 6.8vw, 29px);
    line-height: 1.08;
  }

  .fiabe-create-page .fiabe-step-heading small {
    font-size: 12px;
    line-height: 1.4;
  }

  .fiabe-create-page .fiabe-create-info {
    padding: 12px;
    border-radius: 16px;
  }

  .fiabe-create-page .fiabe-field input,
  .fiabe-create-page .fiabe-field textarea,
  .fiabe-create-page .fiabe-field select {
    min-height: 50px;
    border-radius: 15px;
  }

  .fiabe-create-page .fiabe-free-story-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 88px;
    padding: 9px;
    border-radius: 19px;
  }

  .fiabe-create-page .fiabe-free-story-card__media {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  .fiabe-create-page .fiabe-free-story-card strong {
    padding-right: 24px;
    font-size: 15px;
  }

  .fiabe-create-page .fiabe-free-story-card small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .fiabe-create-page .fiabe-theme-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .fiabe-create-page .fiabe-theme-filters::-webkit-scrollbar {
    display: none;
  }

  .fiabe-create-page .fiabe-theme-filters button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .fiabe-create-page .fiabe-theme-primary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .fiabe-create-page .fiabe-theme-card {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "media meta"
      "media title"
      "media desc";
    min-height: 96px;
    gap: 2px 11px;
    padding: 9px;
    border-radius: 19px;
  }

  .fiabe-create-page .fiabe-theme-card__media {
    width: 76px;
    height: 76px;
    border-radius: 15px;
  }

  .fiabe-create-page .fiabe-theme-card > strong {
    font-size: 15px;
  }

  .fiabe-create-page .fiabe-theme-card > em {
    font-size: 11px;
  }

  .fiabe-create-page .fiabe-theme-card > b {
    display: none;
  }

  .fiabe-create-page .fiabe-skill-extra {
    padding: 15px;
    border-radius: 18px;
  }

  .fiabe-create-page .fiabe-examples {
    grid-template-columns: 1fr 1fr;
  }

  .fiabe-create-page .fiabe-examples button {
    min-height: 54px;
    padding: 10px;
    font-size: 11px;
  }

  .fiabe-create-page .fiabe-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .fiabe-create-page .fiabe-style-card {
    border-radius: 18px;
  }

  .fiabe-create-page .fiabe-style-card__preview {
    aspect-ratio: 1 / 1;
  }

  .fiabe-create-page .fiabe-style-card__copy {
    padding: 11px 32px 11px 11px;
  }

  .fiabe-create-page .fiabe-style-card__copy strong {
    font-size: 13px;
  }

  .fiabe-create-page .fiabe-style-card__copy small {
    display: none;
  }

  .fiabe-create-page .fiabe-style-card > input {
    right: 9px;
    top: 9px;
    width: 19px;
    height: 19px;
  }

  .fiabe-create-page .fiabe-voice-grid {
    grid-template-columns: 1fr;
  }

  .fiabe-create-page .fiabe-voice-card {
    grid-template-columns: 98px minmax(0, 1fr);
    padding: 9px;
    border-radius: 19px;
  }

  .fiabe-create-page .fiabe-voice-card__media {
    width: 98px;
    height: 88px;
    border-radius: 15px;
  }

  .fiabe-create-page .fiabe-length-card--featured {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border-radius: 20px;
  }

  .fiabe-create-page .fiabe-length-card--featured > span {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 25px;
  }

  .fiabe-create-page .fiabe-length-card--featured strong {
    font-size: 18px;
  }

  .fiabe-create-page .fiabe-length-card--featured p {
    font-size: 12px;
  }

  .fiabe-create-page .fiabe-final-summary {
    grid-template-columns: 1fr 1fr;
    border-radius: 19px;
  }

  .fiabe-create-page .fiabe-final-summary > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px;
  }

  .fiabe-create-page .fiabe-final-summary > div > span {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .fiabe-create-page .fiabe-final-summary__idea {
    grid-column: 1 / -1;
  }

  .fiabe-create-page .fiabe-final-cover {
    min-height: 220px;
    border-radius: 20px;
  }

  .fiabe-create-page .fiabe-create-checkout {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .fiabe-create-page .fiabe-create-checkout > div {
    padding: 14px;
    border-radius: 17px;
  }

  .fiabe-create-page .fiabe-create-checkout strong {
    font-size: 18px;
  }

  .fiabe-create-page .fiabe-create-main > .fiabe-wizard-actions {
    position: fixed;
    z-index: 50;
    right: 9px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 9px;
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(101, 65, 40, .12);
    border-radius: 20px;
    background: rgba(255, 250, 244, .92);
    box-shadow: 0 15px 36px rgba(57, 36, 21, .2);
    backdrop-filter: blur(14px);
  }

  .fiabe-create-page .fiabe-wizard-actions .fiabe-btn {
    min-height: 52px;
    border-radius: 15px;
  }

  .fiabe-create-page [data-fiabe-wizard][data-current-step="1"] .fiabe-wizard-actions {
    grid-template-columns: 1fr;
  }

  .fiabe-create-page [data-fiabe-wizard][data-current-step="6"] .fiabe-create-main > .fiabe-wizard-actions {
    position: static;
    display: flex;
    margin-top: 4px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--create-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .fiabe-create-page [data-fiabe-wizard][data-current-step="6"] .fiabe-wizard-actions [data-prev-step] {
    width: 100%;
  }

  .fiabe-create-page .fiabe-create-submit {
    min-height: 56px !important;
    border-radius: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fiabe-create-page .fiabe-wizard-step.is-active,
  .fiabe-create-page .fiabe-create-submit::after,
  .fiabe-create-page .fiabe-wizard-actions [data-next-step]::after {
    animation: none !important;
  }
}

/* Final selection-state overrides must stay after the visual-flow layer above. */
.fiabe-create-page .fiabe-theme-card:has(input:checked)::after {
  width: 23px;
  height: 23px;
  border: 2px solid var(--create-orange);
  background: radial-gradient(circle, #fff 0 30%, var(--create-orange) 34% 100%);
  color: transparent;
  content: "";
}

.fiabe-create-page .fiabe-style-card__preview {
  aspect-ratio: 1.18 / 1;
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-theme-card:has(input:checked)::after {
    width: 21px;
    height: 21px;
  }

  .fiabe-create-page .fiabe-style-card__preview {
    aspect-ratio: 1 / 1;
  }
}
.fiabe-child-manage-link {
  margin-left: 8px;
  color: var(--fiabe-night);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: rgba(23, 72, 78, .26);
  text-underline-offset: 3px;
}

/* ElevenLabs narrators: the sample player is separate from the radio label. */
.fiabe-create-page .fiabe-voice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.fiabe-create-page .fiabe-voice-option {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(120, 75, 41, .13);
  border-radius: 24px;
  background: #fffaf5;
  box-shadow: 0 14px 34px rgba(80, 48, 29, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fiabe-create-page .fiabe-voice-option:hover {
  transform: translateY(-2px);
}

.fiabe-create-page .fiabe-voice-option:has(input:checked) {
  border-color: var(--create-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .11), 0 18px 40px rgba(80, 48, 29, .09);
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card,
.fiabe-create-page .fiabe-voice-option .fiabe-voice-card:has(input:checked) {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card__media {
  width: 100%;
  height: 148px;
  border-radius: 0;
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card__copy {
  align-content: start;
  gap: 5px;
  padding: 15px 17px 14px;
}

.fiabe-create-page .fiabe-voice-card__copy > em {
  color: #b25d35;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card__copy strong {
  padding-right: 22px;
  font-family: Merriweather, Georgia, serif;
  font-size: 16px;
  line-height: 1.28;
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card__copy small {
  display: block;
  overflow: visible;
  min-height: 3.9em;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: initial;
}

.fiabe-create-page .fiabe-voice-option .fiabe-voice-card > b {
  right: 12px;
  top: 12px;
}

.fiabe-create-page .fiabe-voice-preview {
  display: grid;
  gap: 7px;
  padding: 11px 13px 13px;
  border-top: 1px solid rgba(120, 75, 41, .1);
  background: rgba(255, 255, 255, .72);
}

.fiabe-create-page .fiabe-voice-preview > span {
  color: #79685c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fiabe-create-page .fiabe-voice-preview audio {
  display: block;
  width: 100%;
  height: 36px;
}

@media (max-width: 1100px) {
  .fiabe-create-page .fiabe-voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fiabe-create-page .fiabe-voice-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-voice-grid {
    grid-template-columns: 1fr;
  }

  .fiabe-create-page .fiabe-voice-option:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .fiabe-create-page .fiabe-voice-option .fiabe-voice-card,
  .fiabe-create-page .fiabe-voice-option .fiabe-voice-card:has(input:checked) {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 11px;
    padding: 9px;
  }

  .fiabe-create-page .fiabe-voice-option .fiabe-voice-card__media {
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }

  .fiabe-create-page .fiabe-voice-option .fiabe-voice-card__copy {
    gap: 3px;
    padding: 4px 26px 3px 0;
  }

  .fiabe-create-page .fiabe-voice-option .fiabe-voice-card__copy small {
    min-height: 0;
  }
}

/* Final cascade for the two live duration choices. */
.fiabe-create-page .fiabe-length-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .fiabe-create-page .fiabe-length-grid {
    grid-template-columns: 1fr;
  }
}
