:root {
  --bg-page: #ffffff;
  --paper: #fffdfa;
  --paper-soft: #fff8ef;
  --hero: #1f2454;
  --hero-2: #2a3170;
  --purple: #625bd6;
  --purple-deep: #4d45bc;
  --gold: #f3bf4f;
  --gold-deep: #deaa37;
  --pink: #ff5b98;
  --orange: #ff9850;
  --yellow: #ffe15a;
  --green: #6fd39b;
  --sky: #66bdff;
  --ink: #202746;
  --ink-soft: #5f6786;
  --line: #ddd4c7;
  --shadow: 0 2px 0 rgba(110, 96, 79, 0.18), 0 16px 28px rgba(36, 39, 70, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg-page);
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body::before,
body::after {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 56px;
}

.home-page .site-shell {
  padding-bottom: 0;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--hero);
  box-shadow: var(--shadow);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.topbar {
  --topbar-pad-y: 18px;
  --topbar-gap: 24px;
  --topbar-brand-gap: 14px;
  --topbar-logo-width: clamp(220px, 24vw, 320px);
  --topbar-nav-gap: 14px;
  --topbar-nav-pad-y: 10px;
  --topbar-nav-pad-x: 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--topbar-gap);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: var(--topbar-pad-y) max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  background: var(--purple);
  transition:
    padding 220ms ease,
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    box-shadow 220ms ease,
    gap 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--topbar-brand-gap);
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo {
  width: var(--topbar-logo-width);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(18, 20, 66, 0.22));
  transition: width 220ms ease, filter 220ms ease, transform 220ms ease;
  transform-origin: left center;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--topbar-nav-gap);
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.nav-links a {
  padding: var(--topbar-nav-pad-y) var(--topbar-nav-pad-x);
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: padding 220ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 42px;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.08), transparent 0 24%),
    radial-gradient(circle at 12% 88%, rgba(243, 191, 79, 0.14), transparent 0 22%),
    linear-gradient(135deg, var(--hero) 0%, var(--hero-2) 100%);
}

.home-page .hero {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(
      90deg,
      var(--pink) 0 18%,
      var(--orange) 18% 36%,
      var(--yellow) 36% 54%,
      var(--green) 54% 72%,
      var(--sky) 72% 88%,
      #7868ef 88% 100%
    );
  box-shadow: none;
}

.home-page .hero::before,
.home-page .hero::after {
  content: "";
  position: absolute;
  inset: auto;
  display: block;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.38;
  pointer-events: none;
}

.home-page .hero::before {
  top: 14%;
  right: -8%;
  background: rgba(255, 255, 255, 0.34);
}

.home-page .hero::after {
  left: -8%;
  bottom: 8%;
  background: rgba(255, 255, 255, 0.24);
}

.home-page .topbar {
  --topbar-pad-y: calc(18px - (var(--home-topbar-progress, 0) * 10px));
  --topbar-gap: calc(24px - (var(--home-topbar-progress, 0) * 6px));
  --topbar-brand-gap: 14px;
  --topbar-logo-width: calc(380px - (var(--home-topbar-progress, 0) * 160px));
  --topbar-nav-gap: 14px;
  --topbar-nav-pad-y: calc(10px - (var(--home-topbar-progress, 0) * 3px));
  --topbar-nav-pad-x: calc(16px - (var(--home-topbar-progress, 0) * 3px));
  position: relative;
  top: auto;
  z-index: 3;
  background: rgba(31, 36, 84, 0.68);
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition: none;
}

.home-page .brand-logo {
  min-width: 220px;
  max-width: 100%;
  filter: drop-shadow(0 10px 20px rgba(18, 20, 66, calc(0.22 - (var(--home-topbar-progress, 0) * 0.08))));
}

.subpage-hero .topbar {
  --topbar-pad-y: 8px;
  --topbar-gap: 18px;
  --topbar-brand-gap: 14px;
  --topbar-logo-width: clamp(160px, 16vw, 220px);
  --topbar-nav-gap: 14px;
  --topbar-nav-pad-y: 7px;
  --topbar-nav-pad-x: 13px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(98, 91, 214, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 28px rgba(25, 28, 76, 0.14);
}

.hero-grid-home {
  min-height: auto;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: start;
  gap: 0;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(220px, 26vh, 340px);
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.42), transparent 0 18%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.3), transparent 0 22%),
    radial-gradient(circle at 52% 86%, rgba(255, 255, 255, 0.22), transparent 0 24%);
}

.hero-copy,
.hero-panel,
.filter-bar,
.gallery-section,
.info-grid,
.steps-section,
.faq-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 10px 6px 10px;
  align-self: start;
}

.home-page .hero-copy {
  max-width: 44rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

.eyebrow,
.section-tag,
.panel-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 0;
  border-bottom: 0;
  background: none;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.story-card h2,
.tips-card h2 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 8.5ch;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  color: #fff;
  text-wrap: balance;
}

.home-page .hero-copy h1 {
  max-width: 9ch;
  color: var(--hero);
  font-size: clamp(3.2rem, 5.6vw, 5.4rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.story-card p,
.tips-card li,
.step-card p,
.faq-list p,
.panel-card p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.home-page .hero-text {
  max-width: 36ch;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-page .eyebrow {
  color: var(--purple-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-page .hero-actions {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  font-weight: 900;
  box-shadow: none;
}

.button:hover,
.button:focus-visible,
.chip:hover,
.chip:focus-visible,
.page-action:hover,
.page-action:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #4f361d;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.home-page .button.primary {
  background: linear-gradient(135deg, #2c2f75 0%, #4d59da 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(63, 61, 171, 0.24);
}

.home-page .button.secondary {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--hero);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.22);
}

.hero-note {
  margin: 14px 0 0;
  color: rgba(32, 39, 70, 0.64);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.home-page .hero-points li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(32, 39, 70, 0.82);
}

.hero-points li:not(:last-child)::after {
  content: "•";
  margin-left: 18px;
  color: var(--gold);
}

.home-page .hero-points li:not(:last-child)::after {
  content: none;
  margin-left: 0;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-self: start;
}

.home-page .hero-panel {
  align-self: center;
}

.hero-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-self: start;
  align-items: stretch;
  max-width: 1340px;
}

.hero-choice-card {
  display: grid;
  gap: 12px;
  min-height: 560px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 56px rgba(63, 49, 126, 0.16);
}

.hero-choice-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-choice-card-link:hover,
.hero-choice-card-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(99, 91, 214, 0.4);
  box-shadow: 0 34px 70px rgba(63, 49, 126, 0.2);
}

.hero-choice-card-link:focus-visible {
  outline: 3px solid rgba(99, 91, 214, 0.22);
  outline-offset: 4px;
}

.hero-choice-kicker {
  margin: 0;
  color: var(--purple-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-choice-card h2 {
  margin: 0;
  color: var(--hero);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.85rem, 2.45vw, 2.3rem);
  line-height: 0.96;
  max-width: 9ch;
}

.hero-choice-card-gallery h2,
.hero-choice-card-builder h2 {
  max-width: 11ch;
}

.hero-choice-card p:not(.hero-choice-kicker) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-choice-visual {
  margin-top: 0;
  align-self: stretch;
}

.hero-choice-link {
  justify-self: center;
  align-self: end;
  margin-top: auto;
  pointer-events: none;
  min-width: 12.5rem;
  text-align: center;
}

.hero-choice-card .button.secondary {
  background: #efeaff;
  border-color: #d8d0ff;
  color: var(--purple-deep);
  box-shadow: none;
}

.hero-choice-card-gallery {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(245, 247, 255, 0.94));
}

.hero-choice-card-builder {
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(242, 249, 255, 0.94));
}

.subpage-hero {
  background: linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
}

.subpage-hero .topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-page,
.builder-page {
  --subpage-nav-height: 56px;
  --subpage-nav-height-compact: 56px;
}

