main.qfg-ecosystem-fixed {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: clip;
  padding: 6px clamp(8px, 2vw, 24px);
}

.qfg-ecosystem-fixed > .ecosystem-container {
  min-height: 0;
  min-width: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 2px 4px 6px;
}

.qfg-ecosystem-fixed [data-qfg-hide] {
  display: none !important;
}

.qfg-ecosystem-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1180px;
  min-width: 0;
  width: 100%;
  margin-inline: auto;
  gap: 2px 8px;
}

.qfg-ecosystem-tabs {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  overflow: auto hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  min-width: 0;
  gap: 4px;
}

.qfg-ecosystem-tabs > button[data-turri-design] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qfg-ecosystem-rail button {
  appearance: none;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: 1px;
  padding-inline: 8px;
  border: 1px solid #dcb6f277;
  border-radius: 999px;
  background: linear-gradient(140deg, #f5d8ff16, #1b1029e8 64%);
  color: #f5f2e8;
  box-shadow: inset 0 1px 0 #ffffff19;
  white-space: nowrap;
  scroll-snap-align: start;
}

.qfg-ecosystem-rail button[aria-current="step"] {
  background: #342342;
  border-color: #f2c1ef;
}

.qfg-ecosystem-rail button:disabled {
  opacity: .5;
}

.qfg-ecosystem-pager {
  display: flex;
  flex: 0 1 auto;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #dce4e8;
  font-size: .78rem;
}

.qfg-ecosystem-pager button {
  font-size: 1.35rem;
}

.qfg-ecosystem-fixed .ecosystem-topbar {
  padding: 0 0 4px;
  gap: 2px 8px;
}

.qfg-ecosystem-fixed .ecosystem-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(4px, 3dvh, 20px) 0;
}

.qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(8px, 3cqw, 30px);
}

.qfg-ecosystem-hero-art {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid #cbb0ef66;
  border-radius: clamp(12px, 2.7vw, 22px);
  background: #170f27 url("/_invitation/turri-art-20261125/earth-turri.jpg") 51% 44% / 119% auto no-repeat;
  box-shadow: 0 8px 30px #110c24, inset 0 0 28px #27183b60;
}

.qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-topbar {
  border-bottom: 1px solid #bda3db56;
}

.qfg-ecosystem-fixed .ecosystem-wordmark::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-end: 0.33rem;
  vertical-align: middle;
  border-radius: 0.32rem;
  background: url("/_invitation/turri-art-20261125/solar-crown.jpg") center top / 100% auto no-repeat;
}

.qfg-ecosystem-hero-media:empty { display: none; }

@media (max-width: 620px) {
  .qfg-ecosystem-rail {
    box-sizing: border-box;
    padding-inline-end: 52px;
  }

  .qfg-ecosystem-fixed .ecosystem-topbar {
    gap: 0 6px;
    padding-block-end: 2px;
  }

  .qfg-ecosystem-fixed .ecosystem-wordmark {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    line-height: 1.15;
  }

  .qfg-ecosystem-fixed .ecosystem-wordmark::before {
    grid-row: 1 / 3;
    align-self: center;
  }

  .qfg-ecosystem-fixed .ecosystem-wordmark > span {
    grid-column: 2;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero {
    grid-template-columns: minmax(0, 1fr) minmax(65px, 26%);
    align-items: start;
    gap: 6px;
    padding-block: 6px;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero > :first-child {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero > :first-child > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero > :first-child > :is(.ecosystem-eyebrow, h1, .ecosystem-lead) {
    grid-column: 1;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero h1 {
    margin-bottom: 5px;
    font-size: clamp(1.42rem, 6.15vw, 1.625rem);
    line-height: 1.06;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero :is(.ecosystem-eyebrow, .ecosystem-actions, .ecosystem-small, .ecosystem-lead) {
    margin-block: 3px;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero .ecosystem-lead {
    font-size: .875rem;
    line-height: 1.4;
  }

  .qfg-ecosystem-fixed[data-qfg-ecosystem-step="welcome"] .ecosystem-hero .ecosystem-small {
    line-height: 1.35;
  }

  .qfg-ecosystem-hero-art {
    grid-column: 2;
    grid-row: 1;
    margin-top: 4px;
  }
}

.qfg-ecosystem-fixed h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 6dvh, 4rem);
}

.qfg-ecosystem-fixed .ecosystem-dictionary-feature {
  justify-content: center;
  min-height: 0;
  padding: clamp(10px, 3dvh, 26px);
}

.qfg-ecosystem-fixed .ecosystem-book-orbit {
  opacity: .25;
  width: clamp(56px, 14dvh, 130px);
  height: clamp(56px, 14dvh, 130px);
}

.qfg-ecosystem-fixed .ecosystem-guide-grid {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.qfg-ecosystem-fixed :is(.ecosystem-panel, .ecosystem-guide) {
  margin: 0;
  padding: clamp(7px, 2dvh, 20px);
}

.qfg-ecosystem-fixed .ecosystem-panel h2 {
  margin-bottom: 5px;
}

.qfg-ecosystem-fixed :is(.ecosystem-panel > p, .ecosystem-recognition p) {
  line-height: 1.5;
}

.qfg-ecosystem-fixed :is(.ecosystem-form, .ecosystem-credit-grid) {
  margin-block: 5px;
}

.qfg-ecosystem-fixed :is(.ecosystem-form, .ecosystem-form-grid, .ecosystem-channel-grid) {
  gap: 5px;
}

.qfg-ecosystem-fixed .ecosystem-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qfg-ecosystem-fixed .ecosystem-form label {
  gap: 2px;
}

.qfg-ecosystem-fixed .ecosystem-form .ecosystem-check {
  min-height: 44px;
  padding: 4px 8px;
}

.qfg-ecosystem-fixed .ecosystem-form legend {
  margin-bottom: 4px;
}

.qfg-ecosystem-fixed[data-qfg-ecosystem-step="credit-work"] #credits .ecosystem-form-grid > label:nth-child(n+5),
.qfg-ecosystem-fixed[data-qfg-ecosystem-step="credit-rights"] #credits .ecosystem-form-grid > label:nth-child(-n+4) {
  display: none;
}

.qfg-ecosystem-fixed #social:not([data-qfg-hide]) > .ecosystem-queue,
.qfg-ecosystem-fixed #credits:not([data-qfg-hide]) > .ecosystem-queue {
  margin-top: 6px;
}

.qfg-ecosystem-fixed:not([data-qfg-ecosystem-step="social-drafts"]) #social > .ecosystem-queue,
.qfg-ecosystem-fixed:not([data-qfg-ecosystem-step="credit-drafts"]) #credits > :is(.ecosystem-draft, button.ecosystem-button) {
  display: none;
}

.qfg-ecosystem-fixed .ecosystem-page-footer {
  padding-block: 6px;
}

@media (max-height: 510px) {
  .qfg-ecosystem-fixed .ecosystem-hero {
    padding-block: 5px;
  }

  .qfg-ecosystem-fixed :is(.ecosystem-eyebrow, .ecosystem-lead, .ecosystem-actions, .ecosystem-small) {
    margin-block: 3px;
  }

  .qfg-ecosystem-fixed .ecosystem-lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .qfg-ecosystem-fixed :is(.ecosystem-credit-grid article, .ecosystem-guide) {
    padding-block: 5px;
  }
}

@media (max-width: 520px) {
  .qfg-ecosystem-pager {
    flex-basis: 100%;
  }
}
