/* PAGES — original Neuro Formula styles, with descriptive class names. */
.studio__desktop-nav {
  display: none;
}
.studio__page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 18px 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio__mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -18px 0;
  padding: 20px 18px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: padding-top 0.2s ease;
}
.studio__mobile-header-compact {
  padding-top: 10px;
}
.studio__mobile-header-title {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 600;
}
.studio__mobile-header-heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio__mobile-header-heading button {
  min-height: 34px;
  height: 34px;
}
.studio__mobile-history-filters {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.studio__mobile-history-filters > div {
  width: max-content;
  min-width: 0;
  max-width: 100%;
}
.studio__mobile-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio__mobile-close-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.studio__mobile-close-button svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 768px) {
  .studio__desktop-nav {
    display: block;
  }
  .studio__page {
    min-height: calc(100dvh - 70px);
    padding: 0 28px;
    gap: 24px;
  }
  .studio__mobile-header {
    display: none;
  }
}
.partner__page {
  padding-top: 0;
  gap: 64px;
}
.partner__page-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
  overflow: hidden;
}
.partner__dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1.2px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.partner__radial-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 800px);
  height: min(80vw, 800px);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 5%, transparent) 0, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.partner__page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 34px 20px 0;
  text-align: center;
}
.partner__hero-photo-cards {
  position: relative;
  width: min(100%, 320px);
  height: 146px;
  margin: 0 auto 26px;
}
.partner__hero-photo-card {
  --card-rotate: 0deg;
  --float-x: 0px;
  --float-y: -5px;
  --float-rotate: 0.8deg;
  position: absolute;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%), var(--surface);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  transform: translateZ(0) rotate(var(--card-rotate));
  transform-origin: 50% 60%;
  animation: partner-partner-hero-photo-float 8.5s ease-in-out infinite;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
}
.partner__hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 0.5px color-mix(in srgb, var(--text) 40%, transparent);
  pointer-events: none;
}
.partner__hero-photo-card:first-child {
  --card-rotate: -9deg;
  --float-x: -4px;
  --float-y: -6px;
  --float-rotate: -0.7deg;
  top: 34px;
  left: 24px;
  z-index: 2;
  animation-duration: 9.5s;
}
.partner__hero-photo-card:nth-child(2) {
  --card-rotate: 5deg;
  --float-x: 3px;
  --float-y: 5px;
  --float-rotate: 0.6deg;
  top: 0;
  left: 25%;
  z-index: 4;
  animation-delay: -2.2s;
  animation-duration: 8.8s;
}
.partner__hero-photo-card:nth-child(3) {
  --card-rotate: -5deg;
  --float-x: 4px;
  --float-y: -4px;
  --float-rotate: 0.7deg;
  right: 23%;
  bottom: 0;
  z-index: 3;
  animation-delay: -4.4s;
  animation-duration: 10.2s;
}
.partner__hero-photo-card:nth-child(4) {
  --card-rotate: 10deg;
  --float-x: -3px;
  --float-y: 4px;
  --float-rotate: -0.6deg;
  top: 18px;
  right: 24px;
  z-index: 1;
  animation-delay: -6.1s;
  animation-duration: 9.2s;
}
.partner__hero-earning-amount {
  color: var(--accent);
  font-family: var(--font-card-title);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.partner__hero-earning-text {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
  .partner__hero-photo-card {
    animation: none;
  }
}
.partner__page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  font-family: var(--font-card-title);
  margin: 0 auto 12px;
  max-width: 510px;
  text-transform: uppercase;
}
.partner__page-subtitle {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}
.partner__subtitle-accent {
  font-weight: 600;
}
.partner__hero-action {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 280px;
}
.partner__btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner__creator-banner:hover .partner__btn-arrow,
.partner__hero-action:hover .partner__btn-arrow,
.partner__steps-action:hover .partner__btn-arrow {
  transform: translateX(4px);
}
.partner__features-section {
  width: 100%;
}
.partner__features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.partner__calculator-section {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.partner__calculator-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.partner__calculator-controls {
  display: grid;
  gap: 12px;
}
.partner__calculator-control {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}
.partner__calculator-control span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
}
.partner__calculator-control strong {
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 24px;
  line-height: 1;
}
.partner__calculator-control input {
  height: 22px;
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.partner__calculator-control input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface);
}
.partner__calculator-control input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  border-radius: 999px;
  background: var(--accent);
}
.partner__calculator-control input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface);
}
.partner__calculator-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
}
.partner__calculator-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.partner__calculator-result > span,
.partner__calculator-yearly span {
  color: var(--text-muted);
  font-size: 13px;
}
.partner__calculator-result strong {
  color: var(--accent);
  font-family: var(--font-card-title);
  font-size: 34px;
  line-height: 1;
}
.partner__calculator-yearly {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.partner__calculator-yearly b {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
}
.partner__calculator-result p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.partner__calculator-cta {
  margin-top: 8px;
}
.partner__feature-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}
.partner__feature-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text);
}
.partner__feature-icon-svg {
  display: block;
  width: 28px;
  height: 28px;
}
.partner__feature-card-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.partner__feature-card-text {
  flex-grow: 1;
  max-width: 280px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.partner__section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.partner__creator-banner h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
}
.partner__creator-banner p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.partner__creator-banner {
  display: grid;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--text) 4%, transparent) 42%), var(--surface);
  text-align: center;
}
.partner__page .partner__faq-block {
  margin: 0 auto;
}
.partner__steps-section {
  width: 100%;
  text-align: center;
}
.partner__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.partner__step-item {
  min-width: 0;
}
.partner__step-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 8%, transparent), transparent 52%), color-mix(in srgb, var(--text) 4.5%, transparent);
}
.partner__step-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 0.5px color-mix(in srgb, var(--text) 8%, transparent);
  pointer-events: none;
}
.partner__login-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
}
.partner__check-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(
    circle at 35% 25%,
    color-mix(in srgb, var(--text) 90%, transparent),
    var(--accent) 42%,
    var(--accent-soft)
  );
  color: var(--accent-foreground);
  font-size: 42px;
  line-height: 1;
  box-shadow: 0 0 48px color-mix(in srgb, var(--accent) 22%, transparent);
}
.partner__post-image-stack {
  position: relative;
  width: 180px;
  height: 220px;
}
.partner__post-image-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 205px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.partner__post-image-card:first-child {
  z-index: 1;
  transform: translate(-42%, -50%) rotate(-6deg);
}
.partner__post-image-card:last-child {
  transform: translate(-58%, -54%) rotate(3deg);
}
.partner__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner__money-visual {
  width: min(260px, 82%);
}
.partner__money-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--text) 42%, transparent), transparent 40%),
    linear-gradient(135deg, var(--accent), var(--premium));
  color: var(--accent-foreground);
  text-align: left;
}
.partner__money-card span {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.72;
}
.partner__money-card strong {
  font-family: var(--font-card-title);
  font-size: 32px;
  line-height: 0.95;
}
.partner__money-card em {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.partner__step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 0;
}
.partner__step-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.partner__step-text h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.partner__step-text p {
  max-width: 320px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.partner__steps-action {
  display: flex;
  justify-content: center;
  width: min(220px, 100%);
  margin: 30px auto 0;
}
@media (min-width: 768px) {
  .partner__page {
    gap: 128px;
  }
  .partner__page-header {
    padding: 64px 20px 0;
  }
  .partner__hero-earning-amount {
    font-size: 26px;
  }
  .partner__hero-photo-cards {
    width: 520px;
    height: 206px;
    margin-bottom: 34px;
  }
  .partner__hero-photo-card {
    width: 148px;
    border-radius: 22px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
    gap: 10px;
    padding: 18px;
  }
  .partner__hero-photo-card:first-child {
    top: 46px;
    left: 0;
  }
  .partner__hero-photo-card:nth-child(2) {
    left: 27%;
  }
  .partner__hero-photo-card:nth-child(3) {
    right: 22%;
  }
  .partner__hero-photo-card:nth-child(4) {
    top: 26px;
    right: 0;
  }
  .partner__page-title {
    font-size: 36px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .partner__steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .partner__step-visual {
    min-height: 270px;
    border-radius: 24px;
  }
  .partner__step-text {
    padding-top: 20px;
  }
  .partner__step-text h3 {
    font-size: 24px;
  }
  .partner__step-text p {
    font-size: 15px;
  }
  .partner__features-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .partner__creator-banner {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    padding: 28px;
    text-align: left;
  }
  .partner__calculator-card {
    grid-template-columns: minmax(0, 1fr) 290px;
    padding: 18px;
  }
  .partner__calculator-result strong {
    font-size: 38px;
  }
}
.pricing__page {
  gap: 64px;
}
.pricing__hero-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}
.pricing__page-header {
  text-align: left;
}
.pricing__page-title {
  font-family: var(--font-card-title);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.pricing__page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.pricing__trust-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 20px auto 0;
  text-align: center;
}
.pricing__trust-laurel {
  width: 24px;
  height: 48px;
  flex-shrink: 0;
  background-color: var(--text-muted);
  -webkit-mask: url("/assets/images/laurel.webp") center/contain no-repeat;
  mask: url("/assets/images/laurel.webp") center/contain no-repeat;
  opacity: 0.65;
}
.pricing__trust-laurel-right {
  transform: scaleX(-1);
}
.pricing__trust-caption {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.65;
  line-height: 1.5;
}
.pricing__trust-desktop-copy {
  display: none;
}
.pricing__token-purchase-dev-action {
  display: flex;
  justify-content: flex-end;
}
.pricing__token-purchase-dev-button {
  min-height: 40px;
  padding: 8px 14px;
  border-width: 1px;
  background: transparent;
  color: var(--text-dim);
  gap: 8px;
}
.pricing__token-purchase-dev-button:hover {
  background: transparent;
  color: var(--text);
}
.pricing__token-purchase-dev-icon {
  width: 20px;
  height: 20px;
}
.pricing__desktop-extended-plans,
.pricing__desktop-pay-button {
  display: none;
}
.pricing__plans-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 18px;
}
.pricing__desktop-pay-button > div {
  width: 100%;
}
.pricing__payment-support-link {
  display: inline-flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pricing__payment-support-link:hover {
  color: var(--text);
}
.pricing__business-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--accent-bg), transparent), var(--surface);
}
.pricing__business-content {
  max-width: 620px;
}
.pricing__business-content h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.pricing__business-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.pricing__business-action {
  flex-shrink: 0;
}
.pricing__business-action-icon {
  width: 18px;
  height: 18px;
}
@media (min-width: 768px) {
  .pricing__business-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
  }
  .pricing__business-action {
    min-width: 180px;
  }
}
.pricing__features-section {
  width: 100%;
  margin: 0 auto;
}
.pricing__features-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
.pricing__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 20px;
  height: 100%;
  background: var(--surface);
}
.pricing__feature-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 20px;
}
.pricing__feature-icon-svg {
  width: 28px;
  height: 28px;
  display: block;
}
.pricing__feature-card-title {
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.pricing__feature-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  flex-grow: 1;
}
.pricing__disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
.pricing__disclaimer a {
  text-decoration: underline;
  color: inherit;
}
.pricing__promo-container {
  display: flex;
  justify-content: center;
}
.pricing__section {
  margin-bottom: 0;
}
.pricing__examples-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pricing__examples-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: pricing-reviews-marquee 34s linear infinite;
  will-change: transform;
}
.pricing__example-card {
  display: block;
  width: 170px;
  flex: 0 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  position: relative;
}
.pricing__example-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}
.pricing__example-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pricing__example-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.pricing__example-overlay-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.pricing__example-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-align: left;
  pointer-events: none;
}
.pricing__example-label {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pricing__example-overlay-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pricing__reviews-section {
  overflow: hidden;
}
.pricing__reviews-marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pricing__reviews-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: pricing-reviews-marquee 34s linear infinite;
  will-change: transform;
}
.pricing__reviews-track-reverse {
  animation-direction: reverse;
}
.pricing__review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  width: 280px;
  flex: 0 0 280px;
}
.pricing__review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing__reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.pricing__reviewer-role {
  font-size: 12px;
  color: var(--text-muted);
}
.pricing__review-content {
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-style: italic;
}
.pricing__stars-container {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 2px;
}
.pricing__star-icon {
  color: var(--premium);
}
.pricing__reviews-count {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 24px;
}
.pricing__modal-title {
  margin-bottom: 24px;
  text-align: center;
}
.pricing__promo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing__promo-input {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.pricing__promo-input:focus {
  border-color: var(--border);
}
.pricing__promo-submit {
  background: var(--text);
  color: var(--accent-foreground);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pricing__promo-submit:hover {
  background: var(--text);
}
@media (min-width: 768px) {
  .pricing__trust-desktop-copy {
    display: inline;
  }
  .pricing__trust-mobile-copy {
    display: none;
  }
  .pricing__page {
    gap: 128px;
  }
  .pricing__hero-section {
    gap: 40px;
  }
  .pricing__page-header {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
  }
  .pricing__features-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .pricing__page-title {
    font-size: 36px;
    line-height: 1.5;
    max-width: 510px;
  }
  .pricing__page-subtitle {
    margin: 0 auto;
    max-width: 600px;
    font-size: 16px;
  }
  .pricing__trust-laurel {
    width: 32px;
    height: 64px;
  }
  .pricing__trust-caption {
    margin-top: 6px;
    font-size: 14px;
  }
  .pricing__desktop-pay-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(100%, 320px);
    margin: 0 auto;
  }
  .pricing__feature-card {
    padding: 32px;
  }
  .pricing__feature-card-title {
    font-size: 20px;
  }
  .pricing__feature-card-text {
    font-size: 15px;
  }
  .pricing__disclaimer {
    max-width: 760px;
    margin: 0 auto;
    font-size: 12px;
  }
  .pricing__section {
    margin-bottom: 0;
  }
  .pricing__examples-track {
    gap: 16px;
  }
  .pricing__example-card {
    width: 240px;
    border-radius: var(--radius-xl);
  }
  .pricing__reviews-track {
    gap: 16px;
  }
  .pricing__review-card {
    width: 360px;
    flex-basis: 360px;
    min-height: 180px;
    padding: 20px;
    border-radius: var(--radius-xl);
  }
  .pricing__review-content {
    font-size: 14px;
  }
}
@media (min-width: 1200px) {
  .pricing__mobile-pricing-tiers {
    display: none;
  }
  .pricing__desktop-extended-plans {
    display: block;
    padding-top: 32px;
  }
  .pricing__desktop-pay-button {
    display: none;
  }
}
.prompt-detail__page {
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.prompt-detail__modal-surface {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}
.prompt-detail__page-surface {
  background: var(--bg);
}
.prompt-detail__page-backdrop {
  display: none;
}
.prompt-detail__page-backdrop-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prompt-detail__result-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}
.prompt-detail__desktop-main-button,
.prompt-detail__desktop-menu {
  display: none;
}
.prompt-detail__mobile-main-button {
  display: block;
}
.prompt-detail__close-button {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  z-index: 5;
  transition: background 0.18s ease;
}
.prompt-detail__actions-menu-wrapper {
  position: absolute;
  top: 24px;
  left: 18px;
  z-index: 5;
}
.prompt-detail__desktop-navigation-buttons {
  display: none;
}
.prompt-detail__actions-menu-trigger {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.18s ease;
}
.prompt-detail__actions-menu-trigger:hover,
.prompt-detail__close-button:hover,
.prompt-detail__mute-button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.prompt-detail__actions-menu-icon {
  display: block;
}
.prompt-detail__actions-menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.prompt-detail__mute-button {
  position: absolute;
  top: 24px;
  right: 64px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  transition: background 0.18s ease;
}
.prompt-detail__mute-button svg {
  width: 20px;
  height: 20px;
  display: block;
}
.prompt-detail__background-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.prompt-detail__background-media-visible {
  opacity: 1;
}
.prompt-detail__result-video-player.prompt-detail__result-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 3;
}
.prompt-detail__result-video-player video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 767px) {
  .prompt-detail__result-video-player {
    --video-controls-top: 96px;
    --video-controls-bottom: auto;
  }
}
.prompt-detail__media-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.prompt-detail__audio-media.prompt-detail__audio-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 24px;
}
.prompt-detail__content-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  padding: 20px 18px 24px;
  pointer-events: none;
}
.prompt-detail__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.prompt-detail__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  cursor: default;
  width: 100%;
  text-align: left;
  transition: background 0.18s ease;
}
.prompt-detail__card-header-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.prompt-detail__card-header-info-button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  color: var(--text);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.prompt-detail__card-header-info-button svg {
  width: 18px;
  height: 18px;
}
.prompt-detail__avatar-icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.prompt-detail__avatar-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.prompt-detail__avatar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.prompt-detail__header-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prompt-detail__author-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.prompt-detail__author-name-badge {
  display: inline-flex;
  flex: 0 0 auto;
}
.prompt-detail__author-name {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.prompt-detail__author-handle,
.prompt-detail__author-name {
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-detail__author-handle {
  color: var(--text-muted);
  font-size: 14px;
}
.prompt-detail__prompt-text-button {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  text-align: left;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: calc(14px * 1.3 * 2);
  overflow: hidden;
  cursor: pointer;
  white-space: pre-wrap;
  transition:
    max-height 0.28s ease,
    opacity 0.2s ease;
}
.prompt-detail__prompt-text-button-expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}
.prompt-detail__prompt-text-button-masked {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 28px), transparent);
}
.prompt-detail__prompt-read-only-wrapper {
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 12px;
}
.prompt-detail__prompt-read-only-card {
  flex: 0 1 auto;
  min-height: 0;
}
.prompt-detail__prompt-read-only-card .prompt-detail__prompt-read-only-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1;
  min-height: 0;
}
.prompt-detail__prompt-references {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
}
.prompt-detail__information-sheet-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prompt-detail__prompt-reference {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary, var(--surface));
  color: var(--text-muted);
}
.prompt-detail__prompt-reference-avatar {
  border-radius: 50%;
}
.prompt-detail__prompt-reference-menu {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.prompt-detail__prompt-reference-menu .prompt-detail__prompt-reference {
  cursor: pointer;
}
.prompt-detail__prompt-reference-fallback,
.prompt-detail__prompt-reference-media {
  grid-area: 1/1;
}
.prompt-detail__prompt-reference-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.prompt-detail__prompt-reference-fallback {
  display: grid;
  place-items: center;
}
.prompt-detail__prompt-reference svg {
  width: 24px;
  height: 24px;
}
.prompt-detail__prompt-read-only-text {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-detail__prompt-selection-disabled {
  user-select: none;
  -webkit-user-select: none;
}
.prompt-detail__prompt-read-only-card .prompt-detail__prompt-read-only-text {
  flex: 1 1;
  min-height: 0;
  max-height: none;
}
.prompt-detail__result-information {
  display: none;
}
.prompt-detail__result-information-list {
  margin: 0;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prompt-detail__result-information-list::-webkit-scrollbar {
  display: none;
}
.prompt-detail__result-information-list-has-right-fade {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}
.prompt-detail__result-information-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.prompt-detail__result-information-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
}
.prompt-detail__result-information-details-title {
  margin: 0;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt-detail__result-information-details-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}
.prompt-detail__result-information-details-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prompt-detail__result-information-details-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: start;
}
.prompt-detail__result-information-details-key {
  color: color-mix(in srgb, var(--text) 46%, transparent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.prompt-detail__result-information-details-value {
  margin: 0;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}
.prompt-detail__information-references {
  width: 100%;
  justify-content: flex-start;
}
.prompt-detail__set-rating {
  min-width: 0;
  margin-bottom: 12px;
}
.prompt-detail__set-rating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--premium) 14%, transparent);
  color: var(--premium);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease;
}
.prompt-detail__set-rating-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--premium) 20%, transparent);
}
.prompt-detail__set-rating-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.prompt-detail__set-rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prompt-detail__set-rating-star {
  width: 48px;
  height: 48px;
  padding: 5px;
  color: color-mix(in srgb, var(--text) 22%, transparent);
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}
.prompt-detail__set-rating-star svg {
  width: 100%;
  height: 100%;
  display: block;
}
.prompt-detail__set-rating-star:has(~ .prompt-detail__set-rating-star:hover:not(:disabled)),
.prompt-detail__set-rating-star:hover:not(:disabled) {
  color: var(--premium);
  transform: scale(1.06);
}
.prompt-detail__set-rating-modal-header {
  padding: 0 42px;
  text-align: center;
}
.prompt-detail__set-rating-modal-header h2 {
  margin: 0;
}
.prompt-detail__set-rating-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt-detail__set-rating-reasons button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.prompt-detail__set-rating-reasons button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
}
.prompt-detail__prompt-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 18px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
}
.prompt-detail__prompt-badges::-webkit-scrollbar {
  display: none;
}
.prompt-detail__prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.prompt-detail__prompt-badge:disabled {
  opacity: 0.6;
  cursor: default;
}
.prompt-detail__prompt-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prompt-detail__prompt-badge-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}
.prompt-detail__prompt-badge-loader {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  border-top-color: var(--text);
  animation: prompt-detail-action-spin 0.7s linear infinite;
}
.prompt-detail__loading-wrapper {
  width: 100%;
  min-height: 100dvh;
  padding-bottom: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--surface);
}
.prompt-detail__loading-text-animated {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  max-width: 90%;
  text-align: center;
  animation: prompt-detail-loading-text-fade 0.35s ease;
}
.prompt-detail__progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.prompt-detail__progress-badge-spinner {
  width: 14px;
  height: 14px;
  border-color: var(--border);
  border-top-color: var(--accent);
}
.prompt-detail__progress-badge-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.prompt-detail__loading-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  margin: -4px 0 0;
  max-width: 280px;
}
.prompt-detail__error-icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.prompt-detail__error-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  max-width: 80%;
}
.prompt-detail__error-text {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin: 0;
  max-width: 280px;
}
.prompt-detail__retry-button {
  margin-top: 4px;
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prompt-detail__retry-button:disabled {
  opacity: 0.6;
  pointer-events: none;
}
.prompt-detail__retry-loader {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--border) 20%, transparent);
  border-top-color: var(--border);
  animation: prompt-detail-action-spin 0.7s linear infinite;
}
.prompt-detail__media-container {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--surface);
  overflow: hidden;
  touch-action: pan-y;
}
.prompt-detail__media-container-landscape .prompt-detail__background-media {
  object-fit: contain;
}
.prompt-detail__background-media-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top,
      color-mix(in srgb, var(--text) 8%, transparent),
      color-mix(in srgb, var(--text) 2%, transparent) 48%,
      color-mix(in srgb, var(--text) 1%, transparent) 100%
    ),
    color-mix(in srgb, var(--text) 3%, transparent);
  display: grid;
  place-items: center;
  z-index: 0;
}
.prompt-detail__background-media-fallback-icon {
  font-size: 34px;
}
.prompt-detail__background-media-load-error {
  z-index: 3;
}
.prompt-detail__media-load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.prompt-detail__video-fallback-loader {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid var(--border);
  border-top-color: color-mix(in srgb, var(--text) 72%, transparent);
  animation: prompt-detail-action-spin 0.8s linear infinite;
}
.prompt-detail__top-switcher {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: calc(100% - 170px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.prompt-detail__top-switcher::-webkit-scrollbar {
  display: none;
}
.prompt-detail__top-switcher-btn {
  position: relative;
  width: 42px;
  height: 54px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-detail__top-switcher-btn-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.prompt-detail__top-switcher-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prompt-detail__top-switcher-fallback {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.prompt-detail__top-switcher-fallback-icon {
  width: 18px;
  height: 18px;
}
.prompt-detail__top-switcher-loader {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  border-top-color: color-mix(in srgb, var(--text) 72%, transparent);
  animation: prompt-detail-action-spin 0.8s linear infinite;
}
.prompt-detail__swipe-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(138px, 26dvh, 220px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 36px);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.prompt-detail__swipe-hint-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.prompt-detail__swipe-hint-arrow {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.prompt-detail__swipe-hint-arrow svg {
  width: 16px;
  height: 16px;
}
.prompt-detail__swipe-hint-arrow-left {
  transform: rotate(180deg);
}
.prompt-detail__progress-container {
  position: absolute;
  top: 10px;
  left: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  gap: 4px;
}
.prompt-detail__progress-segment {
  flex: 1 1;
  height: 3px;
  border-radius: 999px;
  background: var(--surface);
  transition: background 0.2s ease;
}
.prompt-detail__progress-segment-active {
  background: var(--text);
}
@media (min-width: 768px) {
  .prompt-detail__page {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .prompt-detail__mute-button {
    right: 24px;
  }
  .prompt-detail__modal-surface {
    height: 100%;
    min-height: 100%;
    background: transparent;
  }
  .prompt-detail__page-surface {
    height: 100dvh;
    min-height: 100dvh;
    background: var(--bg);
  }
  .prompt-detail__page-backdrop {
    position: absolute;
    inset: -48px;
    z-index: 0;
    display: block;
    opacity: 0.32;
    filter: blur(34px);
    transform: scale(1.04);
    pointer-events: none;
  }
  .prompt-detail__page-surface:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--text) 10%, transparent), transparent 34%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 26%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
    pointer-events: none;
  }
  .prompt-detail__result-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    justify-content: center;
    align-items: stretch;
    padding: 18px calc(360px + 42px) 18px 18px;
  }
  .prompt-detail__media-container {
    height: 100%;
    min-height: 0;
    border-radius: 32px;
    background: var(--surface);
    touch-action: auto;
  }
  .prompt-detail__swipe-hint {
    display: none;
  }
  .prompt-detail__background-media-fallback,
  .prompt-detail__background-media {
    border-radius: inherit;
  }
  .prompt-detail__media-container-landscape .prompt-detail__background-media {
    object-fit: cover;
  }
  .prompt-detail__loading-wrapper {
    min-height: 100%;
    border-radius: inherit;
    padding-bottom: 0;
  }
  .prompt-detail__content-overlay,
  .prompt-detail__media-shade {
    display: none;
  }
  .prompt-detail__desktop-menu {
    min-width: 0;
    padding: 24px;
    border-radius: 32px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: 360px;
    z-index: 12;
  }
  .prompt-detail__desktop-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .prompt-detail__actions-menu-wrapper {
    position: fixed;
    top: calc(18px + 38px + 12px);
    right: calc(18px + 360px + 12px);
    left: auto;
    display: flex;
    justify-content: flex-end;
    z-index: 20;
  }
  .prompt-detail__close-button {
    top: 18px;
    right: calc(18px + 360px + 12px);
  }
  .prompt-detail__desktop-navigation-buttons {
    position: fixed;
    top: 50%;
    right: calc(18px + 360px + 12px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
  }
  .prompt-detail__navigation-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    background: var(--surface);
    transition: background 0.18s ease;
  }
  .prompt-detail__navigation-button:not(:disabled):hover {
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
  }
  .prompt-detail__navigation-button:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .prompt-detail__navigation-button svg {
    width: 20px;
    height: 20px;
  }
  .prompt-detail__navigation-button-prev svg {
    transform: rotate(-90deg);
  }
  .prompt-detail__navigation-button:not(.prompt-detail__navigation-button-prev) svg {
    transform: rotate(90deg);
  }
  .prompt-detail__actions-menu-trigger,
  .prompt-detail__close-button {
    z-index: 20;
    background: var(--surface);
    border-radius: 50%;
  }
  .prompt-detail__desktop-menu .prompt-detail__card-header-link,
  .prompt-detail__desktop-menu .prompt-detail__card-header {
    gap: 14px;
  }
  .prompt-detail__desktop-menu .prompt-detail__card-header-info-button {
    display: none;
  }
  .prompt-detail__desktop-menu .prompt-detail__avatar-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--surface);
  }
  .prompt-detail__desktop-menu .prompt-detail__avatar-icon img {
    border-radius: 16px;
  }
  .prompt-detail__desktop-menu .prompt-detail__author-name {
    font-size: 18px;
  }
  .prompt-detail__desktop-menu .prompt-detail__author-handle {
    font-size: 14px;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-read-only-text {
    color: color-mix(in srgb, var(--text) 78%, transparent);
    font-size: 15px;
    line-height: 1.45;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-read-only-wrapper {
    background: var(--surface);
  }
  .prompt-detail__desktop-menu .prompt-detail__result-information {
    display: flex;
  }
  .prompt-detail__desktop-menu .prompt-detail__set-rating {
    margin-bottom: 18px;
  }
  .prompt-detail__desktop-main-button {
    display: block;
    margin-top: auto;
  }
  .prompt-detail__mobile-main-button {
    display: none;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badges > :last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badge {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badge,
  .prompt-detail__prompt-badge-desktop {
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--surface);
    color: color-mix(in srgb, var(--text) 80%, transparent);
    font-size: 14px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badge-icon svg,
  .prompt-detail__prompt-badge-desktop .prompt-detail__prompt-badge-icon svg {
    width: 16px;
    height: 16px;
  }
  .prompt-detail__desktop-menu .prompt-detail__prompt-badge:hover:not(:disabled),
  .prompt-detail__prompt-badge-desktop:hover:not(:disabled) {
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
    color: var(--text);
  }
}
@media (min-width: 1240px) {
  .prompt-detail__desktop-menu {
    width: 380px;
  }
  .prompt-detail__close-button {
    right: calc(18px + 380px + 12px);
  }
  .prompt-detail__result-stage {
    padding-right: calc(380px + 42px);
  }
  .prompt-detail__actions-menu-wrapper,
  .prompt-detail__desktop-navigation-buttons {
    right: calc(18px + 380px + 12px);
  }
}
@media (min-width: 768px) {
  .prompt-detail__result-stage {
    min-height: 100dvh;
    align-items: center;
  }
  .prompt-detail__media-container {
    width: min(calc(100vw - 440px), calc((100dvh - 36px) * var(--result-media-aspect-ratio, 9 / 16)));
    height: auto;
    max-width: calc(100vw - 440px);
    max-height: calc(100dvh - 36px);
    aspect-ratio: var(--result-media-aspect-ratio, 9/16);
    flex: 0 0 auto;
  }
}
.prompt-detail__prompt-badge-loader {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: currentcolor;
  animation: prompt-detail-result-badge-loader-spin 0.75s linear infinite !important;
  will-change: transform;
}
@media (max-width: 767px) {
  .prompt-detail__set-rating-modal-header {
    padding: 0;
  }
  .prompt-detail__information-sheet-overlay {
    align-items: flex-end;
  }
  .prompt-detail__result-information-details {
    background: transparent;
  }
}
@media (min-width: 768px) {
  .prompt-detail__information-sheet {
    width: min(520px, 100%);
  }
}
.studio-controls__controls-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.studio-controls__control-viewport {
  position: relative;
  min-width: 0;
  flex: 1 1;
}
.studio-controls__control-scroller {
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
@media (prefers-reduced-motion: reduce) {
  .studio-controls__control-scroller {
    scroll-behavior: auto;
  }
}
.studio-controls__control-items {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-controls__control-scroller-masked {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.studio-controls__scroll-settings-button {
  position: absolute;
  right: -10px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  color: var(--text-muted);
}
.studio-controls__scroll-settings-button svg {
  width: 16px;
  height: 16px;
}
.studio-controls__scroll-settings-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.studio-controls__control-wrapper {
  flex: 0 0 auto;
}
.studio-controls__control-button {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}
.studio-controls__control-button-text {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-controls__range-control-button {
  width: 88px;
  justify-content: center;
}
.studio-controls__param-value {
  color: var(--text-muted);
  transition: color 0.16s ease;
}
.studio-controls__param-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.16s ease;
}
.studio-controls__control-button:active :is(.studio-controls__param-icon, .studio-controls__param-value),
.studio-controls__control-button:hover :is(.studio-controls__param-icon, .studio-controls__param-value),
.studio-controls__control-button[aria-expanded="true"]
  :is(.studio-controls__param-icon, .studio-controls__param-value) {
  color: var(--text-dim);
}
.studio-controls__param-icon > svg {
  width: 18px;
  height: 18px;
}
.studio-controls__aspect-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.studio-controls__aspect-icon-shape {
  display: block;
  border: 1.5px solid;
  border-radius: 3px;
}
.studio-controls__chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transform: rotate(var(--menu-chevron-rotate, 0deg));
  transition: transform 0.16s ease;
}
.studio-controls__model-menu {
  width: min(380px, calc(100vw - 24px));
}
.studio-controls__selector-header {
  display: grid;
  gap: 8px;
}
.studio-controls__selector-mode-tabs {
  width: 100%;
  display: flex;
}
.studio-controls__selector-mode-tabs > * {
  min-width: 0;
  flex: 1 1 auto;
}
.studio-controls__selector-search {
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
}
.studio-controls__selector-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.studio-controls__selector-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.studio-controls__selector-search input::placeholder {
  color: var(--text-muted);
}
.studio-controls__selector-empty {
  min-height: 180px;
  display: flex;
}
.studio-controls__param-menu {
  min-width: 180px;
}
.studio-controls__voice-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
}
.studio-controls__voice-option svg {
  width: 20px;
  height: 20px;
}
.studio-controls__range-menu {
  width: min(320px, calc(100vw - 24px));
  padding: 6px;
}
.studio-controls__generate-button-wrapper {
  flex: 0 0 auto;
}
.studio-controls__generation-count {
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: 34px 24px 34px;
  align-items: center;
  justify-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.studio-controls__generation-count button {
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 18px;
}
.studio-controls__generation-count button:not(:disabled):hover {
  color: var(--text);
}
.studio-controls__generation-count button:disabled {
  opacity: 0.3;
  cursor: default;
}
.studio-controls__generate-button-wrapper .studio-controls__generate-button {
  min-width: 180px;
  height: 40px;
  padding: 0 16px;
}
.studio-controls__generate-button .loader {
  width: 18px;
  height: 18px;
  border-width: 2px;
}
.studio-controls__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .studio-controls__generate-button-wrapper {
    transform: translateY(4px);
  }
}
@media (max-width: 767px) {
  .studio-controls__generation-count-prompt-empty-collapsed {
    display: none;
  }
  .studio-controls__generation-count-prompt-empty-collapsed + .studio-controls__generate-button-wrapper {
    grid-column: 1/-1;
  }
  .studio-controls__controls-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }
  .studio-controls__control-viewport {
    grid-column: 1/-1;
  }
  .studio-controls__generate-button-wrapper,
  .studio-controls__generate-button {
    width: 100%;
  }
}
.studio-media__media-list {
  display: flex;
  gap: 8px;
  margin-top: -5px;
  margin-bottom: -4px;
  padding: 5px 5px 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
}
.studio-media__semantic-media-list {
  width: min(100%, 460px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-media__semantic-upload-button {
  min-width: 0;
  flex: 1 1;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.studio-media__semantic-upload-button:not(:disabled):hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
}
.studio-media__semantic-upload-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.studio-media__semantic-media-arrow,
.studio-media__semantic-upload-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.studio-media__semantic-media-arrow {
  color: var(--text-muted);
}
.studio-media__media-item.studio-media__semantic-media-item {
  min-width: 0;
  flex: 1 1;
  height: 72px;
}
.studio-media__semantic-media-label {
  left: 7px;
  right: auto;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-media__media-list .studio-media__upload-button {
  width: 52px;
  height: 52px;
}
.studio-media__media-item {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  background: var(--surface);
  touch-action: none;
  cursor: grab;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.studio-media__media-item-dragging {
  z-index: 1;
  opacity: 0.46;
  transform: scale(0.92);
  cursor: grabbing;
}
.studio-media__media-item-drop-target {
  z-index: 2;
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
}
.studio-media__media-item-avatar {
  border-radius: 50%;
}
.studio-media__media-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}
.studio-media__audio-preview,
.studio-media__media-preview img,
.studio-media__media-preview video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.studio-media__media-video-icon {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  color: var(--text);
  pointer-events: none;
}
.studio-media__media-order {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}
.studio-media__audio-preview {
  display: grid;
  place-items: center;
  color: var(--text);
}
.studio-media__audio-preview svg {
  width: 22px;
  height: 22px;
}
.studio-media__remove-media {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.studio-media__remove-media svg {
  width: 13px;
  height: 13px;
}
.studio-media__upload-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dim);
}
.studio-media__upload-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.studio-media__upload-button svg {
  width: 18px;
  height: 18px;
}
.studio-media__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .studio-media__semantic-media-list {
    width: 100%;
    gap: 8px;
  }
  .studio-media__media-item.studio-media__semantic-media-item,
  .studio-media__semantic-upload-button {
    height: 64px;
  }
  .studio-media__media-item:not(.studio-media__semantic-media-item) {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  .studio-media__media-list .studio-media__upload-button {
    width: 60px;
    height: 60px;
  }
}
.studio-media__slot-hint {
  max-width: 180px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}
.studio-media__semantic-upload-button.studio-media__with-hint {
  flex-direction: column;
  height: auto;
  min-height: 116px;
  padding: 10px;
}
.studio-media__media-item.studio-media__semantic-media-item.studio-media__with-hint {
  height: 116px;
}
.studio-media__with-hint .studio-media__semantic-media-label {
  white-space: normal;
}
.studio-media__semantic-media-label .studio-media__slot-hint {
  display: block;
  color: var(--text);
  opacity: 0.8;
}
.prompt__prompt-card {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt__label {
  font-size: 12px;
  color: var(--text-dim);
}
.prompt__prompt-header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 0;
}
.prompt__prompt-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.prompt__prompt-editor {
  position: relative;
  min-height: 120px;
  max-height: 120px;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.prompt__prompt-editor-scrollable {
  overflow-y: auto;
}
.prompt__prompt-editor-content {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.prompt__prompt-editor-content:focus {
  outline: none;
}
.prompt__prompt-editor-content p {
  margin: 0;
}
.prompt__prompt-editor-content p + p {
  margin-top: 6px;
}
.prompt__prompt-editor-content p.is-editor-empty:first-child:before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--text-dim);
  opacity: 0.5;
  pointer-events: none;
}
.prompt__prompt-mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 6px 2px 3px;
  margin: 0 2px;
  border-radius: 999px;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
.prompt__prompt-mention-thumb {
  object-fit: cover;
}
.prompt__prompt-mention-audio-thumb,
.prompt__prompt-mention-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface);
  flex-shrink: 0;
}
.prompt__prompt-mention-audio-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}
.prompt__prompt-mention-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt__prompt-mention-dropdown {
  box-sizing: border-box;
  min-width: 230px;
  max-width: calc(100vw - 24px);
  max-height: none;
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(217, 217, 217, 0.04);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.prompt__prompt-mention-list {
  display: grid;
  gap: 4px;
  max-height: 196px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.prompt__prompt-mention-option {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.prompt__prompt-mention-option:focus-visible,
.prompt__prompt-mention-option:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.prompt__prompt-mention-option-active {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.prompt__prompt-mention-divider {
  height: 1px;
  margin: 4px 10px;
  background: var(--surface);
}
.prompt__prompt-mention-option-icon {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.prompt__prompt-mention-option-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}
.prompt__prompt-mention-option-audio-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  flex-shrink: 0;
}
.prompt__prompt-mention-option-audio-thumb svg {
  width: 20px;
  height: 20px;
}
.prompt__prompt-mention-avatar-icon-slot {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
  color: var(--text) !important;
  background: transparent !important;
}
.prompt__prompt-mention-avatar-option {
  gap: 6px;
}
.prompt__prompt-mention-avatar-icon {
  width: 20px;
  height: 20px;
  color: var(--text);
}
.prompt__prompt-mention-option-text {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1;
}
.prompt__prompt-mention-option-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.prompt__prompt-mention-option-description {
  color: var(--text-muted);
  font-size: 12px;
}
.prompt__enhance-button {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease;
}
.prompt__enhance-button:hover:not(:disabled) {
  border-color: var(--border);
}
.prompt__enhance-button-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}
.prompt__enhance-button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (min-width: 768px) {
  .prompt__prompt-card {
    border-radius: var(--radius-md);
    padding: 4px;
  }
  .prompt__prompt-editor {
    min-height: 140px;
    max-height: 140px;
  }
  .prompt__prompt-editor-content {
    min-height: 140px;
  }
}
@media (min-width: 1700px) {
  .prompt__prompt-editor {
    min-height: 160px;
    max-height: 160px;
  }
  .prompt__prompt-editor-content {
    min-height: 160px;
  }
}
.studio-prompt__prompt-row {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.studio-prompt__prompt-row-media-only {
  min-height: 44px;
  grid-template-columns: 44px;
}
.studio-prompt__prompt-row-prompt-only {
  grid-template-columns: minmax(0, 1fr);
}
.studio-prompt__prompt-editor-wrapper {
  position: relative;
  min-width: 0;
}
.studio-prompt__prompt-editor-wrapper:has(.studio-prompt__hidden-prompt) {
  position: static;
}
.studio-prompt__hidden-prompt {
  min-height: 70px;
  height: 100%;
  display: grid;
  align-items: center;
}
.studio-prompt__hidden-prompt-preview {
  overflow: hidden;
  padding: 4px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  filter: blur(5px);
  opacity: 0.6;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.studio-prompt__hidden-prompt-preview span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.studio-prompt__hidden-prompt-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 8px);
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}
.studio-prompt__hidden-prompt-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.studio-prompt__prompt-actions {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.studio-prompt__prompt-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  transition:
    color 0.16s ease,
    background 0.16s ease;
}
.studio-prompt__prompt-action:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
}
.studio-prompt__prompt-action svg {
  width: 16px;
  height: 16px;
}
.studio-prompt__prompt-generator-header {
  padding-right: 48px;
}
.studio-prompt__prompt-generator-title {
  margin: 0;
}
.studio-prompt__prompt-generator-subtitle {
  max-width: 420px;
}
.studio-prompt__prompt-generator-form {
  display: grid;
  gap: 14px;
}
.studio-prompt__prompt-generator-textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.studio-prompt__prompt-generator-textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}
.studio-prompt__prompt-generator-error {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}
.studio-prompt__prompt-editor {
  min-height: 70px !important;
  max-height: 140px !important;
  padding: 2px 120px 2px 4px;
}
.studio-prompt__prompt-editor .editable-content {
  min-height: 66px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
.studio-prompt__prompt-editor .editable-content[contenteditable="false"] {
  color: var(--text-muted);
}
.studio-prompt__audio-text {
  width: 100%;
  min-height: 70px;
  max-height: 140px;
  padding: 2px 72px 2px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  resize: none;
}
.studio-prompt__audio-text::placeholder,
.studio-prompt__audio-text:read-only {
  color: var(--text-muted);
}
.studio-prompt__audio-text-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}
.studio-prompt__audio-character-count {
  margin-left: auto;
  white-space: nowrap;
}
.studio-prompt__audio-text-expanded {
  flex: 1 1;
  min-height: 0;
  max-height: none;
}
.studio-prompt__prompt-editor-wrapper-expanded:has(.studio-prompt__audio-text) {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .studio-prompt__ideas-action-desktop-hidden {
    display: none;
  }
  .studio-prompt__prompt-actions-expanded {
    padding-left: 28px;
    background: linear-gradient(90deg, transparent, var(--surface) 28px);
  }
  .studio-prompt__prompt-row-expanded {
    min-height: 0;
    flex: 1 1;
    align-items: stretch;
  }
  .studio-prompt__prompt-editor-wrapper-expanded {
    min-height: 0;
    height: 100%;
  }
  .studio-prompt__prompt-editor-expanded {
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    padding-right: 4px;
    overflow-y: auto;
  }
  .studio-prompt__prompt-editor-expanded > div {
    height: 100%;
  }
  .studio-prompt__prompt-editor-expanded .editable-content {
    min-height: 100%;
  }
}
@media (max-width: 767px) {
  .studio-prompt__audio-text {
    min-height: 58px;
    max-height: 100px;
    font-size: 16px;
    padding-right: 40px;
  }
  .studio-prompt__audio-text-expanded {
    min-height: 0;
    max-height: none;
  }
  .studio-prompt__expand-action,
  .studio-prompt__recommendations-action-collapsed {
    display: none;
  }
  .studio-prompt__prompt-row {
    min-height: 58px;
  }
  .studio-prompt__prompt-editor {
    min-height: 58px !important;
    max-height: 100px !important;
    padding-right: 120px;
  }
  .studio-prompt__prompt-editor .editable-content {
    min-height: 54px;
    font-size: 16px;
  }
  .studio-prompt__prompt-row-expanded {
    min-height: 0;
    flex: 1 1;
    align-items: stretch;
  }
  .studio-prompt__prompt-editor-wrapper-expanded {
    min-height: 0;
    height: 100%;
  }
  .studio-prompt__prompt-editor-expanded {
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    padding-right: 4px;
    overflow-y: auto;
  }
  .studio-prompt__prompt-actions-expanded {
    padding-left: 28px;
    background: linear-gradient(90deg, transparent, var(--bg) 28px);
  }
  .studio-prompt__prompt-editor-expanded > div {
    height: 100%;
  }
  .studio-prompt__prompt-editor-expanded .editable-content {
    min-height: 100%;
  }
  .studio-prompt__prompt-generator-header {
    padding-right: 42px;
  }
  .studio-prompt__prompt-generator-textarea {
    font-size: 16px;
  }
}
.studio-dock__root {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
  transition:
    padding 0.28s ease,
    background 0.28s ease;
}
section:has([data-history-selection]) > .studio-dock__root .studio-dock__dock-stack {
  transform: translateY(100dvh);
}
.studio-dock__root:before {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 72%, transparent));
  pointer-events: none;
}
.studio-dock__dock-stack {
  position: relative;
  width: min(100%, 920px);
  pointer-events: none;
  transform: translateY(calc(50dvh - 50% - 20px));
  transition:
    width 0.28s ease,
    height 0.28s ease,
    transform 0.28s ease;
}
.studio-dock__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(360px, calc(100dvh - 120px));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
  pointer-events: auto;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    border-radius 0.28s ease,
    max-height 0.28s ease,
    height 0.28s ease,
    padding 0.28s ease;
}
.studio-dock__promo-link {
  position: absolute;
  bottom: calc(100% - 18px);
  left: 0;
  z-index: 0;
  width: 100%;
  min-height: 58px;
  padding: 8px 14px 26px 18px;
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 24px 24px 0 0;
  background: var(--accent);
  color: var(--accent-foreground);
  pointer-events: auto;
  animation: studio-dock-promo-link-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.studio-dock__promo-content {
  min-width: 0;
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.studio-dock__promo-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: color-mix(in srgb, var(--text-muted) 62%, transparent);
  transition:
    color 0.16s ease,
    background 0.16s ease;
}
.studio-dock__promo-cta {
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--surface) 10%, transparent);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.16s ease;
}
.studio-dock__promo-cta:hover {
  background: color-mix(in srgb, var(--surface) 18%, transparent);
}
.studio-dock__promo-close:hover {
  color: var(--accent-foreground);
  background: color-mix(in srgb, var(--surface) 8%, transparent);
}
.studio-dock__promo-close svg {
  width: 16px;
  height: 16px;
}
.studio-dock__promo-previews {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 54px;
  align-self: center;
}
.studio-dock__promo-preview {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 7px;
  object-fit: cover;
}
.studio-dock__promo-preview:first-child {
  left: 0;
  transform: rotate(-8deg);
}
.studio-dock__promo-preview:nth-child(2) {
  left: 12px;
  z-index: 1;
  transform: rotate(-1deg);
}
.studio-dock__promo-preview:nth-child(3) {
  left: 24px;
  z-index: 2;
  transform: rotate(8deg);
}
.studio-dock__promo-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.studio-dock__promo-copy strong {
  font-size: 14px;
  font-weight: 750;
}
.studio-dock__promo-copy > span {
  overflow: hidden;
  opacity: 0.7;
  text-overflow: ellipsis;
}
.studio-dock__promo-link-closing {
  pointer-events: none;
  animation: studio-dock-promo-link-out 0.28s ease-in forwards;
}
@media (prefers-reduced-motion: reduce) {
  .studio-dock__dock-stack {
    transition: none;
  }
  .studio-dock__promo-link {
    animation: none;
  }
  .studio-dock__promo-link-closing {
    display: none;
  }
}
.studio-dock__root-expanded {
  z-index: 1200;
  padding: 20px;
  background: rgba(3, 4, 7, 0.66);
  pointer-events: auto;
}
.studio-dock__root-expanded:before {
  display: none;
}
.studio-dock__dock-stack-expanded {
  width: min(760px, 100%);
  height: min(620px, calc(100dvh - 40px));
  transform: translateY(0);
}
.studio-dock__panel-expanded {
  height: 100%;
  max-height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
}
.studio-dock__expanded-header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.studio-dock__expanded-header h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 18px;
  font-weight: 800;
}
.studio-dock__expanded-close-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: background 0.16s ease;
}
.studio-dock__expanded-close-button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.studio-dock__expanded-close-button svg {
  width: 18px;
  height: 18px;
}
.studio-dock__drag-active {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}
.studio-dock__drag-overlay {
  position: absolute;
  inset: 6px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--accent) 8%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  animation: studio-dock-drag-overlay-in 0.16s ease-out;
}
.studio-dock__drag-overlay svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 767px) {
  .studio-dock__promo-link {
    display: none;
  }
  .studio-dock__root {
    padding: 0 8px;
  }
  .studio-dock__dock-stack {
    transform: translateY(calc(50dvh - 50% - 8px));
  }
  .studio-dock__panel {
    padding: 10px;
    border-radius: 18px;
  }
  .studio-dock__root-expanded {
    padding: 0;
    overscroll-behavior: none;
  }
  .studio-dock__dock-stack-expanded {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    transform: translateY(0);
  }
  .studio-dock__panel-expanded {
    padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overscroll-behavior: none;
  }
  .studio-dock__expanded-header {
    min-height: 58px;
    margin: 0 -10px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    animation: studio-dock-expanded-header-in 0.18s ease-out;
  }
  .studio-dock__expanded-header h2 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-card-title);
    font-size: 18px;
    font-weight: 800;
  }
}
.studio-workspace__canvas-workspace {
  min-height: 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: calc(var(--playground-dock-height, 218px) + 20px);
}
@media (max-width: 767px) {
  .studio-workspace__canvas-workspace {
    padding-bottom: calc(var(--playground-dock-height, 292px) + 8px);
  }
}
.studio-workspace__canvas-workspace.studio-workspace__without-dock {
  padding-bottom: 0;
}
.home__socials-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px 0 10px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.home__social-link:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
  transform: translateY(-1px);
}
.home__social-link-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home__social-link-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.home__social-link-telegram .home__social-link-icon {
  color: #2aabee;
}
.home__social-link-vk .home__social-link-icon {
  color: #2787f5;
}
.home__social-link-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home__social-link-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}
.home__social-link-caption {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
}
.home__content-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .home__socials-section {
    width: 100%;
  }
  .home__socials-card {
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: transparent;
    border: 1px solid var(--border);
  }
  .home__social-link {
    min-height: 112px;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: var(--surface);
  }
  .home__social-link:hover {
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
  }
  .home__social-link-icon {
    width: 58px;
    height: 58px;
  }
  .home__social-link-icon svg {
    width: 34px;
    height: 34px;
  }
  .home__social-link-meta {
    gap: 5px;
  }
  .home__social-link-label {
    font-size: 20px;
    line-height: 1.05;
  }
  .home__social-link-caption {
    font-size: 14px;
  }
  .home__content-stack {
    gap: 48px;
  }
}
.gallery__section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.gallery__header {
  display: flex;
  flex-direction: column;
  flex: 1 1;
}
.gallery__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 90%;
}
.gallery__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 720px;
}
.gallery__author-filter-wrapper {
  width: max-content;
}
.gallery__author-filter-button {
  position: relative;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 16px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery__author-filter-button:hover,
.gallery__author-filter-button[aria-expanded="true"] {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.gallery__author-filter-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}
.gallery__author-filter-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.gallery__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;
}
.gallery__author-filter-menu {
  min-width: 220px;
}
.gallery__author-menu-avatar {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.gallery__search-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  flex: 1 1;
  min-width: 0;
}
.gallery__search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.gallery__search-input {
  width: 100%;
  min-height: 46px;
  padding: 6px 40px 6px 42px;
  border: none;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  transition: background 0.18s ease;
}
.gallery__search-input::placeholder {
  color: var(--text-muted);
}
.gallery__search-input:focus {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.gallery__search-clear-button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: transparent;
  transform: translateY(-50%);
}
.gallery__search-clear-button svg {
  width: 18px;
  height: 18px;
}
.gallery__search-notice {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
}
.gallery__empty-state {
  width: 100%;
  min-height: 220px;
  padding: 40px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gallery__empty-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.gallery__empty-text {
  max-width: 420px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .gallery__subtitle {
    font-size: 16px;
    max-width: 600px;
  }
  .gallery__search-input {
    min-height: 50px;
    padding: 6px 40px 6px 42px;
    border-radius: 18px;
    font-size: 15px;
  }
  .gallery__author-filter-button {
    width: 50px;
    min-height: 50px;
    border-radius: 18px;
  }
  .gallery__empty-state {
    min-height: 260px;
    padding: 56px 24px;
  }
  .gallery__empty-title {
    font-size: 20px;
  }
}
.gallery__filters-wrapper {
  margin: 0 -18px;
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .gallery__filters-wrapper {
    margin: 0;
    padding: 0;
    overflow-x: visible;
  }
}
.gallery__filters-wrapper::-webkit-scrollbar {
  display: none;
}
.gallery__sets-link {
  flex-shrink: 0;
}
.gallery__sets-link-icon {
  width: 14px;
  height: 14px;
}
.set-detail__page {
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.set-detail__page-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  opacity: 1;
  filter: none;
  transform: translateZ(0);
  contain: paint;
  pointer-events: none;
}
.set-detail__page-backdrop-media {
  position: absolute;
  inset: -48px;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  object-fit: cover;
  display: block;
  opacity: 0.32;
  filter: blur(34px);
  transform: scale(1.04) translateZ(0);
  transform-origin: center;
}
.set-detail__close-button {
  right: 18px;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  z-index: 20;
  transition: background 0.18s ease;
}
.set-detail__close-button,
.set-detail__mute-button {
  position: absolute;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
}
.set-detail__mute-button {
  right: 64px;
  z-index: 5;
  place-items: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  transition: background 0.18s ease;
}
.set-detail__close-button:hover,
.set-detail__mute-button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.set-detail__mute-button svg {
  width: 20px;
  height: 20px;
  display: block;
}
.set-detail__share-button {
  right: 110px;
}
.set-detail__share-button svg {
  width: 20px;
  height: 20px;
}
.set-detail__share-button .loader {
  border-color: var(--text) var(--border) var(--border);
}
.set-detail__photo-sets-upload {
  width: 100%;
}
.set-detail__photo-sets-upload.set-detail__photo-sets-upload
  .set-detail__photo-sets-upload-grid.set-detail__photo-sets-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 0;
  height: auto;
}
.set-detail__photo-sets-upload.set-detail__photo-sets-upload
  .set-detail__photo-sets-upload-grid.set-detail__photo-sets-upload-grid
  > * {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc((100% - 10px) / 2);
  width: auto;
  min-width: min(140px, 100%);
}
.set-detail__photo-sets-upload .set-detail__photo-sets-upload-grid > span[aria-hidden] {
  display: none;
}
.set-detail__result-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.set-detail__media-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.set-detail__media-frame {
  position: relative;
  flex: 0 0 auto;
  height: min(58dvh, 460px);
  min-height: 320px;
  overflow: hidden;
  flex: 1 1;
  touch-action: pan-y;
}
.set-detail__video-media-container video {
  object-fit: contain;
}
.set-detail__media-container .set-detail__set-page-media-fallback,
.set-detail__media-container .set-detail__set-page-media {
  object-fit: contain;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 135px);
  top: 75px;
  border-radius: 18px;
  background: transparent;
}
.set-detail__progress-container {
  position: absolute;
  top: 10px;
  left: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  gap: 4px;
}
.set-detail__progress-segment {
  flex: 1 1;
  height: 3px;
  border-radius: 999px;
  background: var(--surface);
  transition: background 0.2s ease;
}
.set-detail__progress-segment-active {
  background: var(--text);
}
.set-detail__content-panel {
  position: relative;
  z-index: 4;
  padding: 0 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  pointer-events: auto;
}
.set-detail__title-ending {
  white-space: nowrap;
}
.set-detail__title-badge {
  margin-left: 4px;
  vertical-align: middle;
}
.set-detail__title {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.set-detail__desktop-information,
.set-detail__desktop-navigation-buttons {
  display: none;
}
.set-detail__subtitle {
  color: color-mix(in srgb, var(--text) 48%, transparent);
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.set-detail__desktop-primary-button {
  display: none;
}
.set-detail__aspect-ratio-selector {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.set-detail__set-prompt {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.set-detail__set-prompt-input-wrapper {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--surface);
  transition: background 0.18s ease;
}
.set-detail__set-prompt-input-wrapper:focus-within {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.set-detail__set-prompt-input-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}
.set-detail__set-prompt-input-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.set-detail__set-prompt-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
}
.set-detail__set-prompt-input::placeholder {
  color: var(--text-muted);
}
.set-detail__aspect-ratio-option {
  min-width: 0;
  min-height: 78px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: color-mix(in srgb, var(--text) 84%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}
.set-detail__aspect-ratio-option-active {
  background: var(--accent-bg);
  color: var(--accent);
}
.set-detail__aspect-ratio-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.set-detail__aspect-ratio-icon-shape {
  display: block;
  border: 1.4px solid;
  border-radius: 3px;
}
.set-detail__mobile-repeat-button {
  width: 100%;
}
.set-detail__set-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(3, 4, 7, 0.66);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}
.set-detail__set-form-overlay-visible {
  opacity: 1;
  visibility: visible;
}
.set-detail__set-form-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.set-detail__set-form-modal-visible {
  opacity: 1;
  transform: translateY(0);
}
.set-detail__set-form-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.set-detail__set-form-action {
  flex: 0 0 auto;
}
.set-detail__primary-block {
  width: 100%;
}
.set-detail__set-trust-note {
  color: var(--text-muted);
  text-align: center;
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  margin: 0 auto -10px;
  width: 100%;
  padding: 11px 12px 21px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 767px) {
  .set-detail__set-form-modal {
    padding-block: 36px;
  }
  .set-detail__media-container .set-detail__set-page-media {
    inset: auto;
    top: calc(50% + 7.5px);
    left: 50%;
    width: auto;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 135px);
    transform: translate(-50%, -50%);
  }
  .set-detail__title {
    line-height: 1.3;
  }
}
@media (min-width: 768px) {
  .set-detail__title-ending {
    white-space: normal;
  }
  .set-detail__title .set-detail__category-badge {
    display: none;
  }
  .set-detail__page {
    padding: 0;
  }
  .set-detail__page:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--text) 10%, transparent), transparent 34%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 26%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
    pointer-events: none;
  }
  .set-detail__close-button {
    position: fixed;
    top: 18px;
    right: calc(18px + 360px + 12px);
    border-radius: 50%;
    background: var(--surface);
  }
  .set-detail__mute-button {
    right: 24px;
  }
  .set-detail__share-button {
    top: 68px;
  }
  .set-detail__desktop-navigation-buttons {
    position: fixed;
    top: 50%;
    right: calc(26px + 360px + 24px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
  }
  .set-detail__navigation-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    background: var(--surface);
    transition: background 0.18s ease;
  }
  .set-detail__navigation-button:not(:disabled):hover {
    background: color-mix(in srgb, var(--text) 8%, var(--surface));
  }
  .set-detail__navigation-button:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .set-detail__navigation-button svg {
    width: 20px;
    height: 20px;
  }
  .set-detail__navigation-button-prev svg {
    transform: rotate(-90deg);
  }
  .set-detail__navigation-button:not(.set-detail__navigation-button-prev) svg {
    transform: rotate(90deg);
  }
  .set-detail__result-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    padding: 18px 495px 18px 18px;
  }
  .set-detail__media-container {
    width: min(100%, calc((100dvh - 36px) * var(--set-media-aspect-ratio, 9 / 16)));
    height: auto;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100dvh - 36px);
    aspect-ratio: var(--set-media-aspect-ratio, 9/16);
    border-radius: 32px;
    background: var(--surface);
    display: block;
    overflow: hidden;
  }
  .set-detail__media-frame {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }
  .set-detail__video-media-container video {
    object-fit: cover;
  }
  .set-detail__media-container .set-detail__set-page-media-fallback,
  .set-detail__media-container .set-detail__set-page-media {
    object-fit: cover;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .set-detail__content-panel {
    position: fixed;
    top: 18px;
    right: 18px;
    bottom: 18px;
    left: auto;
    width: 360px;
    z-index: 12;
    min-width: 0;
    padding: 24px;
    border-radius: 32px;
    background: var(--surface);
    justify-content: flex-start;
    gap: 18px;
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: auto;
  }
  .set-detail__subtitle {
    margin-top: 8px;
    font-size: 15px;
  }
  .set-detail__desktop-information.set-detail__desktop-information {
    display: flex;
  }
  .set-detail__photo-sets-upload {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .set-detail__photo-sets-upload .set-detail__photo-sets-upload-grid.set-detail__photo-sets-upload-grid {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .set-detail__desktop-primary-button,
  .set-detail__primary-button {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
  }
  .set-detail__mobile-repeat-button {
    display: none;
  }
}
@media (min-width: 1240px) {
  .set-detail__close-button {
    right: calc(18px + 380px + 12px);
  }
  .set-detail__content-panel {
    width: 380px;
  }
}
.tool-landing-page__page-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  z-index: 1;
  overflow: hidden;
}
.tool-landing-page__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 20px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.tool-landing-page__hero-photo-cards {
  position: relative;
  width: min(100%, 320px);
  height: 146px;
  margin-bottom: 26px;
}
.tool-landing-page__hero-single-preview {
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  margin-bottom: 26px;
}
.tool-landing-page__hero-single-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.tool-landing-page__hero-photo-card {
  --card-rotate: 0deg;
  --float-x: 0px;
  --float-y: -5px;
  --float-rotate: 0.8deg;
  position: absolute;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  transform: translateZ(0) rotate(var(--card-rotate));
  transform-origin: 50% 60%;
  animation: tool-landing-page-tool-landing-photo-float 8.5s ease-in-out infinite;
  will-change: transform;
}
.tool-landing-page__hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 0.5px color-mix(in srgb, var(--text) 40%, transparent);
  pointer-events: none;
}
.tool-landing-page__hero-photo-card:first-child {
  --card-rotate: -9deg;
  --float-x: -4px;
  --float-y: -6px;
  --float-rotate: -0.7deg;
  top: 34px;
  left: 24px;
  z-index: 2;
  animation-duration: 9.5s;
}
.tool-landing-page__hero-photo-card:nth-child(2) {
  --card-rotate: 5deg;
  --float-x: 3px;
  --float-y: 5px;
  --float-rotate: 0.6deg;
  top: 0;
  left: 25%;
  z-index: 4;
  animation-delay: -2.2s;
  animation-duration: 8.8s;
}
.tool-landing-page__hero-photo-card:nth-child(3) {
  --card-rotate: -5deg;
  --float-x: 4px;
  --float-y: -4px;
  --float-rotate: 0.7deg;
  right: 23%;
  bottom: 0;
  z-index: 3;
  animation-delay: -4.4s;
  animation-duration: 10.2s;
}
.tool-landing-page__hero-photo-card:nth-child(4) {
  --card-rotate: 10deg;
  --float-x: -3px;
  --float-y: 4px;
  --float-rotate: -0.6deg;
  top: 18px;
  right: 24px;
  z-index: 1;
  animation-delay: -6.1s;
  animation-duration: 9.2s;
}
.tool-landing-page__hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tool-landing-page__hero-title {
  max-width: 700px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  font-family: var(--font-card-title);
  white-space: pre-line;
  margin-bottom: 12px;
}
.tool-landing-page__accent-text {
  color: var(--accent);
}
.tool-landing-page__hero-subtitle {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
  font-size: 16px;
  margin-bottom: 36px;
}
@media (prefers-reduced-motion: reduce) {
  .tool-landing-page__hero-photo-card {
    animation: none;
  }
}
.tool-landing-page__hero-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 280px;
}
.tool-landing-page__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.tool-landing-page__btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-landing-page__cta-button:hover .tool-landing-page__btn-arrow {
  transform: translateX(4px);
}
.tool-landing-page__hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 720px);
  margin-top: 22px;
}
@media (max-width: 600px) {
  .tool-landing-page__hero-chips {
    gap: 8px;
    margin-top: 18px;
  }
}
.tool-landing-page__flow-section {
  position: relative;
  width: 100%;
}
.tool-landing-page__related-tools-section {
  width: 100%;
  margin-top: 64px;
}
.tool-landing-page__section-title {
  margin-bottom: 24px;
  text-align: center;
  font-family: var(--font-card-title);
  font-size: 24px;
  font-weight: 700;
}
.tool-landing-page__related-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tool-landing-page__flow-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tool-landing-page__flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}
.tool-landing-page__page-shell {
  padding-top: 0;
}
.tool-landing-page__flow-step:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.tool-landing-page__flow-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.tool-landing-page__flow-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.tool-landing-page__flow-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.tool-landing-page__flow-description {
  max-width: 470px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .tool-landing-page__hero-section {
    padding: 64px 20px;
  }
  .tool-landing-page__hero-photo-cards {
    width: 520px;
    height: 206px;
    margin-bottom: 34px;
  }
  .tool-landing-page__hero-single-preview {
    width: 280px;
    margin-bottom: 34px;
  }
  .tool-landing-page__hero-photo-card {
    width: 148px;
    border-radius: 22px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  }
  .tool-landing-page__hero-photo-card:first-child {
    top: 46px;
    left: 0;
  }
  .tool-landing-page__hero-photo-card:nth-child(2) {
    left: 27%;
  }
  .tool-landing-page__hero-photo-card:nth-child(3) {
    right: 22%;
  }
  .tool-landing-page__hero-photo-card:nth-child(4) {
    top: 26px;
    right: 0;
  }
  .tool-landing-page__hero-title {
    font-size: 36px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .tool-landing-page__flow-panel {
    border-radius: var(--radius-xl);
  }
  .tool-landing-page__flow-step {
    min-height: 174px;
    padding: 26px 24px;
  }
  .tool-landing-page__flow-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 15px;
  }
  .tool-landing-page__flow-description {
    font-size: 15px;
    line-height: 1.5;
  }
  .tool-landing-page__related-tools-section {
    margin-top: 96px;
  }
  .tool-landing-page__related-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .tool-landing-page__flow-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--radius-xl);
  }
  .tool-landing-page__flow-step {
    min-height: 188px;
    padding: 28px 26px;
  }
  .tool-landing-page__flow-step:not(:last-child) {
    border-bottom: 0;
  }
  .tool-landing-page__flow-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 20px;
    width: 1px;
    background: var(--line);
  }
  .tool-landing-page__flow-description {
    margin-left: 48px;
  }
}
.marketing__page {
  position: relative;
  isolation: isolate;
  gap: 112px;
  overflow: hidden;
}
.marketing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px 0;
  text-align: center;
}
.marketing__hero h1 {
  max-width: 560px;
  margin: 20px auto 12px;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.5;
}
.marketing__hero h1 span {
  color: var(--accent);
}
.marketing__hero > p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.marketing__carousel {
  --carousel-card: clamp(150px, 18vw, 210px);
  width: min(100%, 720px);
  padding: 24px 0;
  overflow: hidden;
  cursor: grab;
  outline: none;
  perspective: calc(var(--carousel-card) * 3);
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marketing__carousel:active {
  cursor: grabbing;
}
.marketing__carousel-track {
  position: relative;
  height: var(--carousel-card);
  transform-style: preserve-3d;
  -webkit-user-select: none;
  user-select: none;
}
.marketing__carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--carousel-card);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  will-change: transform;
}
.marketing__carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
}
.marketing__catalog {
  scroll-margin-top: 96px;
}
.marketing__desktop-dock {
  width: 100%;
}
.marketing__desktop-browse-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}
.marketing__desktop-browse-button:hover {
  color: var(--text);
}
.marketing__desktop-browse-button:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.marketing__desktop-browse-button svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
@media (max-width: 767px) {
  .marketing__desktop-dock {
    display: none;
  }
  .marketing__page {
    gap: 64px;
  }
  .marketing__hero {
    padding: 48px 0 0;
  }
  .marketing__hero h1 {
    margin-top: 12px;
    font-size: 24px;
  }
  .marketing__hero > p {
    max-width: 340px;
    margin-bottom: 24px;
    font-size: 14px;
  }
  .marketing__carousel {
    --carousel-card: clamp(140px, 42vw, 168px);
    padding: 18px 0;
  }
}
.faq__page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 12px;
}
.faq__page-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}
.faq__link-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq__faq-section.faq__faq-section {
  padding-right: 0;
  padding-left: 0;
  width: 100%;
  max-width: none;
}
.faq__help-card {
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .faq__page-header {
    max-width: 640px;
    margin: 0 auto 4px;
    text-align: center;
  }
  .faq__page-title {
    font-family: var(--font-card-title);
    font-size: 36px;
    line-height: 1.5;
  }
  .faq__page-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
  }
}
.mcp-landing-page__page {
  position: relative;
  isolation: isolate;
  gap: 128px;
  overflow: hidden;
}
.mcp-landing-page__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  text-align: center;
}
.mcp-landing-page__hero h1 {
  max-width: 510px;
  margin: 32px auto 12px;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.5;
}
.mcp-landing-page__hero > p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.mcp-landing-page__app-stack {
  position: relative;
  width: 270px;
  height: 82px;
}
.mcp-landing-page__app-badge {
  --offset: calc((var(--badge-index) - 1.5) * 60px);
  position: absolute;
  top: 9px;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  transform: translateX(calc(-50% + var(--offset))) rotate(calc((var(--badge-index) - 1.5) * 3deg));
}
.mcp-landing-page__app-badge-image {
  object-fit: cover;
}
.mcp-landing-page__app-badge:first-child {
  --offset: -82px;
}
.mcp-landing-page__app-badge:nth-child(2) {
  --offset: -42px;
}
.mcp-landing-page__app-badge:nth-child(3) {
  --offset: 42px;
}
.mcp-landing-page__app-badge:nth-child(4) {
  --offset: 82px;
}
.mcp-landing-page__app-badge:first-child,
.mcp-landing-page__app-badge:nth-child(4) {
  z-index: 0;
}
.mcp-landing-page__app-badge:first-child .mcp-landing-page__app-badge-image,
.mcp-landing-page__app-badge:nth-child(4) .mcp-landing-page__app-badge-image {
  filter: brightness(0.62);
}
.mcp-landing-page__app-badge:nth-child(2),
.mcp-landing-page__app-badge:nth-child(3) {
  z-index: 1;
}
.mcp-landing-page__app-badge:nth-child(2) .mcp-landing-page__app-badge-image,
.mcp-landing-page__app-badge:nth-child(3) .mcp-landing-page__app-badge-image {
  filter: brightness(0.82);
}
.mcp-landing-page__neuro-formula-badge {
  z-index: 2;
  top: 5px;
  width: 76px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 38px;
  transform: translateX(-50%);
}
.mcp-landing-page__setup-section {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: left;
}
.mcp-landing-page__setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.mcp-landing-page__platform-tabs-scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mcp-landing-page__platform-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.mcp-landing-page__platform-tabs {
  width: max-content;
}
.mcp-landing-page__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.mcp-landing-page__step-card {
  display: flex;
  min-width: 0;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}