.gallery-page .subpage-hero .topbar {
  position: sticky;
  top: 0;
  z-index: 34;
  background: rgba(98, 91, 214, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(25, 28, 76, 0.14);
  transition:
    padding 220ms ease,
    gap 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.builder-page .subpage-hero .topbar {
  position: fixed;
  top: 0;
  z-index: 34;
  background: rgba(98, 91, 214, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(25, 28, 76, 0.14);
  transition:
    padding 220ms ease,
    gap 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.builder-page {
  scroll-padding-top: var(--subpage-nav-height);
}

.gallery-page .subpage-hero .brand,
.builder-page .subpage-hero .brand {
  overflow: hidden;
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 220ms ease;
  transform-origin: left center;
}

.gallery-page .subpage-hero .brand-logo,
.builder-page .subpage-hero .brand-logo {
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page .subpage-hero .topbar.is-compact {
  --topbar-pad-y: 7px;
  --topbar-gap: 16px;
  --topbar-nav-pad-y: 6px;
  --topbar-nav-pad-x: 12px;
  --topbar-logo-width: 0px;
  min-height: var(--subpage-nav-height-compact);
  justify-content: flex-end;
  background: rgba(31, 36, 84, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 28px rgba(25, 28, 76, 0.18);
}

.gallery-page .subpage-hero .topbar.is-compact {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.gallery-page .subpage-hero .topbar.is-compact .brand {
  width: 0;
  flex: 0 0 0;
  gap: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  pointer-events: none;
}

.gallery-page .subpage-hero .topbar.is-compacting .brand-logo {
  animation: gallery-logo-tuck 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-page .subpage-hero .topbar.is-expanding .brand-logo {
  animation: gallery-logo-pop 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page .subpage-hero .topbar.is-compacting .nav-links {
  animation: gallery-nav-settle 280ms ease;
}

.gallery-page .subpage-hero .topbar.is-expanding .nav-links {
  animation: gallery-nav-bob 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page .subpage-hero .topbar.is-compact .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(18, 20, 66, 0.16));
}

@keyframes gallery-logo-tuck {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  55% {
    opacity: 0.82;
    transform: translateY(-8px) scale(0.95) rotate(-1.8deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.84) rotate(-3deg);
  }
}

@keyframes gallery-logo-pop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.82) rotate(-3deg);
  }

  58% {
    opacity: 1;
    transform: translateY(4px) scale(1.04) rotate(1.2deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes gallery-nav-settle {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-1px);
  }
}

@keyframes gallery-nav-bob {
  0% {
    transform: translateY(-6px);
    opacity: 0.88;
  }

  65% {
    transform: translateY(2px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.subpage-hero-content {
  max-width: 760px;
  padding: 30px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 38px;
}

.subpage-hero-grid {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.subpage-hero-copy {
  min-width: 0;
}

.subpage-hero-content h1 {
  margin: 0;
  max-width: 9ch;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
  color: #fff;
}

.subpage-hero-content p:not(.eyebrow) {
  max-width: 56ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.subpage-hero-visual {
  position: relative;
  min-height: 400px;
}

.gallery-hero-visual,
.builder-hero-visual {
  display: grid;
  place-items: center;
}

.gallery-showcase,
.builder-ambient {
  position: relative;
  width: min(100%, 520px);
  height: 400px;
}

.gallery-showcase-compact,
.builder-ambient-compact {
  width: 100%;
  height: 360px;
}

.gallery-showcase::before,
.builder-ambient::before {
  content: "";
  position: absolute;
  inset: 30px 22px 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.gallery-showcase-compact::before,
.builder-ambient-compact::before {
  inset: 12px;
  border-radius: 24px;
}

.gallery-showcase-card {
  position: absolute;
  inset: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 26px 54px rgba(18, 21, 60, 0.24);
  opacity: 0;
  transform: translateX(0) scale(0.84);
  transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
  filter: saturate(0.86);
}

.gallery-showcase-compact .gallery-showcase-card {
  inset: 12px;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
}

.gallery-showcase-card.is-active {
  z-index: 4;
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: saturate(1);
}

.gallery-showcase-card.is-left {
  z-index: 3;
  opacity: 0.42;
  transform: translateX(-12%) rotate(-4deg) scale(0.94);
}

.gallery-showcase-card.is-right {
  z-index: 2;
  opacity: 0.42;
  transform: translateX(12%) rotate(4deg) scale(0.94);
}

.gallery-showcase-card.is-back {
  z-index: 1;
  opacity: 0;
  transform: scale(0.78);
}

.gallery-showcase-frame {
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fffaf2;
  border: 1px solid rgba(98, 91, 214, 0.1);
}

.gallery-showcase-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.gallery-showcase-meta strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-showcase-compact .gallery-showcase-meta strong {
  font-size: 1.18rem;
}

.gallery-showcase-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4ecff;
  color: var(--purple-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.builder-ambient {
  isolation: isolate;
}

.builder-ambient-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.builder-ambient-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.builder-ambient-frame {
  position: absolute;
  inset: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 26px 54px rgba(18, 21, 60, 0.24);
  overflow: hidden;
}

.builder-ambient-compact .builder-ambient-frame {
  inset: 12px;
  border-radius: 22px;
}

.builder-ambient-compact .builder-ambient-background {
  object-position: center center;
}

.builder-ambient-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.builder-ambient-object {
  position: absolute;
  height: auto;
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(0.96);
  transition: opacity 700ms ease, transform 900ms ease;
  animation: builderAmbientFloat var(--object-duration, 7s) infinite ease-in-out;
  animation-delay: var(--float-delay, 0s);
  filter: drop-shadow(0 12px 16px rgba(70, 63, 124, 0.12));
}

.builder-ambient-object.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes builderAmbientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  background: #fffdf8;
}

.home-path-card {
  padding: 24px;
  border: 2px solid #e1d4c5;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.home-path-card h2 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.home-path-card p:not(.section-tag) {
  max-width: 44ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.home-path-card .button {
  margin-top: 22px;
}

.home-preview-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.panel-card,
.filter-bar,
.gallery-section,
.steps-section,
.faq-section,
.site-footer,
.story-card,
.tips-card,
.page-card,
.faq-list details {
  border: 2px solid #e1d4c5;
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #fff;
}

.home-page .panel-card {
  border: 3px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 68px rgba(63, 49, 126, 0.2);
}

.panel-card-large {
  position: relative;
}

.panel-card-large h2 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 2.05rem;
  color: var(--ink);
}

.panel-card-large img {
  margin-top: 14px;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(98, 91, 214, 0.12);
}

.panel-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-page .panel-inline-actions .page-action.primary {
  background: linear-gradient(135deg, #ff6b93 0%, #ffb548 100%);
  border-color: transparent;
  color: #39261a;
}

.home-page .panel-inline-actions .page-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 18px 12px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 900;
}

.filter-bar,
.gallery-section,
.steps-section,
.faq-section,
.site-footer,
.story-card,
.tips-card {
  margin-top: 0;
  padding: 34px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  border-radius: 0;
  background: #fffdf8;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: linear-gradient(
    90deg,
    #ff5d98 0 18%,
    #ff8d45 18% 36%,
    #ffd84c 36% 54%,
    #5ed29a 54% 72%,
    #59b7ff 72% 88%,
    #7b68ea 88% 100%
  );
  border-color: transparent;
}

.gallery-page .filter-bar {
  position: sticky;
  top: var(--subpage-nav-height, 56px);
  z-index: 32;
  align-items: center;
  box-shadow: 0 14px 28px rgba(34, 30, 94, 0.16);
}

.gallery-page .filter-bar-label {
  display: none;
}

.gallery-page .filter-bar-controls {
  justify-content: flex-start;
  gap: 14px;
}

.gallery-page .gallery-search {
  flex: 1 1 360px;
  width: min(100%, 420px);
}

.gallery-page .gallery-sort {
  flex: 0 0 190px;
}

.filter-bar .section-tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar-label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.filter-bar-controls {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.gallery-search {
  display: flex;
  width: min(100%, 320px);
}

.gallery-sort {
  display: flex;
  width: min(100%, 190px);
}

.gallery-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.gallery-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-search input:focus {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.24);
}

.gallery-sort select {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.88) 50%) calc(100% - 20px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 50%, transparent 50%) calc(100% - 14px) calc(50% - 3px) / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
  appearance: none;
}

.gallery-sort select:focus {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.96) 50%) calc(100% - 20px) calc(50% - 3px) / 8px 8px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 50%, transparent 50%) calc(100% - 14px) calc(50% - 3px) / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.24);
}

.gallery-sort option {
  color: var(--purple-deep);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 900;
  box-shadow: none;
}

.chip.is-active {
  background: #fff;
  color: var(--purple-deep);
  border-color: #fff;
}

.section-heading h2,
.story-card h2,
.tips-card h2,
.steps-section h2,
.faq-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading {
  max-width: 72ch;
}

.section-heading-compact {
  max-width: 52ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.saved-projects-band {
  padding: 36px max(24px, calc((100vw - var(--max-width)) / 2 + 24px)) 56px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 93, 152, 0.1), transparent 0 20%),
    radial-gradient(circle at 88% 0%, rgba(102, 189, 255, 0.16), transparent 0 22%),
    linear-gradient(180deg, #fffdfa 0%, #fff8ef 100%);
}

.saved-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.saved-projects-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.saved-projects-more .page-action {
  min-width: 11rem;
}

.saved-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ece0cf;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(43, 48, 95, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center center;
  cursor: pointer;
}

.saved-project-card:hover,
.saved-project-card:focus-within {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 26px 48px rgba(43, 48, 95, 0.12);
}

.saved-project-card:focus-visible {
  outline: 3px solid rgba(98, 91, 214, 0.26);
  outline-offset: 4px;
}

.saved-project-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 18px;
  background: linear-gradient(180deg, #fff9f1 0%, #fdf2e4 100%);
  border-bottom: 1px solid #efe2d2;
}

.saved-project-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(53, 58, 106, 0.08);
  transform-origin: center center;
  transition: transform 220ms ease;
}

.saved-project-card:hover .saved-project-preview img,
.saved-project-card:focus-within .saved-project-preview img {
  transform: scale(1.035);
}

.saved-project-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: center;
}

.saved-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
}

.saved-project-body h3 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.25rem;
}

.saved-project-body p:last-of-type {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.saved-project-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.saved-project-actions .page-action {
  flex: 1 1 0;
}

.page-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 0 rgba(112, 88, 176, 0.12), 0 34px 58px rgba(95, 66, 160, 0.18);
}

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

.page-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  aspect-ratio: 4 / 5;
  padding: 18px;
  background: #f6efe6;
  border-bottom: 1px solid #efe2d2;
  overflow: hidden;
}

.page-preview img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  transform-origin: center center;
  transition: transform 220ms ease;
}

.page-card[data-orientation="landscape"] .page-preview img {
  width: 100%;
  height: auto;
}

.page-card:hover .page-preview img,
.page-card:focus-within .page-preview img {
  transform: scale(1.04);
}

.page-card[data-orientation="landscape"]:hover .page-preview img,
.page-card[data-orientation="landscape"]:focus-within .page-preview img {
  transform: scale(1.08);
}

.page-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid #e1d4c5;
  background: #f8f2e8;
  color: #62573e;
  font-size: 0.78rem;
  font-weight: 900;
}

.page-tag {
  appearance: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.page-tag:hover,
.page-tag:focus-visible {
  background: #fff6ec;
  border-color: #cfc0ff;
  color: var(--purple-deep);
  box-shadow: 0 8px 18px rgba(77, 63, 180, 0.12);
  transform: translateY(-1px);
}

.page-tag:focus-visible {
  outline: 2px solid rgba(117, 102, 250, 0.28);
  outline-offset: 2px;
}

.page-card h3,
.step-card h3 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
}

.page-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.page-kicker {
  margin: 0;
  color: var(--purple-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d6cdbc;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: none;
}

.builder-color-button,
.gallery-color-button {
  position: relative;
  border-color: #d8cfbf;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    linear-gradient(
      120deg,
      #ff5d8f 0%,
      #ff9f45 18%,
      #ffd84f 36%,
      #71d15a 54%,
      #4fb4ff 72%,
      #7a4cc2 88%,
      #8a6dff 100%
    );
  color: #25305f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 18px rgba(122, 76, 194, 0.16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.builder-color-button::before,
.gallery-color-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.builder-color-button:hover,
.builder-color-button:focus-visible,
.gallery-color-button:hover,
.gallery-color-button:focus-visible {
  border-color: #7a4cc2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 24px rgba(122, 76, 194, 0.24);
}

.builder-color-button span,
.gallery-color-button span {
  position: relative;
  z-index: 1;
}

.page-action.primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 22px;
}

.story-card,
.tips-card {
  position: relative;
}

.story-card::before,
.tips-card::before {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255, 95, 160, 0.55);
  font-size: 1.3rem;
}

.story-card p:last-child,
.tips-card ul {
  margin-bottom: 0;
}

.tips-card ul {
  padding-left: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.step-card {
  padding: 22px;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 244, 255, 0.92));
  box-shadow: 0 14px 28px rgba(115, 74, 168, 0.1);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #59cbff, #9d7cff);
  color: #fff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(101, 99, 224, 0.18);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

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

.faq-list p {
  margin: 12px 0 0;
}