.mcp-landing-page__step-card + .mcp-landing-page__step-card {
  border-left: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.mcp-landing-page__step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.mcp-landing-page__step-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.mcp-landing-page__step-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.mcp-landing-page__copy-field {
  min-height: 48px;
  margin-top: auto;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--text);
  text-align: left;
  transition: background-color 0.2s ease;
}
.mcp-landing-page__copy-field:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.mcp-landing-page__copy-field code {
  min-width: 0;
  overflow: hidden;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcp-landing-page__copy-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--text-muted);
}
.mcp-landing-page__example-button-wrapper {
  margin-top: auto;
}
.mcp-landing-page__capabilities-section {
  width: 100%;
}
.mcp-landing-page__capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text);
}
.mcp-landing-page__capability-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.mcp-landing-page__capabilities-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.mcp-landing-page__capability-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}
.mcp-landing-page__capability-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}
.mcp-landing-page__capability-card p {
  flex-grow: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .mcp-landing-page__capabilities-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  .mcp-landing-page__capability-card {
    grid-column: span 2;
    padding: 32px;
  }
  .mcp-landing-page__capability-card:nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  .mcp-landing-page__capability-card:last-child {
    grid-column: 4 / span 2;
  }
}
@media (max-width: 767px) {
  .mcp-landing-page__page {
    gap: 64px;
  }
  .mcp-landing-page__hero {
    padding: 48px 0 0;
  }
  .mcp-landing-page__hero h1 {
    margin-top: 24px;
    font-size: 24px;
  }
  .mcp-landing-page__hero > p {
    max-width: 340px;
    font-size: 14px;
  }
  .mcp-landing-page__app-stack {
    width: 230px;
    transform: scale(0.9);
  }
  .mcp-landing-page__setup-section {
    border-radius: var(--radius-lg);
  }
  .mcp-landing-page__setup-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
  .mcp-landing-page__platform-tabs-scroll {
    width: 100%;
  }
  .mcp-landing-page__capabilities-grid,
  .mcp-landing-page__steps-grid {
    grid-template-columns: 1fr;
  }
  .mcp-landing-page__step-card {
    min-height: 225px;
    padding: 20px 16px;
  }
  .mcp-landing-page__step-card + .mcp-landing-page__step-card {
    border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    border-left: 0;
  }
  .mcp-landing-page__step-number {
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mcp-landing-page__copy-field {
    transition: none;
  }
}
.auth__auth-sheet.auth__auth-sheet {
  width: min(860px, 100%);
  padding: 0;
}
.auth__auth-sheet.auth__auth-sheet-compact {
  width: min(560px, 100%);
}
.auth__page-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
  position: relative;
}
.auth__page-wrapper-compact {
  display: flex;
  justify-content: center;
}
.auth__auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.auth__page-wrapper-fullscreen {
  width: 100%;
  min-height: 100dvh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--surface);
}
.auth__page-wrapper-fullscreen .auth__showcase {
  min-height: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 38%,
    rgba(0, 0, 0, 0.85) 58%,
    rgba(0, 0, 0, 0.45) 78%,
    transparent
  );
  mask-image: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, 0.85) 58%, rgba(0, 0, 0, 0.45) 78%, transparent);
}
.auth__page-wrapper-fullscreen .auth__card {
  max-width: 496px;
  padding: 48px;
  justify-self: center;
}
@media (min-width: 768px) {
  .auth__page-wrapper-fullscreen .auth__title {
    margin-bottom: 16px;
  }
  .auth__page-wrapper-fullscreen .auth__subtitle {
    margin-bottom: 40px;
  }
  .auth__page-wrapper-fullscreen .auth__button-group,
  .auth__page-wrapper-fullscreen .auth__oauth-group,
  .auth__page-wrapper-fullscreen .auth__social-buttons {
    gap: 16px;
  }
  .auth__page-wrapper-fullscreen .auth__auth-divider {
    padding: 12px 0;
  }
  .auth__page-wrapper-fullscreen .auth__legal-notice {
    margin-top: 24px;
  }
}
.auth__showcase {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}
.auth__showcase img {
  object-fit: cover;
}
.auth__showcase:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 88%, transparent));
  pointer-events: none;
}
.auth__showcase-overlay {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 48px;
  width: min(360px, calc(100% - 96px));
}
.auth__showcase-slides {
  display: grid;
}
.auth__showcase-slide {
  grid-area: 1/1;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.auth__showcase-slide-active {
  opacity: 1;
  transform: translateY(0);
}
.auth__showcase-title {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.auth__showcase-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.auth__showcase-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 3px;
  margin-top: 24px;
}
.auth__showcase-progress span {
  position: relative;
  width: 28px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}
.auth__showcase-progress span:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--text) 92%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.auth__showcase-progress .auth__showcase-progress-active:after {
  animation: auth-auth-showcase-progress 5s linear forwards;
}
.auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  opacity: 0;
  animation: auth-auth-card-fade-in 0.45s ease forwards;
}
.auth__auth-footer {
  display: none;
}
.auth__title {
  font-family: var(--font-card-title);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
}
.auth__subtitle {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 90%;
}
.auth__social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.auth__signup-bonus {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}
.auth__oauth-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth__auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: color-mix(in srgb, var(--text) 42%, transparent);
  font-size: 12px;
  white-space: nowrap;
}
.auth__auth-divider:after,
.auth__auth-divider:before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--surface);
}
.auth__legal-notice {
  margin-top: 18px;
  max-width: 360px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.45;
}
.auth__legal-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth__button-group {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}
.auth__social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
  color: var(--text);
}
.auth__social-btn .auth__last-used-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  z-index: 1;
  color: var(--accent-foreground);
  background: var(--accent);
  white-space: nowrap;
  pointer-events: none;
}
.auth__button-group .auth__social-btn .auth__last-used-badge {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
.auth__social-btn:disabled {
  cursor: wait;
}
.auth__social-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth__social-btn-tg {
  background: #2aabee;
}
.auth__social-btn-vk {
  background: #2787f5;
}
.auth__social-btn-google {
  background: #fff;
  color: #1f1f1f;
}
.auth__social-btn-ya {
  background: var(--text);
  color: var(--bg);
}
.auth__btn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.auth__button-group .auth__full-label,
.auth__compact-label {
  display: none;
}
.auth__button-group .auth__compact-label {
  display: inline;
}
@media (prefers-reduced-motion: reduce) {
  .auth__showcase-slide {
    transition: none;
  }
  .auth__showcase-progress .auth__showcase-progress-active:after {
    animation: none;
    transform: scaleX(1);
  }
}
@media (max-width: 767px) {
  .auth__page-wrapper {
    display: flex;
    justify-content: center;
  }
  .auth__page-wrapper-fullscreen {
    position: relative;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
  }
  .auth__page-wrapper-fullscreen .auth__card {
    min-height: 100dvh;
    padding: 32px 24px;
    align-self: center;
  }
  .auth__page-wrapper-fullscreen .auth__showcase {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 55dvh;
    min-height: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
    mask-image: linear-gradient(180deg, #000 20%, transparent);
    pointer-events: none;
  }
  .auth__page-wrapper-fullscreen .auth__showcase:after {
    display: none;
  }
  .auth__page-wrapper-fullscreen .auth__showcase img {
    filter: brightness(0.58);
  }
  .auth__showcase-overlay {
    display: none;
  }
}
@media (max-width: 480px) {
  .auth__card {
    padding: 24px 20px;
  }
  .auth__page-wrapper-fullscreen .auth__card {
    padding: 32px 20px;
  }
  .auth__title {
    font-size: 24px;
  }
}
.legal-doc-page__page-header {
  margin-bottom: 0;
}
.legal-doc-page__page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}
.legal-doc-page__card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  margin-bottom: 28px;
}
.legal-doc-page__card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.legal-doc-page__section + .legal-doc-page__section {
  margin-top: 24px;
}
.legal-doc-page__section h2 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}
.legal-doc-page__card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.legal-doc-page__card-link:hover {
  opacity: 0.86;
}
.legal-doc-page__card-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .legal-doc-page__page-header {
    max-width: 640px;
    margin: 0 auto 4px;
    text-align: center;
  }
  .legal-doc-page__page-title {
    margin: 0;
    font-family: var(--font-card-title);
    font-size: 36px;
    line-height: 1.5;
  }
  .legal-doc-page__card {
    padding: 24px;
  }
  .legal-doc-page__card-text {
    font-size: 16px;
    line-height: 1.6;
  }
}
.ref-page__content {
  min-width: 0;
}
.ref-page__verified-partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: fit-content;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.ref-page__verified-partner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ref-page__verified-partner svg {
  width: 16px;
  height: 16px;
}
.ref-page__skeleton {
  display: inline-block;
  height: 16px;
  max-width: 100%;
  border-radius: 6px;
  background: var(--surface);
  animation: ref-page-ref-skeleton-pulse 1.5s ease-in-out infinite;
}
.ref-page__skeleton-link {
  width: 230px;
  vertical-align: middle;
}
.ref-page__skeleton-balance {
  width: 150px;
  height: 18px;
}
.ref-page__skeleton-tabs {
  width: 250px;
  height: 32px;
}
.ref-page__skeleton-value {
  width: 90px;
  height: 19px;
}
.ref-page__skeleton-date {
  width: 70px;
  height: 11px;
}
.ref-page__skeleton-bars {
  fill: color-mix(in srgb, var(--text) 8%, transparent);
  animation: ref-page-ref-skeleton-pulse 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ref-page__skeleton-bars,
  .ref-page__skeleton {
    animation: none;
  }
}
.ref-page__page-heading {
  display: none;
}
.ref-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 23fr) minmax(0, 38fr);
  gap: 28px;
  align-items: start;
}
.ref-page__invitation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ref-page__separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.ref-page__separator:after,
.ref-page__separator:before {
  content: "";
  flex: 1 1;
  height: 1px;
  background: var(--line);
}
.ref-page__mobile-separator {
  display: none;
}
.ref-page__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}
.ref-page__support-card.ref-page__support-card {
  background:
    radial-gradient(
      circle at top left,
      var(--accent-soft),
      color-mix(in srgb, var(--text) 4%, transparent) 42%,
      transparent 72%
    ),
    var(--surface);
}
.ref-page__support-desktop {
  display: block;
}
.ref-page__support-mobile {
  display: none;
}
.ref-page__invitation .ref-page__promo-desktop {
  display: block;
}
.ref-page__dashboard .ref-page__promo-mobile {
  display: none;
}
.ref-page__content h2 {
  font: 500 18px/1.5 var(--font-card-title);
}
.ref-page__qr-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ref-page__qr-info {
  min-width: 0;
}
.ref-page__invite-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ref-page__invite-heading h2 {
  min-width: 0;
}
.ref-page__share-button {
  width: 100%;
  min-width: 0;
}
.ref-page__qr-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ref-page__share-button-control {
  width: 100%;
  min-height: 38px;
  max-width: 100%;
  padding: 9px 14px;
  gap: 8px;
  font-size: 13px;
  white-space: normal;
  text-align: center;
}
.ref-page__share-button-control svg {
  width: 17px;
  height: 17px;
}
.ref-page__copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 14px;
}
.ref-page__copy-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-page__copy-row > button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 4px;
  color: var(--text);
}
.ref-page__copy-row svg {
  width: 19px;
  height: 19px;
}
.ref-page__source-hint {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.ref-page__source-hint p {
  margin: 0;
}
.ref-page__source-hint a {
  width: fit-content;
  color: var(--accent);
  font-weight: 600;
}
.ref-page__referral-sources {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.ref-page__referral-sources-heading h2 {
  margin: 0;
  font-size: 15px;
}
.ref-page__referral-sources-heading p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ref-page__referral-sources-list {
  display: grid;
}
.ref-page__referral-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ref-page__referral-source-title {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.ref-page__referral-source-title svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.ref-page__referral-source-copy {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
}
.ref-page__referral-source-copy svg {
  width: 16px;
  height: 16px;
}
.ref-page__copy-row > button:disabled,
.ref-page__referral-source-copy:disabled {
  opacity: 0.4;
  cursor: default;
}
.ref-page__referral-source-action {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.ref-page__referral-source-action:disabled {
  opacity: 0.4;
  cursor: default;
}
.ref-page__referral-source-hint {
  max-width: 65%;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}
.ref-page__link-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ref-page__text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  text-align: left;
}
.ref-page__text-button svg {
  width: 15px;
  height: 15px;
}
.ref-page__text-button:hover {
  opacity: 0.8;
}
.ref-page__text-button:disabled {
  color: var(--text-muted);
  cursor: default;
}
.ref-page__link-details .ref-page__text-button {
  align-self: flex-start;
}
.ref-page__dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ref-page__level-card {
  display: none;
  position: relative;
  overflow: hidden;
  padding-left: 138px;
  background: linear-gradient(112deg, color-mix(in srgb, var(--accent) 8%, transparent), var(--surface) 60%);
}
.ref-page__trophy {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 118px;
  height: 118px;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}
.ref-page__level-card > p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.ref-page__program-badge {
  color: var(--text-dim);
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}
.ref-page__progress {
  display: flex;
  gap: 4px;
  margin: 18px 0;
}
.ref-page__progress span {
  flex: 1 1;
  height: 7px;
  border-radius: 3px;
  background: var(--surface);
}
.ref-page__progress .ref-page__progress-filled {
  background: var(--accent);
}
.ref-page__level-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ref-page__level-bottom > span {
  font-size: 12px;
  color: var(--text-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.ref-page__level-value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ref-page__level-value h2 {
  font-size: 16px;
  white-space: nowrap;
}
.ref-page__commission {
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 3px 10px;
  font-size: 13px;
}
.ref-page__info {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
.ref-page__info svg {
  width: 16px;
  height: 16px;
}
.ref-page__chart {
  --ref-chart-accent: var(--accent);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ref-page__balance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ref-page__balance-actions > :last-child {
  flex: 0 0 auto;
}
.ref-page__exchange-button {
  width: 48px;
  padding: 0;
}
.ref-page__exchange-button svg {
  width: 24px;
  height: 24px;
}
.ref-page__balance-label-mobile,
.ref-page__withdraw-short {
  display: none;
}
.ref-page__chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ref-page__chart-value {
  display: grid;
  justify-items: end;
  margin-left: auto;
  text-align: right;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
}
.ref-page__chart-value strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.ref-page__chart-value small {
  font-size: 10px;
  color: var(--text-muted);
}
.ref-page__chart > svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  overflow: visible;
}
.ref-page__referrals {
  display: none;
  margin-top: 64px;
}
.ref-page__table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.ref-page__table-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ref-page__sort-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.ref-page__sort-button svg {
  width: 16px;
  height: 16px;
}
.ref-page__table {
  width: 100%;
  border-spacing: 0 10px;
  table-layout: fixed;
}
.ref-page__table th {
  padding: 0 18px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
}
.ref-page__table td {
  background: var(--surface);
  padding: 16px 18px;
  font-size: 14px;
  vertical-align: middle;
  transition: background 0.16s ease;
}
.ref-page__table tbody tr:hover td {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.ref-page__table td:first-child {
  border-radius: 12px 0 0 12px;
}
.ref-page__table td:last-child {
  border-radius: 0 12px 12px 0;
}
.ref-page__table td small {
  font-size: 10px;
  color: var(--text-dim);
}
.ref-page__table td > strong {
  font-size: 14px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.ref-page__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ref-page__user strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-page__user-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.ref-page__subscription {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  font-size: 11px;
  line-height: 1;
}
.ref-page__subscription.ref-page__positive {
  background: var(--accent-bg);
}
.ref-page__expiration {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.ref-page__positive {
  color: var(--accent);
}
.ref-page__muted {
  color: var(--text-muted);
}
.ref-page__mobile-label {
  display: none;
}
.ref-page__terms {
  display: grid;
  gap: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.ref-page__terms h3 {
  color: var(--text);
  font: 500 16px/1.5 var(--font-card-title);
}
.ref-page__content button:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .ref-page__invitation {
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .ref-page__referrals {
    margin-top: 128px;
  }
}
@media (max-width: 1100px) {
  .ref-page__layout {
    gap: 20px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .ref-page__qr-card {
    gap: 14px;
    padding: 18px;
  }
  .ref-page__qr-card h2 {
    font-size: 16px;
  }
  .ref-page__qr-card p {
    font-size: 12px;
  }
  .ref-page__level-card {
    padding-left: 100px;
  }
  .ref-page__trophy {
    width: 88px;
    height: 88px;
  }
  .ref-page__table td,
  .ref-page__table th {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 767px) {
  .ref-page__page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .ref-page__page-heading .ref-page__verified-partner {
    margin-bottom: 12px;
  }
  .ref-page__page-heading h1 {
    margin: 0 0 12px;
    color: var(--text);
    font: 800 24px/1.5 var(--font-card-title);
  }
  .ref-page__page-heading p {
    max-width: 340px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  .ref-page__layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .ref-page__dashboard,
  .ref-page__invitation {
    width: 100%;
    gap: 16px;
  }
  .ref-page__balance-label-desktop {
    display: none;
  }
  .ref-page__balance-label-mobile {
    display: inline;
  }
  .ref-page__dashboard div:has(> .ref-page__balance-actions) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .ref-page__dashboard div:has(> .ref-page__balance-actions) > :first-child {
    flex: 1 1;
    min-width: 80px;
  }
  .ref-page__balance-actions {
    flex-shrink: 0;
  }
  .ref-page__qr-card,
  .ref-page__separator {
    display: none;
  }
  .ref-page__mobile-separator {
    display: flex;
  }
  .ref-page__mobile-separator:after,
  .ref-page__support-desktop {
    display: none;
  }
  .ref-page__support-mobile {
    display: block;
    margin-top: 28px;
  }
  .ref-page__invitation .ref-page__promo-desktop {
    display: none;
  }
  .ref-page__dashboard .ref-page__promo-mobile {
    display: block;
  }
  .ref-page__card {
    padding: 20px;
    border-radius: 16px;
  }
  .ref-page__level-card {
    padding-left: 88px;
  }
  .ref-page__level-card > p {
    font-size: 13px;
    gap: 7px;
  }
  .ref-page__trophy {
    left: 12px;
    width: 68px;
    height: 68px;
  }
  .ref-page__level-value {
    gap: 7px;
  }
  .ref-page__level-value h2 {
    font-size: 15px;
  }
  .ref-page__level-bottom > span {
    font-size: 11px;
  }
  .ref-page__progress {
    gap: 3px;
    margin: 14px 0;
  }
  .ref-page__progress span {
    height: 6px;
  }
  .ref-page__chart-header {
    align-items: flex-start;
  }
  .ref-page__chart-value {
    padding-top: 5px;
    font-size: 10px;
  }
  .ref-page__chart-value strong {
    font-size: 12px;
  }
  .ref-page__chart > svg {
    margin-top: 16px;
    min-height: 170px;
  }
  .ref-page__qr-card {
    display: block;
    padding: 0;
    background: transparent;
  }
  .ref-page__qr-info,
  .ref-page__share-button {
    display: none;
  }
  .ref-page__copy-row {
    padding: 16px 18px;
    background: var(--surface);
    font-size: 13px;
  }
  .ref-page__referrals {
    margin-top: 64px;
  }
  .ref-page__table-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .ref-page__table-header h2 {
    font-size: 17px;
    line-height: 1.35;
  }
  .ref-page__table-header > :last-child {
    width: 100%;
  }
  .ref-page__sort-button {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
  }
  .ref-page__table,
  .ref-page__table tbody {
    display: block;
  }
  .ref-page__table thead {
    display: none;
  }
  .ref-page__table tbody > tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 14px 0;
    padding: 16px;
    margin-top: 10px;
    border-radius: 14px;
    background: var(--surface);
  }
  .ref-page__table tbody > tr:before {
    content: "";
    grid-column: 1/-1;
    grid-row: 2;
    align-self: start;
    width: 100%;
    height: 1px;
    background: var(--surface);
    transform: translateY(-7px);
  }
  .ref-page__table td {
    display: block;
    padding: 0;
    border-radius: 0 !important;
    background: transparent;
  }
  .ref-page__table tbody tr:hover td {
    background: transparent;
  }
  .ref-page__table td:first-child {
    grid-column: 1/3;
    grid-row: 1;
    padding-right: 8px;
  }
  .ref-page__table td:nth-child(2),
  .ref-page__table td:nth-child(3),
  .ref-page__table td:nth-child(4) {
    display: grid;
    grid-row: 2;
    align-content: start;
    gap: 4px;
    padding-top: 5px;
  }
  .ref-page__table td:nth-child(2) {
    grid-column: 1;
    padding-right: 8px;
  }
  .ref-page__table td:nth-child(3) {
    grid-column: 2;
    padding: 5px 8px 0;
  }
  .ref-page__table td:nth-child(4) {
    grid-column: 3;
    padding-left: 8px;
  }
  .ref-page__table td:last-child {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 8px;
    text-align: right;
    white-space: nowrap;
  }
  .ref-page__table td > strong {
    font-size: 13px;
  }
  .ref-page__expiration {
    display: none;
  }
  .ref-page__mobile-label {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.3;
  }
  .ref-page__subscription {
    width: fit-content;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 10px;
  }
  .ref-page__user strong {
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .ref-page__withdraw-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ref-page__withdraw-short {
    display: inline;
  }
}
@media (max-width: 359px) {
  .ref-page__chart-value {
    display: none;
  }
}

.formula-email-form {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-block: 16px;
}

.formula-email-form label {
  display: grid;
  gap: 6px;
}

.formula-email-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #767676;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.formula-email-form[hidden],
.formula-email-form [hidden] {
  display: none;
}