.home-jump-band,
.builder-use-band,
.gallery-jump-band,
.return-strip {
  margin-top: 0;
  padding: 34px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.home-jump-band {
  background:
    linear-gradient(90deg, rgba(255, 109, 165, 0.18), rgba(255, 210, 92, 0.16), rgba(96, 196, 255, 0.18)),
    #fffefa;
}

.builder-use-band {
  background: linear-gradient(90deg, #ffef9f 0%, #ffd2ea 42%, #caebff 100%);
}

.gallery-jump-band {
  background: #fffdfa;
}

.return-strip {
  background: linear-gradient(90deg, #fff1be 0%, #ffe3f0 48%, #f0e4ff 100%);
}

.builder-return-strip {
  background: linear-gradient(90deg, #ffe38b 0%, #ffd0e5 48%, #cfeaff 100%);
}

.gallery-return-strip {
  background: linear-gradient(90deg, #ffe8a9 0%, #ffe1f3 42%, #e4f0ff 100%);
}

.quick-choice-grid,
.gallery-jump-grid,
.use-card-row,
.return-card-row {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

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

.use-card-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.return-card-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-choice-card,
.use-card,
.return-card {
  border-radius: 22px;
  border: 2px solid #e1d4c5;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quick-choice-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 176px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.quick-choice-card strong,
.use-card strong,
.return-card h3 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.6rem;
  line-height: 0.95;
}

.quick-choice-card span,
.use-card span,
.return-card p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.quick-choice-card:hover,
.quick-choice-card:focus-visible,
.use-card:hover,
.return-card:hover {
  transform: translateY(-3px);
}

.quick-choice-easy {
  background: linear-gradient(180deg, #fffef8 0%, #fff0b4 100%);
}

.quick-choice-cute {
  background: linear-gradient(180deg, #fffefc 0%, #ffd8ef 100%);
}

.quick-choice-ocean {
  background: linear-gradient(180deg, #fbfeff 0%, #cfeeff 100%);
}

.quick-choice-detailed {
  background: linear-gradient(180deg, #fffefe 0%, #e8dcff 100%);
}

.quick-choice-build {
  background: linear-gradient(180deg, #fffef9 0%, #ffd776 28%, #ff8fa7 70%, #6c79ff 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.quick-choice-build span,
.quick-choice-build strong {
  color: #fff;
}

.use-card,
.return-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.return-card .page-action,
.return-card .button {
  margin-top: 6px;
  width: fit-content;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--hero);
  border-color: transparent;
}

.gallery-section {
  background: #fffdf8;
}

.faq-section {
  background: linear-gradient(180deg, #ffe36a 0%, #ff9dc9 100%);
}

.faq-section h2,
.faq-section .section-tag {
  color: #2b2f66;
}

.site-footer strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  color: #fff;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-logo {
  width: clamp(180px, 22vw, 250px);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(10, 12, 44, 0.18));
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.builder-page .site-shell {
  min-height: 100vh;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.builder-page-header {
  position: relative;
  z-index: 34;
  min-height: var(--subpage-nav-height);
}

.builder-page-header .topbar {
  --topbar-pad-y: 8px;
  --topbar-gap: 18px;
  --topbar-brand-gap: 14px;
  --topbar-logo-width: clamp(160px, 16vw, 220px);
  --topbar-nav-gap: 14px;
  --topbar-nav-pad-y: 7px;
  --topbar-nav-pad-x: 13px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.builder-page-header .brand {
  overflow: hidden;
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

.builder-page-header .brand-logo {
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-page .subpage-hero .topbar.is-compact {
  --topbar-pad-y: 7px;
  --topbar-gap: 16px;
  --topbar-nav-pad-y: 6px;
  --topbar-nav-pad-x: 12px;
  --topbar-logo-width: 0px;
  min-height: var(--subpage-nav-height-compact);
  justify-content: flex-end;
  background: rgba(31, 36, 84, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 28px rgba(25, 28, 76, 0.18);
}

.builder-page .subpage-hero .topbar.is-compact {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.builder-page .subpage-hero .topbar.is-compact .brand {
  width: 0;
  flex: 0 0 0;
  gap: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  pointer-events: none;
}

.builder-page .subpage-hero .topbar.is-compacting .brand-logo {
  animation: gallery-logo-tuck 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.builder-page .subpage-hero .topbar.is-expanding .brand-logo {
  animation: gallery-logo-pop 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-page .subpage-hero .topbar.is-compacting .nav-links {
  animation: gallery-nav-settle 280ms ease;
}

.builder-page .subpage-hero .topbar.is-expanding .nav-links {
  animation: gallery-nav-bob 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-page .subpage-hero .topbar.is-compact .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(18, 20, 66, 0.16));
}

.builder-page-main {
  background: linear-gradient(180deg, #74c9ff 0%, #7b68ea 100%);
  flex: 1 1 auto;
  min-height: calc(100vh - var(--subpage-nav-height));
  display: flex;
}

.builder-section {
  margin-top: 0;
  padding: 20px max(18px, calc((100vw - var(--max-width)) / 2 + 18px)) clamp(260px, 50vh, 560px);
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 1 1 auto;
  min-height: calc(100vh - var(--subpage-nav-height));
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}

.builder-app-shell {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
  min-height: 0;
  height: auto;
  width: 100%;
}

.builder-app-shell.is-layout-pinned {
  padding-bottom: calc(var(--builder-layout-pin-space, 0px) + 14px);
}

.builder-app-bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.builder-app-copy {
  display: grid;
  gap: 4px;
  max-width: 34rem;
}

.builder-app-copy h1 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1;
  color: #fff;
}

.builder-app-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
}

.builder-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.builder-badges span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.builder-pane-toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.builder-inspector-toggles {
  justify-content: flex-start;
}

.builder-pane-label {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.builder-pane-toggle {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.builder-pane-toggle.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--purple-deep);
  border-color: rgba(255, 255, 255, 0.94);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr) minmax(190px, 214px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "sidebar toolbar toolbar"
    "sidebar workspace inspector";
  gap: 14px;
  min-height: 0;
  align-items: stretch;
  align-self: start;
  height: calc(100vh - var(--subpage-nav-height) - 40px);
  position: relative;
  z-index: 4;
}

.builder-sidebar {
  grid-area: sidebar;
}

.builder-workspace {
  grid-area: workspace;
}

.builder-toolbar {
  grid-area: toolbar;
}

.builder-inspector {
  grid-area: inspector;
}

.builder-layout[data-builder-orientation="landscape"] {
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr) minmax(0, 190px);
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;
  grid-template-areas:
    "sidebar toolbar toolbar"
    "sidebar workspace workspace"
    "sidebar inspector inspector";
  height: calc(100vh - var(--subpage-nav-height) - 40px);
  align-items: stretch;
  gap: 12px;
}

.builder-layout.is-pinned {
  position: fixed;
  top: var(--builder-layout-pin-top, calc(var(--subpage-nav-height) + 8px));
  left: var(--builder-layout-pin-left, 0px);
  width: var(--builder-layout-pin-width, auto);
  z-index: 12;
}

.builder-layout.is-left-collapsed {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
  grid-template-areas:
    "toolbar toolbar"
    "workspace inspector";
}

.builder-layout.is-right-collapsed {
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "sidebar toolbar"
    "sidebar workspace";
}

.builder-layout.is-left-collapsed.is-right-collapsed {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "toolbar"
    "workspace";
}

.builder-layout.is-left-collapsed .builder-sidebar {
  display: none;
}

.builder-layout.is-right-collapsed .builder-inspector {
  display: none;
}

.builder-sidebar,
.builder-inspector,
.builder-workspace,
.builder-stage-card,
.builder-pane {
  min-height: 0;
  height: auto;
}

.builder-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  align-content: stretch;
  height: 100%;
}

.builder-inspector {
  display: grid;
  grid-template-rows: 1fr;
  align-content: stretch;
  height: 100%;
}

.builder-layout[data-builder-orientation="landscape"] .builder-sidebar,
.builder-layout[data-builder-orientation="landscape"] .builder-workspace {
  height: 100%;
}

.builder-layout[data-builder-orientation="landscape"] .builder-inspector {
  grid-template-rows: 1fr;
  height: auto;
  min-height: 0;
  align-self: stretch;
}

.builder-layout[data-builder-orientation="landscape"] .builder-inspector .builder-panel {
  height: auto;
  padding: 12px 16px;
}

.builder-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  isolation: isolate;
  margin-bottom: 0;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.builder-sidebar-tabs.is-welcome-highlight {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(255, 232, 142, 0.34),
    0 0 44px rgba(255, 255, 255, 0.18);
  animation: builder-tabs-glow 2.8s ease-in-out infinite;
}

.builder-sidebar-tabs.is-welcome-highlight::before,
.builder-sidebar-tabs.is-welcome-highlight::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.builder-sidebar-tabs.is-welcome-highlight::before {
  inset: 0;
  border-radius: 20px;
  background:
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 26%,
      rgba(255, 255, 255, 0.8) 36%,
      rgba(255, 239, 170, 0.95) 42%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.9;
  transform: translateX(-128%) skewX(-18deg);
  animation: builder-tabs-shimmer 3.2s ease-in-out infinite;
  z-index: 2;
}

.builder-sidebar-tabs.is-welcome-highlight::after {
  inset: 4px;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.1px),
    radial-gradient(circle at 18% 78%, rgba(255, 244, 186, 0.9) 0 2.5px, transparent 2.6px),
    radial-gradient(circle at 48% 10%, rgba(255, 255, 255, 0.92) 0 2px, transparent 2.1px),
    radial-gradient(circle at 72% 18%, rgba(255, 244, 186, 0.9) 0 2.5px, transparent 2.6px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.95) 0 2px, transparent 2.1px),
    radial-gradient(circle at 84% 8%, rgba(255, 244, 186, 0.9) 0 2px, transparent 2.1px);
  opacity: 0.82;
  animation: builder-tabs-sparkle 2.6s linear infinite;
  z-index: 3;
}

.builder-sidebar-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.builder-sidebar-tabs.is-welcome-highlight .builder-sidebar-tab {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.builder-sidebar-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.builder-sidebar-tab.is-active {
  background: #fff;
  color: var(--purple-deep);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(51, 42, 92, 0.12);
}

.builder-sidebar-tabs.is-welcome-highlight .builder-sidebar-tab.is-active {
  animation: builder-active-tab-float 1.9s ease-in-out infinite;
}

.builder-sidebar-tabs.is-welcome-burst {
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 24px rgba(255, 232, 142, 0.22),
    0 0 42px rgba(255, 255, 255, 0.14);
  animation: builder-tabs-burst-shell 420ms ease-out;
}

.builder-sidebar-tabs.is-welcome-burst::before,
.builder-sidebar-tabs.is-welcome-burst::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.builder-sidebar-tabs.is-welcome-burst::before {
  inset: -12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at -2% 12%, rgba(255, 255, 255, 1) 0 3px, transparent 3.1px),
    radial-gradient(circle at 2% 88%, rgba(255, 244, 186, 0.98) 0 3.5px, transparent 3.6px),
    radial-gradient(circle at 18% 2%, rgba(255, 255, 255, 0.98) 0 2.8px, transparent 2.9px),
    radial-gradient(circle at 36% -2%, rgba(255, 244, 186, 0.94) 0 3px, transparent 3.1px),
    radial-gradient(circle at 56% 104%, rgba(255, 255, 255, 0.98) 0 2.8px, transparent 2.9px),
    radial-gradient(circle at 74% 0%, rgba(255, 244, 186, 0.96) 0 3.6px, transparent 3.7px),
    radial-gradient(circle at 96% 12%, rgba(255, 255, 255, 0.98) 0 2.8px, transparent 2.9px),
    radial-gradient(circle at 104% 78%, rgba(255, 244, 186, 0.96) 0 3.2px, transparent 3.3px);
  opacity: 0;
  transform: scale(0.82);
  filter: drop-shadow(0 0 8px rgba(255, 244, 186, 0.45));
  animation: builder-tabs-burst-sparkles 520ms ease-out;
  z-index: 3;
}

.builder-sidebar-tabs.is-welcome-burst::after {
  inset: -12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 242, 170, 0.65) 24%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.82);
  animation: builder-tabs-burst-flash 340ms ease-out;
  z-index: 2;
}

.builder-sidebar-tabs.is-welcome-burst .builder-sidebar-tab.is-active {
  animation: builder-burst-tab-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes builder-tabs-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 16px rgba(255, 232, 142, 0.22),
      0 0 34px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28),
      0 0 28px rgba(255, 232, 142, 0.42),
      0 0 54px rgba(255, 255, 255, 0.22);
  }
}

@keyframes builder-tabs-shimmer {
  0%,
  14% {
    transform: translateX(-128%) skewX(-18deg);
    opacity: 0;
  }
  22% {
    opacity: 0.9;
  }
  48% {
    transform: translateX(138%) skewX(-18deg);
    opacity: 0.85;
  }
  60%,
  100% {
    transform: translateX(138%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes builder-tabs-sparkle {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }
  40% {
    opacity: 0.95;
    transform: scale(1.03);
  }
  70% {
    opacity: 0.58;
    transform: scale(1);
  }
}

@keyframes builder-active-tab-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes builder-tabs-burst-shell {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.4),
      0 0 34px rgba(255, 232, 142, 0.46),
      0 0 62px rgba(255, 255, 255, 0.24);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 8px rgba(255, 232, 142, 0.08),
      0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes builder-tabs-burst-flash {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  18% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes builder-tabs-burst-sparkles {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  20% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes builder-burst-tab-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(51, 42, 92, 0.12);
  }
  40% {
    transform: scale(1.06);
    box-shadow:
      0 10px 24px rgba(51, 42, 92, 0.14),
      0 0 18px rgba(255, 239, 170, 0.42);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(51, 42, 92, 0.12);
  }
}

.builder-panel,
.builder-stage-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(232, 225, 215, 0.9);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 10px 24px rgba(64, 54, 93, 0.08);
}

.builder-tab-panel {
  display: none;
  min-height: 0;
}

.builder-tab-panel.is-active {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  height: 100%;
}

.builder-inspector .builder-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  height: 100%;
}

.builder-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.builder-panel-title-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.builder-panel-head h3 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.28rem;
  color: var(--ink);
}

.builder-panel-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.builder-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ddd5eb;
  background: #f6f2ff;
  color: var(--purple-deep);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.builder-panel-toolbar {
  margin-top: 12px;
}

.builder-panel-scroll {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  margin-top: 12px;
  padding: 0 4px 18px 0;
  scroll-padding-bottom: 18px;
}

.builder-panel-scroll::-webkit-scrollbar {
  width: 12px;
}

.builder-panel-scroll::-webkit-scrollbar-track {
  background: rgba(221, 213, 235, 0.45);
  border-radius: 999px;
}

.builder-panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(98, 91, 214, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.builder-panel-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 91, 214, 0.72);
}

.builder-panel-scroll-library {
  align-content: stretch;
}

.builder-panel-scroll-scenes {
  overflow-anchor: none;
}

.builder-search {
  display: block;
  min-width: 0;
}

.builder-search-wide {
  width: 100%;
}

.builder-search input,
.builder-field input {
  width: 100%;
  border: 2px solid #ded2c5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.builder-search input {
  min-height: 46px;
  padding: 0 16px;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.builder-search input:focus,
.builder-field input[type="text"]:focus {
  outline: none;
  border-color: #bbaef3;
  box-shadow: 0 0 0 4px rgba(122, 112, 227, 0.14);
  background: #fff;
}

.builder-filter-group,
.builder-library-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #eee6d9;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(255, 255, 255, 0.98));
}

.builder-filter-head {
  display: grid;
  gap: 2px;
}

.builder-filter-label {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-deep);
}

.builder-filter-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.builder-orientation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-orientation-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #f0c88e;
  background: #fff;
  color: #c97812;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.builder-orientation-button.is-active {
  background: #f5b53d;
  color: #6e4300;
  border-color: #e4a62f;
}

.builder-orientation-button:hover {
  background: #fff3df;
  border-color: #ebb45b;
}

.builder-orientation-button.is-active:hover {
  background: #f5b53d;
  color: #6e4300;
  border-color: #e4a62f;
}

.builder-backgrounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 12px;
  margin-top: 0;
  padding-right: 10px;
  overflow-anchor: none;
}

.builder-background-option {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: start;
  min-width: 0;
  min-height: 154px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e8e1d7;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  overflow-anchor: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.builder-background-option:hover {
  transform: translateY(-1px);
  border-color: #d6c7ff;
  box-shadow: 0 10px 22px rgba(64, 54, 93, 0.08);
}

.builder-background-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: var(--thumb-ratio, 2 / 3);
  min-height: 108px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eadfce;
}

.builder-background-thumb img,
.builder-background-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.builder-background-option > span:last-child {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.5em;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.08;
}

.builder-background-option.is-active {
  background: #f3f0ff;
  color: var(--ink);
  border-color: #c9bfff;
  box-shadow: inset 0 0 0 2px #c9bfff;
}

.builder-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.builder-category-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #ddd5eb;
  background: #fff;
  color: var(--purple-deep);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.builder-category-chip:hover {
  border-color: #c9bfff;
  background: #f8f5ff;
}

.builder-category-chip.is-active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.builder-category-chip-ghost {
  border-style: dashed;
  color: var(--ink-soft);
  background: rgba(248, 245, 255, 0.72);
}

.builder-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 0;
  min-height: 0;
  overflow: visible;
  padding-right: 10px;
}

.builder-library-item {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 196px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e8e1d7;
  background: #fffdf8;
  cursor: grab;
  box-shadow: 0 6px 14px rgba(64, 54, 93, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.builder-library-item:hover {
  transform: translateY(-1px);
  border-color: #d6c7ff;
  box-shadow: 0 12px 24px rgba(64, 54, 93, 0.1);
  background: #fffefb;
}

.builder-library-item:active {
  cursor: grabbing;
}

.builder-library-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 102px;
  padding: 12px;
  border-radius: 12px;
  background: #fff8ec;
  border: 1px solid #eadfce;
}

.builder-library-thumb img,
.builder-library-thumb svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
}

.builder-thumb-lineart {
  fill: none;
  stroke: #000;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.builder-library-label {
  width: 100%;
  min-width: 0;
  min-height: 2.9em;
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
  color: var(--ink);
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.builder-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  border: 2px dashed rgba(153, 133, 223, 0.4);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}

.builder-workspace {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  height: 100%;
  align-content: stretch;
}

.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  align-self: start;
  min-height: 54px;
}

.builder-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.builder-toolbar .button,
.builder-toolbar .page-action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: none;
}

.builder-share-button,
.builder-print-button {
  white-space: nowrap;
  padding: 0 16px;
}

.builder-toolbar #builder-drafts {
  white-space: nowrap;
}

.builder-stage-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  height: 100%;
  align-content: stretch;
  overflow: visible;
  padding: 14px;
  transform-origin: center center;
  will-change: transform, box-shadow, filter;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease, filter 220ms ease;
}

.builder-stage-card.is-orientation-animating {
  z-index: 2;
}

.builder-stage-card.is-orientation-to-portrait {
  animation: builder-stage-switch-portrait 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-stage-card.is-orientation-to-landscape {
  animation: builder-stage-switch-landscape 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-stage-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

@keyframes builder-stage-switch-portrait {
  0% {
    transform: perspective(1200px) rotateY(-10deg) scale(0.92);
    filter: saturate(0.92);
    box-shadow: 0 10px 24px rgba(64, 54, 93, 0.08);
  }

  42% {
    transform: perspective(1200px) rotateY(5deg) scale(1.025);
    filter: saturate(1.02);
    box-shadow: 0 24px 42px rgba(64, 54, 93, 0.16);
  }

  100% {
    transform: perspective(1200px) rotateY(0deg) scale(1);
    filter: saturate(1);
    box-shadow: 0 10px 24px rgba(64, 54, 93, 0.08);
  }
}

@keyframes builder-stage-switch-landscape {
  0% {
    transform: perspective(1200px) rotateX(8deg) scale(0.94);
    filter: saturate(0.92);
    box-shadow: 0 10px 24px rgba(64, 54, 93, 0.08);
  }

  42% {
    transform: perspective(1200px) rotateX(-4deg) scale(1.02);
    filter: saturate(1.02);
    box-shadow: 0 24px 42px rgba(64, 54, 93, 0.16);
  }

  100% {
    transform: perspective(1200px) rotateX(0deg) scale(1);
    filter: saturate(1);
    box-shadow: 0 10px 24px rgba(64, 54, 93, 0.08);
  }
}

.builder-stage-frame svg {
  display: block;
  width: var(--builder-stage-visible-width, 100%);
  height: var(--builder-stage-visible-height, auto);
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 24px rgba(64, 54, 93, 0.12);
  touch-action: none;
}

.builder-stage-lineart {
  fill: none;
  stroke: #000;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.builder-stage-background-image,
.builder-stage-image {
  overflow: visible;
}

.builder-stage-item {
  cursor: grab;
}

.builder-stage-item.is-selected {
  cursor: move;
}

.builder-selection-outline {
  fill: none;
  stroke: var(--purple);
  stroke-width: 6;
  stroke-dasharray: 14 12;
}

.builder-selection-guide {
  stroke: rgba(98, 91, 214, 0.45);
  stroke-width: 4;
  stroke-linecap: round;
  pointer-events: none;
}

.builder-selection-handle {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 4;
}

.builder-selection-handle-rotate {
  cursor: grab;
}

.builder-selection-handle-scale {
  cursor: nwse-resize;
}

.builder-stage-text {
  fill: none;
  stroke: #000;
  stroke-width: 3;
  stroke-linejoin: round;
  font-size: 48px;
  font-family: "Fredoka", "Nunito", sans-serif;
}

.builder-empty-stage rect {
  fill: rgba(255, 255, 255, 0.82);
  stroke: #d8cab8;
  stroke-width: 4;
  stroke-dasharray: 18 14;
}

.builder-empty-stage text {
  fill: var(--purple-deep);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 34px;
  stroke: none;
}

.builder-note {
  margin: 8px 4px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

body.is-builder-dialog-open {
  overflow: hidden;
}

.builder-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 0 24%),
    rgba(31, 36, 84, 0.48);
  backdrop-filter: blur(8px);
}

.builder-dialog-backdrop[hidden] {
  display: none;
}

.builder-dialog {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(234, 225, 212, 0.95);
  background:
    radial-gradient(circle at top left, rgba(255, 243, 210, 0.85), transparent 0 32%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(255, 248, 239, 0.98));
  box-shadow: 0 28px 70px rgba(29, 30, 75, 0.28);
}

.builder-clear-dialog-art {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 0;
  align-self: center;
}

.builder-clear-dialog-art img {
  width: min(100%, 150px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(57, 41, 104, 0.18));
}

.builder-clear-dialog-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.builder-clear-dialog-copy h2 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  line-height: 1;
  color: var(--ink);
  max-width: 16ch;
}

.builder-clear-dialog-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.45;
  max-width: 32ch;
}

.builder-clear-dialog-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 2px 0;
  border-radius: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.builder-clear-dialog-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--purple);
}

.builder-clear-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.builder-clear-dialog-actions .page-action,
.builder-clear-dialog-actions .button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
}

.builder-clear-dialog-actions .button {
  box-shadow: none;
}

@media (min-width: 961px) {
  .builder-app-copy p:last-child {
    display: none;
  }
}

.builder-field {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.builder-text-stack {
  display: grid;
  gap: 10px;
}

.builder-drafts-dialog {
  width: min(100%, 980px);
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.builder-drafts-dialog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.builder-drafts-dialog-head h2 {
  margin: 4px 0 6px;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1;
  color: var(--ink);
}

.builder-drafts-dialog-head p:last-child {
  margin: 0;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.builder-drafts-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.builder-drafts-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(228, 214, 192, 0.95);
  background: rgba(255, 251, 243, 0.96);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.builder-drafts-empty {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(210, 195, 170, 0.94);
  background: rgba(255, 251, 244, 0.9);
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
}

.builder-drafts-list {
  display: grid;
  gap: 14px;
  max-height: min(64vh, 36rem);
  overflow-y: auto;
  padding-right: 6px;
}

.builder-draft-card {
  display: grid;
  grid-template-columns: minmax(148px, 172px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(227, 214, 192, 0.94);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(255, 248, 240, 0.96));
  box-shadow: 0 12px 28px rgba(53, 44, 112, 0.08);
}

.builder-draft-card.is-active {
  border-color: rgba(102, 91, 214, 0.42);
  box-shadow: 0 18px 36px rgba(88, 75, 194, 0.12);
}

.builder-draft-preview {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(230, 219, 200, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 247, 236, 0.96));
  aspect-ratio: 4 / 5;
}

.builder-draft-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-draft-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.builder-draft-copy h3 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.2rem;
  line-height: 1.05;
  color: var(--ink);
}

.builder-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-draft-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(225, 214, 196, 0.96);
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.builder-draft-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.builder-draft-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-self: stretch;
}

.builder-draft-actions .page-action,
.builder-draft-actions .button {
  min-width: 124px;
}

.builder-draft-delete {
  color: #cf7b9a;
}

.builder-text-submit {
  width: 100%;
  justify-content: center;
}

.builder-inspector-controls {
  display: grid;
  gap: 16px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-panel-scroll-inspector {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 12px;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  padding-right: 0;
  overflow: visible;
  scrollbar-gutter: auto;
}

.builder-layout[data-builder-orientation="landscape"] .builder-inspector-empty {
  margin-top: 0;
  min-height: 100%;
  align-content: start;
}

.builder-layout[data-builder-orientation="landscape"] .builder-inspector-controls {
  display: contents;
}

.builder-layout[data-builder-orientation="landscape"] .builder-inspector-group {
  grid-column: 1 / -1;
}

.builder-layout[data-builder-orientation="landscape"] .builder-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-stage-card {
  padding: 10px 12px 8px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-note {
  margin: 2px 4px 0;
  font-size: 0.84rem;
}

.builder-layout[data-builder-orientation="landscape"] .builder-action-grid .page-action {
  min-height: 36px;
  padding: 0 8px;
  font-size: 0.78rem;
  letter-spacing: -0.03em;
}

.builder-layout[data-builder-orientation="landscape"] .builder-action-grid .page-action:nth-child(5) {
  grid-column: auto;
}

.builder-layout[data-builder-orientation="landscape"] .builder-panel-head h3 {
  font-size: 1.16rem;
}

.builder-layout[data-builder-orientation="landscape"] .builder-text-stack,
.builder-layout[data-builder-orientation="landscape"] .builder-inspector-group {
  gap: 8px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-field span,
.builder-layout[data-builder-orientation="landscape"] .builder-inspector-group-title {
  font-size: 0.86rem;
}

.builder-layout[data-builder-orientation="landscape"] .builder-field input[type="text"] {
  min-height: 38px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-field input[type="range"] {
  min-height: 30px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-text-submit {
  min-height: 38px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-field {
  gap: 6px;
}

.builder-layout[data-builder-orientation="landscape"] .builder-panel-head {
  gap: 10px;
}

.builder-inspector-empty {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 16px;
  border-radius: 14px;
  border: 2px dashed #ddd5eb;
  background: #f8f5ff;
  color: var(--ink-soft);
}

.builder-inspector-empty strong {
  color: var(--ink);
  font-size: 1rem;
}

.builder-inspector-empty span {
  font-size: 0.94rem;
  line-height: 1.45;
}

.builder-field span {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--purple-deep);
}

.builder-field input[type="text"] {
  min-height: 44px;
  padding: 0 14px;
  font-weight: 800;
}

.builder-field input[type="range"] {
  padding: 0;
  min-height: 42px;
  accent-color: var(--purple);
}

.builder-inspector-group {
  display: grid;
  gap: 10px;
}

.builder-inspector-group-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--purple-deep);
}

.builder-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.builder-action-grid .page-action {
  position: relative;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #ddd3c1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 239, 0.96)),
    #fffdf8;
  color: #2b335f;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(42, 52, 96, 0.08);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.builder-action-grid .page-action:hover,
.builder-action-grid .page-action:focus-visible {
  border-color: rgba(122, 76, 194, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(92, 84, 180, 0.16);
}

.builder-action-grid .page-action:nth-child(5) {
  grid-column: 1 / -1;
}

.builder-danger {
  color: #b34f6f;
}

.builder-action-grid .builder-danger {
  border-color: rgba(224, 184, 199, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 249, 251, 0.98), rgba(255, 238, 244, 0.98)),
    #fff7f9;
  color: #bc5f84;
}

.builder-action-grid .builder-danger:hover,
.builder-action-grid .builder-danger:focus-visible {
  border-color: rgba(207, 135, 165, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(214, 131, 164, 0.18);
}

.builder-panel button:disabled,
.builder-toolbar button:disabled,
.builder-field input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-action-grid .page-action:disabled {
  opacity: 1;
  transform: none;
  border-color: #e4dccd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 242, 233, 0.96)),
    #f8f3e9;
  color: #99a0b5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 10px rgba(42, 52, 96, 0.04);
  filter: saturate(0.8);
}

.builder-action-grid .builder-danger:disabled {
  border-color: #eadce3;
  background:
    linear-gradient(180deg, rgba(255, 251, 252, 0.94), rgba(247, 239, 242, 0.98)),
    #faf3f6;
  color: #d4a0b7;
}

@media (max-width: 960px) {
  .hero-grid,
  .info-grid,
  .filter-bar,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .card-grid,
  .saved-projects-grid,
  .steps-grid,
  .panel-stats,
  .quick-choice-grid,
  .gallery-jump-grid,
  .use-card-row,
  .return-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toolbar"
      "workspace"
      "sidebar"
      "inspector";
    height: auto;
    position: static;
    top: auto;
  }

  .builder-app-shell {
    min-height: auto;
    height: auto;
  }

  .builder-app-bar {
    display: grid;
    gap: 14px;
  }

  .filter-bar {
    align-items: start;
  }

  .filter-bar-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: flex-start;
  }

  .gallery-search {
    width: 100%;
  }

  .gallery-sort {
    width: 100%;
  }

  .chip-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .builder-badges,
  .builder-pane-toggles {
    justify-items: start;
    justify-content: flex-start;
  }

  .builder-toolbar {
    position: sticky;
    top: calc(var(--subpage-nav-height) + 10px);
    z-index: 10;
    padding: 10px;
    border-radius: 16px;
    background: rgba(116, 201, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(44, 42, 109, 0.14);
  }

  .builder-print-button {
    margin-left: 0;
  }

  .builder-toolbar-actions {
    margin-left: 0;
  }

  .builder-sidebar,
  .builder-inspector,
  .builder-workspace {
    min-height: auto;
    height: auto;
    position: static;
    top: auto;
  }

  .builder-stage-frame {
    height: auto;
  }

  .builder-stage-frame svg {
    width: 100%;
    height: auto;
  }

  .builder-tab-panel.is-active,
  .builder-inspector .builder-panel {
    max-height: min(70vh, 42rem);
  }

  .builder-panel-scroll {
    max-height: clamp(18rem, 48vh, 30rem);
  }

  .builder-category-row,
  .builder-orientation-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .builder-category-row::-webkit-scrollbar,
  .builder-orientation-row::-webkit-scrollbar {
    display: none;
  }

  .builder-category-chip,
  .builder-orientation-button {
    flex: 0 0 auto;
  }

  .builder-page {
    overflow: auto;
  }

  .subpage-hero-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero-visual {
    min-height: 340px;
  }

  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    justify-content: flex-start;
  }

  .hero-grid-home {
    gap: 14px;
    padding-top: 28px;
    padding-bottom: 132px;
  }

  .hero-choice-grid {
    grid-template-columns: 1fr;
  }

  .builder-dialog {
    grid-template-columns: 1fr;
    width: min(100%, 560px);
    gap: 18px;
    padding: 18px;
  }

  .builder-clear-dialog-art {
    min-height: 160px;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: 100%;
    padding-top: 0;
  }

  .hero,
  .home-jump-band,
  .builder-use-band,
  .gallery-jump-band,
  .return-strip,
  .builder-section,
  .filter-bar,
  .gallery-section,
  .steps-section,
  .faq-section,
  .site-footer,
  .story-card,
  .tips-card {
    padding: 24px 18px;
    border-radius: 0;
  }

  .builder-section {
    padding-bottom: clamp(180px, 38vh, 340px);
  }

  .hero-copy h1 {
    max-width: none;
  }

  .home-page .panel-card {
    padding: 24px;
    border-radius: 26px;
  }

  .home-choice-label {
    font-size: 1.3rem;
  }

  .nav-links,
  .hero-actions,
  .page-actions,
  .chip-row,
  .builder-toolbar,
  .builder-pane-toggles {
    width: 100%;
  }

  .gallery-search {
    width: 100%;
  }

  .gallery-sort {
    width: 100%;
  }

  .chip-row {
    justify-content: flex-start;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links a,
  .button,
  .page-action {
    flex: 1 1 auto;
  }

  .card-grid,
  .saved-projects-grid,
  .steps-grid,
  .panel-stats,
  .quick-choice-grid,
  .gallery-jump-grid,
  .use-card-row,
  .return-card-row,
  .builder-library,
  .builder-backgrounds {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: min(100%, 320px);
  }

  .gallery-showcase,
  .builder-ambient {
    width: 100%;
    height: 330px;
  }

  .gallery-showcase-card {
    inset: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .builder-print-button {
    margin-left: 0;
  }

  .builder-toolbar-actions {
    margin-left: 0;
  }

  .builder-sidebar-tabs {
    width: 100%;
  }

  .builder-sidebar-tab,
  .builder-pane-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .builder-panel-head {
    align-items: start;
  }

  .builder-panel-count {
    font-size: 0.78rem;
  }

  .builder-dialog-backdrop {
    padding: 16px;
  }

  .builder-clear-dialog-option,
  .builder-clear-dialog-actions {
    width: 100%;
  }

  .builder-clear-dialog-actions .page-action,
  .builder-clear-dialog-actions .button {
    width: 100%;
    justify-content: center;
  }
}

body.color-online-open {
  overflow: hidden;
}

body.color-online-window-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 38%),
    linear-gradient(180deg, #d7e9ff 0%, #c0dbff 52%, #b4d1f9 100%);
}

body.color-online-window-page.color-online-open {
  overflow: hidden;
}

.color-online-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 25, 63, 0.68);
  backdrop-filter: blur(14px);
}

.color-online-backdrop[hidden] {
  display: none;
}

.color-online-window-page .color-online-backdrop {
  position: static;
  min-height: 100vh;
  padding: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background: transparent;
  backdrop-filter: none;
}

.color-online-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.color-online-topbar {
  display: none;
}

.color-online-heading {
  display: none;
}

.color-online-kicker {
  display: none;
}

.color-online-heading h2 {
  display: none;
}

.color-online-instructions {
  display: none;
}

.color-online-actions {
  display: none;
}

.color-online-actions .page-action {
  min-width: 0;
}

.color-online-workspace {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top, rgba(255, 250, 233, 0.72), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(214, 232, 255, 0.22), transparent 0 24%),
    linear-gradient(180deg, rgba(247, 239, 223, 0.96), rgba(240, 231, 214, 0.94));
}

.color-online-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(154, 141, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 141, 120, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.72;
  pointer-events: none;
}

.color-online-workspace.is-pan-mode .color-online-stage-viewport,
.color-online-workspace.is-pan-mode .color-online-stage {
  cursor: grab;
}

.color-online-workspace.is-panning .color-online-stage-viewport,
.color-online-workspace.is-panning .color-online-stage {
  cursor: grabbing;
}

.color-online-stage-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  outline: none;
}

.color-online-stage-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(154, 141, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 141, 120, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.72;
  pointer-events: none;
}

.color-online-stage-anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  will-change: transform;
}

.color-online-stage-scale {
  transform-origin: center center;
  will-change: transform;
}

.color-online-stage-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.color-online-stage {
  display: block;
  width: auto;
  height: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(36, 39, 70, 0.1);
  cursor: crosshair;
  touch-action: none;
}

.color-online-panel {
  position: absolute;
  z-index: 3;
  width: min(328px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(208, 199, 184, 0.92);
  border-radius: 26px;
  background: rgba(255, 251, 245, 0.94);
  box-shadow:
    0 22px 54px rgba(19, 29, 72, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.color-online-panel.is-horizontal {
  width: min(1380px, calc(100% - 28px));
  max-height: min(322px, calc(100% - 32px));
  padding: 8px;
}

.color-online-panel.is-dragging {
  box-shadow:
    0 28px 60px rgba(19, 29, 72, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.84);
}

.color-online-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  cursor: grab;
}

.color-online-panel.is-dragging .color-online-panel-header {
  cursor: grabbing;
}

.color-online-panel-actions {
  display: flex;
  width: auto;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.color-online-orientation-toggle {
  box-sizing: border-box;
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  flex: 0 0 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.color-online-panel.is-horizontal .color-online-orientation-toggle {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  flex-basis: 32px;
}

.color-online-orientation-toggle-icon {
  display: inline-block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(-1px);
}

.color-online-orientation-toggle:hover,
.color-online-orientation-toggle:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.color-online-panel-body {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.color-online-panel-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.color-online-panel-section-header .color-online-toolbar-label {
  margin: 0;
}

.color-online-panel-utilities {
  gap: 8px;
  padding-top: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(254, 248, 239, 0.84)),
    linear-gradient(135deg, rgba(122, 76, 194, 0.04), rgba(255, 184, 92, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(67, 54, 96, 0.04);
}

.color-online-panel-utility-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.color-online-panel-utility-row .page-action {
  min-width: 0;
}

.color-online-panel.is-horizontal .color-online-panel-body {
  grid-template-columns:
    minmax(205px, 1.05fr)
    minmax(310px, 1.55fr)
    minmax(180px, 0.9fr)
    minmax(180px, 0.9fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 8px;
}

.color-online-panel.is-horizontal .color-online-panel-utilities {
  grid-column: 1;
  grid-row: 1;
}

.color-online-panel.is-horizontal .color-online-panel-palette {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.color-online-panel.is-horizontal .color-online-panel-modes {
  grid-column: 3;
  grid-row: 1;
}

.color-online-panel.is-horizontal .color-online-panel-brush {
  grid-column: 4;
  grid-row: 1;
}

.color-online-panel.is-horizontal .color-online-panel-view {
  grid-column: 1;
  grid-row: 2;
}

.color-online-panel.is-horizontal .color-online-panel-utility-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-online-panel.is-horizontal .color-online-panel-utility-row .page-action {
  min-height: 46px;
  font-size: 0.85rem;
  padding-inline: 10px;
}

.color-online-panel.is-horizontal .color-online-panel-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 5px;
  padding: 8px 9px;
  min-width: 0;
  border-radius: 16px;
}

.color-online-panel.is-horizontal .color-online-toolbar-hint {
  display: none;
}

.color-online-panel.is-horizontal .color-online-toolbar-label {
  margin: 0;
  font-size: 0.82rem;
}

.color-online-panel.is-horizontal .color-online-panel-palette .color-online-select {
  min-width: 0;
}

.color-online-panel.is-horizontal .color-online-panel-palette {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
}

.color-online-panel.is-horizontal .color-online-panel-palette > .color-online-toolbar-label {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}

.color-online-panel.is-horizontal .color-online-panel-palette > .color-online-select {
  grid-column: 2;
  grid-row: 1;
}

.color-online-panel.is-horizontal .color-online-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 5px;
  grid-column: 1 / -1;
}

.color-online-panel.is-horizontal .color-online-pill,
.color-online-panel.is-horizontal .color-online-swatch {
  min-height: 46px;
  padding: 6px;
}

.color-online-panel.is-horizontal .color-online-select,
.color-online-panel.is-horizontal .color-online-mini-button {
  min-height: 34px;
  padding: 5px 8px;
}

.color-online-panel.is-horizontal .color-online-custom {
  width: 100%;
  max-width: 170px;
  min-width: 0;
  padding: 5px 8px;
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  gap: 10px;
}

.color-online-panel.is-horizontal .color-online-zoom-value {
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 12px;
  min-width: 64px;
}

.color-online-panel.is-horizontal .color-online-custom-label {
  font-size: 0.84rem;
}

.color-online-panel.is-horizontal .color-online-mode-row,
.color-online-panel.is-horizontal .color-online-panel-brush .color-online-pill-row {
  flex-wrap: wrap;
}

.color-online-panel.is-horizontal .color-online-mode-row .color-online-pill,
.color-online-panel.is-horizontal .color-online-panel-brush .color-online-pill {
  flex: 1 1 calc(50% - 6px);
}

.color-online-panel.is-horizontal .color-online-panel-brush .color-online-brush-option {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 62px;
}

.color-online-panel-section {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(223, 215, 202, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.color-online-toolbar-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.color-online-toolbar-hint-actions {
  margin-top: -4px;
}

.color-online-panel-actions-header .color-online-panel-header {
  margin-top: -2px;
}

.color-online-toolbar-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.color-online-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-online-brush-row {
  gap: 12px;
}

.color-online-mode-row .color-online-pill {
  flex: 1 1 calc(33.33% - 8px);
}

.color-online-brush-option {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 76px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.color-online-brush-dot {
  width: var(--brush-preview-size, 12px);
  height: var(--brush-preview-size, 12px);
  border-radius: 999px;
  background: #202746;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.color-online-pill {
  min-height: 46px;
  padding: 10px 15px;
  border: 2px solid #e2d8c8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.color-online-action-button {
  position: relative;
  min-height: 46px;
  padding: 10px 12px;
  border-width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(36, 39, 70, 0.08);
  font-size: 0.95rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.color-online-action-button:hover,
.color-online-action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(98, 91, 214, 0.42);
  box-shadow: 0 10px 20px rgba(36, 39, 70, 0.08);
  outline: none;
}

.color-online-action-button.is-history {
  min-height: 46px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
}

.color-online-action-button.is-primary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #6d5df6 0%, #7f6cff 58%, #9f87ff 100%);
  border-color: rgba(111, 92, 228, 0.72);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 28px rgba(109, 93, 246, 0.24);
}

.color-online-action-button.is-primary:hover,
.color-online-action-button.is-primary:focus-visible {
  border-color: rgba(111, 92, 228, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 30px rgba(109, 93, 246, 0.28);
}

.color-online-action-button.is-download {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96)),
    linear-gradient(135deg, rgba(79, 180, 255, 0.06), rgba(122, 76, 194, 0.05));
  border-color: rgba(150, 183, 223, 0.72);
}

.color-online-action-button.is-utility {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 242, 0.96));
}

.color-online-pill:hover,
.color-online-pill:focus-visible,
.color-online-mini-button:hover,
.color-online-mini-button:focus-visible,
.color-online-select:focus-visible,
.color-online-swatch:hover,
.color-online-swatch:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(98, 91, 214, 0.42);
  box-shadow: 0 10px 20px rgba(36, 39, 70, 0.08);
  outline: none;
}

.color-online-pill.is-active {
  border-color: var(--purple);
  background: rgba(98, 91, 214, 0.12);
  box-shadow:
    0 0 0 3px rgba(98, 91, 214, 0.12),
    0 12px 24px rgba(36, 39, 70, 0.08);
}

.color-online-brush-option.is-active {
  background: rgba(98, 91, 214, 0.08);
}

.color-online-select,
.color-online-mini-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid #e2d8c8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.color-online-select {
  width: 100%;
  cursor: pointer;
}

.color-online-mini-button {
  cursor: pointer;
}

.color-online-mini-button.color-online-orientation-toggle {
  min-height: 32px;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.color-online-mini-button.color-online-orientation-toggle:hover,
.color-online-mini-button.color-online-orientation-toggle:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.color-online-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-online-view-header .color-online-toolbar-label {
  margin-right: auto;
}

.color-online-zoom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.color-online-zoom-slider {
  width: 100%;
  margin: 0;
  accent-color: var(--purple);
}

.color-online-zoom-value {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid rgba(223, 215, 202, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 242, 233, 0.96) 100%);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.color-online-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.color-online-swatch {
  display: inline-grid;
  place-items: center;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  padding: 8px;
  border: 2px solid #e2d8c8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.color-online-swatch.is-active {
  border-color: var(--purple);
  box-shadow:
    0 0 0 3px rgba(98, 91, 214, 0.12),
    0 12px 24px rgba(36, 39, 70, 0.08);
}

.color-online-swatch-fill {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--blob-radius, 999px);
  border: 2px solid rgba(32, 39, 70, 0.14);
  background: var(--swatch);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.38),
    inset -2px -2px 3px rgba(0, 0, 0, 0.06);
  transform: rotate(var(--blob-rotate, 0deg)) scaleX(var(--blob-scale-x, 1)) scaleY(var(--blob-scale-y, 1));
}

.color-online-panel.is-horizontal .color-online-swatch-fill {
  width: 30px;
  height: 30px;
}

.color-online-custom {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2d8c8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
}

.color-online-custom-label {
  font-size: 0.94rem;
}

.color-online-custom input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.color-online-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.color-online-window-page .color-online-shell {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
}

@media (max-width: 900px) {
  .color-online-shell {
    min-height: 100vh;
  }

  .color-online-workspace {
    min-height: 100vh;
  }

  .color-online-panel {
    width: min(420px, calc(100% - 24px));
  }

  .color-online-panel.is-horizontal {
    width: min(100%, calc(100% - 24px));
  }

  .color-online-panel.is-horizontal .color-online-panel-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-height: 820px) {
  .color-online-panel {
    max-height: calc(100% - 28px);
    padding: 8px;
  }

  .color-online-panel-header {
    top: 6px;
    right: 6px;
  }

  .color-online-panel-body {
    gap: 6px;
  }

  .color-online-panel-section {
    gap: 8px;
    padding: 9px;
    border-radius: 18px;
  }

  .color-online-panel .color-online-toolbar-label {
    font-size: 0.9rem;
  }

  .color-online-panel .color-online-pill,
  .color-online-panel .color-online-select,
  .color-online-panel .color-online-mini-button,
  .color-online-panel .color-online-swatch {
    min-height: 42px;
  }

  .color-online-panel .color-online-brush-option {
    min-width: 70px;
    min-height: 70px;
  }

  .color-online-panel .color-online-custom {
    padding: 8px 10px;
  }
}

@media (max-width: 680px) {
  .color-online-workspace {
    min-height: 100vh;
  }

  .color-online-panel {
    left: 12px !important;
    right: 12px;
    top: 12px !important;
    width: auto;
    max-height: calc(100% - 24px);
  }

  .color-online-panel.is-horizontal .color-online-panel-body {
    grid-template-columns: 1fr;
  }

  .color-online-zoom-row {
    grid-template-columns: 1fr;
  }

  .color-online-pill,
  .color-online-swatch {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (pointer: coarse) {
  .button,
  .page-action,
  .chip,
  .builder-sidebar-tab,
  .builder-category-chip,
  .builder-orientation-button,
  .builder-pane-toggle,
  .gallery-search input,
  .builder-search input,
  .builder-field input[type="text"] {
    min-height: 52px;
  }

  .builder-field input[type="range"] {
    min-height: 48px;
  }

  .builder-library-thumb {
    min-height: 104px;
  }

  .builder-toolbar {
    gap: 10px;
  }
}

@media (hover: none) {
  .button:hover,
  .chip:hover,
  .page-action:hover,
  .hero-choice-card-link:hover,
  .saved-project-card:hover,
  .page-card:hover,
  .builder-library-item:hover,
  .builder-background-option:hover,
  .quick-choice-card:hover,
  .use-card:hover,
  .return-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-sidebar-tabs.is-welcome-highlight,
  .builder-sidebar-tabs.is-welcome-highlight::before,
  .builder-sidebar-tabs.is-welcome-highlight::after,
  .builder-sidebar-tabs.is-welcome-highlight .builder-sidebar-tab.is-active,
  .builder-sidebar-tabs.is-welcome-burst,
  .builder-sidebar-tabs.is-welcome-burst::before,
  .builder-sidebar-tabs.is-welcome-burst::after {
    animation: none;
  }

  .builder-dialog {
    transition: none;
  }
}
