/* COMPONENTS — original Neuro Formula styles, with descriptive class names. */
[data-formula-ios-tap="relative"] { position: relative; }
.formula-ios-tap {
  position: absolute;
  inset: 0;
  z-index: 3;
}
:is(:disabled, [aria-disabled="true"], [aria-busy="true"]) > .formula-ios-tap { display: none; }

.button__button-no-press-animation:active {
  transform: none;
}
.button__button-wrapper-premium {
  --main-btn-layer: var(--premium-line);
}
.button__button-wrapper-premium:after {
  background: var(--main-btn-layer);
}
.button__button-premium {
  background: var(--premium);
  color: var(--premium-foreground);
}
.button__button-wrapper-grow {
  flex: 1 1;
}
.button__grow {
  flex: 1 1;
}
.button__token-price {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 11px;
  line-height: 1;
}
.is-disabled:not(.btn-wrap--white):not(.btn-wrap--accent):not(.btn-wrap--red):not(.btn-wrap--gray):not(
    .button__button-wrapper-premium
  ):after {
  background: var(--accent-line);
}
.is-disabled:not(.btn-wrap--white):not(.btn-wrap--accent):not(.btn-wrap--red):not(.btn-wrap--gray):not(
    .button__button-wrapper-premium
  )
  .btn {
  background: var(--accent-soft);
  color: var(--text-muted);
  transform: none;
}
:where(.modal__dialog) {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}
:where(.modal__dialog)::backdrop {
  background: transparent;
}
.empty-state__icon svg {
  display: block;
  width: 56px;
  height: 56px;
}
.empty-state__card-stack {
  position: relative;
  width: min(84vw, 360px);
  height: 180px;
  margin-bottom: 20px;
}
.empty-state__card-stack-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122px;
  height: 164px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  will-change: transform, filter;
  animation: empty-state-cycle-empty-state-card 20s ease-in-out infinite;
}
.empty-state__card-stack-compact {
  width: 100%;
  height: 100%;
  margin: 0;
}
.empty-state__card-stack-compact .empty-state__card-stack-image {
  width: 34%;
  height: 76%;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}
.empty-state__action-button {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.empty-state__action-button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
@media (prefers-reduced-motion: reduce) {
  .empty-state__card-stack-image {
    animation-play-state: paused;
  }
}
.sheet__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.sheet__overlay-visible {
  opacity: 1;
}
.sheet__sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}
.sheet__sheet-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.sheet__sheet-body {
  flex: 1 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet__sheet-footer {
  flex-shrink: 0;
  width: 100%;
}
@media (max-width: 767px) {
  .sheet__overlay {
    padding: 12px;
  }
  .sheet__sheet {
    max-height: calc(100dvh - 24px);
  }
}
@media (min-width: 768px) {
  .sheet__overlay {
    padding: 32px;
  }
  .sheet__sheet {
    max-height: min(760px, calc(100dvh - 64px));
  }
}
.media-preview__media {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.media-preview__media-visible {
  opacity: 1;
}
.media-preview__fallback-icon {
  font-size: 40px;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 42%, transparent);
}
.media-preview__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: media-preview-media-preview-spin 0.9s linear infinite;
}
.chip__button {
  padding: 3px 10px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid var(--border);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.chip__button:hover {
  border-color: var(--border);
}
.chip__button.chip__small {
  padding: 3px 8px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
  gap: 3px;
}
.chip__button.chip__static {
  color: var(--text-dim);
  cursor: default;
}
.chip__button.chip__static:hover {
  border-color: var(--border);
}
.chip__filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip__filter-chip {
  /* color: var(--text-muted) !important; */
  transition: all 0.2s ease;
}
.chip__filter-chip-active {
  color: var(--text) !important;
}
@media (max-width: 767px) {
  .chip__filter-chip {
    font-size: 12px !important;
    line-height: 16px !important;
  }
}
.close-button__button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.close-button__button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.close-button__icon {
  width: 24px;
  height: 24px;
}
@media (min-width: 768px) {
  .close-button__button {
    top: 16px;
    right: 16px;
  }
}
.audio-player__player {
  min-width: 0;
  width: 100%;
  color-scheme: dark;
}
.audio-player__player audio {
  display: block;
  width: 100%;
  max-width: 100%;
}
.audio-player__error {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.audio-player__error button {
  color: var(--text);
  text-decoration: underline;
}
.audio-player__waveform {
  height: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  background: var(--accent-bg);
  pointer-events: none;
  container-type: inline-size;
}
.audio-player__waveform audio {
  display: none;
}
.audio-player__waveform-body {
  width: 100%;
  display: grid;
  gap: 18px;
}
.audio-player__wave {
  position: relative;
  width: 100%;
  color: var(--accent);
}
.audio-player__wave svg {
  display: block;
  width: 100%;
  height: clamp(46px, 32cqw, 110px);
  fill: currentColor;
}
.audio-player__wave rect {
  transition:
    height 0.3s ease,
    y 0.3s ease,
    opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .audio-player__wave rect {
    transition: none;
  }
}
.audio-player__wave input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}
.audio-player__wave input:disabled {
  pointer-events: none;
}
.audio-player__wave:has(input:focus-visible) {
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--accent);
}
.audio-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.audio-player__play-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease;
}
.audio-player__play-button:hover {
  background: var(--accent);
}
.audio-player__play-button:focus-visible {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--accent);
}
.audio-player__play-button svg,
.audio-player__play-button > span {
  width: 18px;
  height: 18px;
}
.audio-player__time {
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audio-player__time > span {
  color: var(--text-muted);
}
.audio-player__waveform .audio-player__error {
  margin: 0;
}
.audio-player__waveform .audio-player__error button {
  pointer-events: auto;
}
@container (max-width: 140px) {
  .audio-player__waveform-body {
    gap: 12px;
  }
  .audio-player__play-button {
    width: 32px;
    height: 32px;
  }
  .audio-player__controls {
    gap: 6px;
  }
  .audio-player__time {
    font-size: 10px;
  }
}
.site-footer__footer {
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.site-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.site-footer__business-details,
.site-footer__copyright,
.site-footer__debug-button,
.site-footer__links a,
.site-footer__locale-button,
.site-footer__locale-label {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.site-footer__debug-button:hover,
.site-footer__links a:hover {
  color: var(--text);
}
.site-footer__locale-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-footer__locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.site-footer__locale-trigger:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.site-footer__locale-chevron {
  color: var(--text-muted);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.site-footer__locale-chevron-open {
  transform: rotate(180deg);
}
.site-footer__locale-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 5;
}
.site-footer__locale-button {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.site-footer__locale-button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.site-footer__locale-button-active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.site-footer__debug-button {
  padding: 0;
}
.site-footer__business-details {
  max-width: 600px;
  padding: 0 16px;
  font-style: normal;
  line-height: 1.5;
  text-align: center;
}
.site-footer__business-details,
.site-footer__copyright {
  opacity: 0.6;
}
.image-upload-zone__hero-grid {
  display: grid;
  gap: 8px;
}
.image-upload-zone__hero-grid-slots1 {
  grid-template-columns: minmax(0, 1fr);
}
.image-upload-zone__hero-grid-slots2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.image-upload-zone__hero-grid-slots3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.image-upload-zone__hero-grid.image-upload-zone__labeled-slots {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.image-upload-zone__hero-grid.image-upload-zone__labeled-slots.image-upload-zone__scrolling {
  display: grid;
  overflow: visible;
  height: auto;
  margin: 0;
  padding: 0;
}
.image-upload-zone__hero-grid.image-upload-zone__labeled-slots .image-upload-zone__preview-item,
.image-upload-zone__hero-grid.image-upload-zone__labeled-slots .image-upload-zone__select-card {
  width: 100%;
  min-width: 0;
}
.image-upload-zone__hero-grid.image-upload-zone__scrolling {
  display: flex;
  overflow-x: auto;
  height: 148px;
  margin: -10px -18px;
  padding: 10px 18px;
  scrollbar-width: none;
}
.image-upload-zone__hero-grid.image-upload-zone__scrolling::-webkit-scrollbar {
  display: none;
}
.image-upload-zone__scroll-fade {
  display: none;
}
.image-upload-zone__drag-active .image-upload-zone__select-card {
  opacity: 0.7;
  border-color: color-mix(in srgb, var(--accent) 56%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.image-upload-zone__drag-active .image-upload-zone__select-icon-inner,
.image-upload-zone__drag-active .image-upload-zone__select-title {
  color: var(--accent);
}
.image-upload-zone__select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-bg);
  padding: 16px 12px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  flex-shrink: 0;
}
.image-upload-zone__select-card:hover {
  border-color: color-mix(in srgb, var(--accent) 56%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.image-upload-zone__select-card-button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: center;
  color: inherit;
  cursor: pointer;
}
.image-upload-zone__select-card-button:disabled {
  cursor: default;
}
.image-upload-zone__hero-grid.image-upload-zone__scrolling .image-upload-zone__select-card {
  width: calc(33.333% - 10px);
}
.image-upload-zone__hero-grid.image-upload-zone__scrolling .image-upload-zone__select-content {
  padding-top: 0;
}
.image-upload-zone__hero-grid.image-upload-zone__scrolling .image-upload-zone__select-title {
  font-size: 14px;
}
.image-upload-zone__select-card.image-upload-zone__wide {
  grid-column: 1/-1;
  width: 100%;
}
.image-upload-zone__select-icon-inner,
.image-upload-zone__select-title {
  color: var(--accent);
}
.image-upload-zone__preview-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-shrink: 0;
  width: calc(33.333% - 10px);
  cursor: grab;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    outline 0.2s ease;
  touch-action: none;
  will-change: transform;
}
.image-upload-zone__preview-item:active {
  cursor: grabbing;
}
.image-upload-zone__preview-item.image-upload-zone__is-dragging {
  opacity: 0.4;
  transform: scale(0.92);
}
.image-upload-zone__preview-item.image-upload-zone__is-drag-over {
  transform: scale(1.05);
  z-index: 10;
}
.image-upload-zone__preview-item.image-upload-zone__is-drag-over:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2.5px var(--accent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
}
.image-upload-zone__preview-item-previewable {
  cursor: pointer;
}
.image-upload-zone__preview-item.image-upload-zone__preview-item-avatar {
  aspect-ratio: 1/1;
  overflow: visible;
  border-radius: 50%;
}
.image-upload-zone__preview-item-avatar .image-upload-zone__image-media {
  border-radius: 50%;
}
.image-upload-zone__preview-order-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
.image-upload-zone__preview-slot-badge {
  top: auto;
  left: auto;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  height: 26px;
  padding: 0 9px;
  justify-content: flex-start;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-upload-zone__image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.image-upload-zone__audio-media {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
}
.image-upload-zone__audio-media-icon {
  width: 28px;
  height: 28px;
}
.image-upload-zone__preview-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.image-upload-zone__upload-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.image-upload-zone__upload-overlay .loader {
  border-color: var(--text) var(--border) var(--border);
}
.image-upload-zone__preview-hover-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
}
.image-upload-zone__preview-item-previewable:hover .image-upload-zone__preview-hover-overlay {
  opacity: 1;
}
.image-upload-zone__preview-item.image-upload-zone__is-dragging .image-upload-zone__preview-hover-overlay {
  opacity: 0;
}
.image-upload-zone__remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}
.image-upload-zone__remove-image-btn:hover {
  background: #000;
  transform: scale(1.05);
}
.image-upload-zone__select-card-disabled {
  opacity: 0.5;
  cursor: default;
}
.image-upload-zone__select-card-disabled:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-bg);
}
.image-upload-zone__select-icon-wrap {
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.image-upload-zone__select-icon-inner {
  display: flex;
}
.image-upload-zone__select-icon {
  width: 24px;
  height: 24px;
}
.image-upload-zone__select-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-upload-zone__select-title,
.image-upload-zone__select-title div {
  font-size: 14px;
  line-height: 1.2;
}
.image-upload-zone__select-title div {
  color: var(--text);
  display: inline-block;
  text-decoration: underline;
}
.image-upload-zone__select-title span {
  color: var(--accent);
  font-weight: 500;
}
.image-upload-zone__file-input {
  display: none;
}
@media (max-width: 767px) {
  .image-upload-zone__preview-item {
    touch-action: auto;
  }
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots,
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots.image-upload-zone__scrolling {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots .image-upload-zone__preview-item,
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots .image-upload-zone__select-card {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: calc((100% - 16px) / 3);
    width: auto;
    min-width: 140px;
  }
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots::-webkit-scrollbar {
    display: none;
  }
}
@media (min-width: 768px) {
  .image-upload-zone__hero-grid {
    gap: 14px;
  }
  .image-upload-zone__hero-grid.image-upload-zone__scrolling {
    height: 120px;
    margin: 0;
    padding: 0;
  }
  .image-upload-zone__scroll-fade {
    position: sticky;
    right: 0;
    z-index: 4;
    display: block;
    align-self: stretch;
    flex: 0 0 36px;
    margin-left: -50px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease;
  }
  .image-upload-zone__scroll-fade-visible {
    opacity: 1;
  }
  .image-upload-zone__hero-grid.image-upload-zone__labeled-slots.image-upload-zone__scrolling
    .image-upload-zone__select-title,
  .image-upload-zone__select-title,
  .image-upload-zone__select-title div {
    font-size: 16px;
  }
  .image-upload-zone__avatar-button-small {
    font-size: 14px !important;
  }
  .image-upload-zone__select-card {
    border-radius: var(--radius-lg);
    padding: 24px 16px;
  }
  .image-upload-zone__hero-grid.image-upload-zone__scrolling .image-upload-zone__select-card {
    width: 128px;
  }
  .image-upload-zone__select-card.image-upload-zone__wide {
    grid-column: 1/-1;
  }
  .image-upload-zone__preview-item {
    border-radius: var(--radius-lg);
    width: 128px;
  }
}
.image-upload-zone__select-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
.create-grid-section__section {
  width: 100%;
}
.create-grid-section__grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1100px) {
  .create-grid-section__grid-container {
    grid-template-columns: clamp(340px, 34vw, 520px) minmax(0, 1fr);
  }
}
.create-grid-section__large-card {
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 14%, transparent), rgba(0, 0, 0, 0) 40%),
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
  border-radius: 20px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  gap: 32px;
}
.create-grid-section__large-card-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  max-width: 58%;
}
.create-grid-section__large-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.create-grid-section__large-card-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 100%;
}
.create-grid-section__cta-button {
  margin-top: auto;
  width: fit-content;
}
.create-grid-section__large-card-media {
  position: absolute;
  top: 52%;
  right: -25px;
  width: 130px;
  height: 170px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.create-grid-section__image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.create-grid-section__image-wrapper {
  position: absolute;
  width: 100%;
  aspect-ratio: 10/13;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: var(--surface);
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation: create-grid-section-cycle-large-card-image 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.create-grid-section__image-wrapper:nth-child(2) {
  animation-delay: -6.4s;
}
.create-grid-section__image-wrapper:nth-child(3) {
  animation-delay: -4.8s;
}
.create-grid-section__image-wrapper:nth-child(4) {
  animation-delay: -3.2s;
}
.create-grid-section__image-wrapper:nth-child(5) {
  animation-delay: -1.6s;
}
.create-grid-section__stacked-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.create-grid-section__image-next {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .create-grid-section__image-wrapper {
    animation: none;
    transition-property: none;
    will-change: auto;
  }
  .create-grid-section__image-wrapper:nth-child(1) {
    z-index: 3;
    transform: translate(-42%, -54%) rotate(4deg);
  }
  .create-grid-section__image-wrapper:nth-child(2) {
    z-index: 2;
    transform: translate(-53%, -50%) rotate(-2deg) scale(0.95);
  }
  .create-grid-section__image-wrapper:nth-child(3) {
    z-index: 1;
    transform: translate(-62%, -46%) rotate(-7deg) scale(0.9);
  }
  .create-grid-section__image-wrapper:nth-child(n+4) {
    visibility: hidden;
  }
  .create-grid-section__image-next {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .create-grid-section__image-next::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: translateX(-2px) rotate(45deg);
  }
  .create-grid-section__image-next:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
.create-grid-section__small-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.create-grid-section__small-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 0;
}
.create-grid-section__small-card:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  transform: translateY(-2px);
}
.create-grid-section__desktop-only-card {
  display: none;
}
.create-grid-section__small-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.create-grid-section__icon-wrapper {
  color: color-mix(in srgb, var(--text) 90%, transparent);
}
.create-grid-section__icon-wrapper span,
.create-grid-section__icon-wrapper svg {
  width: 20px;
  height: 20px;
  display: block;
}
.create-grid-section__icon-wrapper span {
  font-size: 20px;
  line-height: 20px;
}
.create-grid-section__premium-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.create-grid-section__premium-badge-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}
.create-grid-section__small-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.create-grid-section__small-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.create-grid-section__small-card-description {
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 40%, transparent);
  line-height: 1.4;
}
@media (min-width: 400px) {
  .create-grid-section__large-card-media {
    right: 25px;
  }
}
@media (min-width: 768px) {
  .create-grid-section__large-card {
    flex-direction: row;
    padding: 32px;
  }
  .create-grid-section__large-card-content {
    max-width: none;
  }
  .create-grid-section__small-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
@media (min-width: 1100px) {
  .create-grid-section__small-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .create-grid-section__image-wrapper {
    width: 160px;
    height: 220px;
    aspect-ratio: auto;
  }
  .create-grid-section__large-card-media {
    transform: scale(1);
    position: static;
    width: 180px;
    height: auto;
  }
}
@media (min-width: 1800px) {
  .create-grid-section__desktop-only-card {
    display: flex;
  }
}
.gallery-card__card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  display: block;
  overflow: hidden;
}
.gallery-card__link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.gallery-card__link:disabled {
  cursor: default;
}
.gallery-card__media {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-card__media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
}
.gallery-card__card-contain-media .gallery-card__media-content {
  object-fit: contain;
}
.gallery-card__media-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px);
  transform: scale(1.15);
  opacity: 0.8;
}
.gallery-card__skeleton-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.gallery-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.gallery-card__audio-icon {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}
.gallery-card__audio-player {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
}
.gallery-card__hover-cta,
.gallery-card__hover-mask,
.gallery-card__hover-overlay,
.gallery-card__hover-title {
  display: none;
}
@media (min-width: 768px) {
  .gallery-card__hover-mask {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .gallery-card__hover-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: block;
  }
  .gallery-card__hover-cta,
  .gallery-card__hover-title {
    position: absolute;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  .gallery-card__hover-title {
    left: 16px;
    right: 16px;
    bottom: 90px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-card-title);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }
  .gallery-card__hover-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  .gallery-card__hover-cta-icon {
    width: 20px;
    height: 20px;
  }
  .gallery-card__card:has(:focus-visible) .gallery-card__hover-mask,
  .gallery-card__card:hover .gallery-card__hover-mask {
    opacity: 1;
  }
  .gallery-card__card:has(:focus-visible) .gallery-card__hover-cta,
  .gallery-card__card:hover .gallery-card__hover-cta {
    opacity: 1;
    transform: translateY(0);
  }
  .gallery-card__card:has(:focus-visible) .gallery-card__hover-title,
  .gallery-card__card:hover .gallery-card__hover-title {
    opacity: 1;
    transform: translateY(0);
  }
  .gallery-card__card:has(:focus-visible) .gallery-card__hover-overlay,
  .gallery-card__card:hover .gallery-card__hover-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}
.playground-model-menu__menu-icon-wrapper {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.playground-model-menu__menu-icon-wrapper svg {
  width: 16px;
  height: 16px;
  display: block;
}
.playground-model-menu__menu-icon-emoji {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}
.create-section__section {
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.create-section__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.create-section__header h2 {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.create-section__header h2 span {
  color: var(--accent);
}
.create-section__subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}
.create-section__desktop-cta {
  display: none;
}
.create-section__mobile-cta {
  display: block;
}
.create-section__tools {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: calc(100% + 18px);
  padding-right: 18px;
}
.create-section__tools::-webkit-scrollbar {
  display: none;
}
.create-section__tool-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.create-section__tool-card:hover {
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.create-section__tool-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1 1;
  height: 96px;
  max-height: 96px;
  background: var(--surface);
}
.create-section__tool-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.create-section__tool-fallback {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.create-section__tool-body {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.create-section__tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.create-section__tool-body h3 {
  font-size: 14px;
  white-space: nowrap;
}
.create-section__tool-body div {
  width: 100%;
  min-width: 144px;
}
.create-section__tool-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.create-section__tool-arrow svg {
  width: 18px;
  display: block;
}
.create-section__tool-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}
@media (min-width: 768px) {
  .create-section__section {
    display: grid;
    grid-template-columns: minmax(350px, 0.85fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 30px;
    padding: 32px;
  }
  .create-section__header {
    justify-content: center;
    gap: 12px;
    min-width: 0;
  }
  .create-section__header h2 {
    max-width: 380px;
    font-size: max(30px, min(1vw, 44px));
    line-height: 1.5;
  }
  .create-section__subtitle {
    max-width: 360px;
    font-size: 16px;
    line-height: 1.45;
  }
  .create-section__desktop-cta {
    display: block;
    width: min(100%, 240px);
    margin-top: 8px;
  }
  .create-section__mobile-cta {
    display: none;
  }
  .create-section__tools {
    width: 100%;
    padding-right: 0;
    display: flex;
    gap: 16px;
    overflow: scroll;
  }
  .create-section__tool-card {
    min-height: 260px;
    min-width: 200px;
    width: 100%;
  }
  .create-section__tool-media {
    height: 170px;
    max-height: 170px;
  }
  .create-section__tool-body {
    padding: 16px;
  }
}
.help-card__card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, var(--accent-soft), color-mix(in srgb, var(--text) 4%, transparent) 42%),
    color-mix(in srgb, var(--text) 4%, transparent);
}
.help-card__compact {
  padding: 12px;
}
.help-card__compact .help-card__title {
  margin-bottom: 4px;
  font-size: 14px;
}
.help-card__compact .help-card__text {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.help-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.help-card__text {
  color: var(--text-muted);
}
.help-card__text,
.help-card__value {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
}
.help-card__value {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text);
  background: var(--bg);
  word-break: break-all;
  opacity: 0.92;
}
.help-card__link {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.help-card__link:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.help-card__link-full-width {
  width: 100%;
  justify-content: center;
}
.home-referral-actions__referral-actions {
  display: flex;
  width: 100%;
  gap: 10px;
}
.home-referral-actions__referral-copy {
  flex: 1 1;
}
.home-referral-actions__share-button {
  width: 52px;
  min-width: 52px;
  padding: 0;
  height: 100%;
}
:where(.user-avatar__avatar) {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  overflow: hidden;
}
.user-avatar__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.user-avatar__avatar[data-reputation-frame],
.site-header__settings-avatar:has([data-reputation-frame]) { overflow:visible; }
.user-avatar__photo:not([hidden]) ~ .user-avatar__placeholder { display:none; }
.user-avatar__placeholder {
  width: 50%;
  height: 50%;
}
.catalog-card__card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 4px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
}
.catalog-card__card-button {
  width: 100%;
  background: transparent;
  text-align: left;
  color: inherit;
}
.catalog-card__card-content-link {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.catalog-card__card-cta {
  display: none;
}
.catalog-card__card-soon {
  opacity: 0.55;
}
.catalog-card__audio-card {
  position: relative;
}
.catalog-card__audio-card .catalog-card__card-cta {
  position: relative;
  z-index: 2;
}
.catalog-card__audio-card .catalog-card__media-fallback {
  background: var(--accent-bg);
}
.catalog-card__audio-card-link {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
  background: transparent;
  border-radius: inherit;
}
.catalog-card__audio-icon {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}
.catalog-card__audio-player {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
}
.catalog-card__card:hover {
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.catalog-card__card-soon:hover {
  background: transparent;
}
.catalog-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 150px;
  width: 100%;
  aspect-ratio: 1/1;
}
.catalog-card__media-with-badge:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: min(72%, 180px);
  height: min(44%, 112px);
  pointer-events: none;
  background: radial-gradient(
    ellipse at top left,
    rgba(0, 0, 0, 0.68) 0,
    rgba(0, 0, 0, 0.46) 34%,
    rgba(0, 0, 0, 0) 72%
  );
}
.catalog-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.catalog-card__status-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: var(--premium);
  padding-bottom: 1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.catalog-card__media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-card__media-fallback {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
}
.catalog-card__media-fallback-icon {
  font-size: 40px;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 42%, transparent);
}
.catalog-card__body {
  padding: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog-card__body h3 {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-card__body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .catalog-card__card {
    padding: 8px;
  }
  .catalog-card__body {
    padding: 16px 12px;
    gap: 6px;
    flex: 1 1;
  }
  .catalog-card__body p {
    font-size: 14px;
  }
  .catalog-card__media {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .catalog-card__card-cta {
    display: block;
    padding: 0 12px 12px;
  }
  .catalog-card__card-cta-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
  }
}
.segmented-tabs__root {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.segmented-tabs__root::-webkit-scrollbar {
  display: none;
}
.segmented-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.segmented-tabs__item:not(.segmented-tabs__item-active):hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.segmented-tabs__item-active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.segmented-tabs__theme-popup {
  background: var(--bg);
}
.segmented-tabs__theme-popup .segmented-tabs__item-active {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.segmented-tabs__item-icon-only {
  width: 34px;
  padding: 0;
  gap: 0;
}
.segmented-tabs__compact {
  padding: 3px;
  border-radius: 10px;
}
.segmented-tabs__compact .segmented-tabs__item {
  min-height: 28px;
  padding: 0 9px;
  gap: 6px;
  border-radius: 7px;
  font-size: 13px;
}
.segmented-tabs__compact .segmented-tabs__item-icon-only {
  width: 28px;
  padding: 0;
}
.segmented-tabs__compact .segmented-tabs__icon,
.segmented-tabs__compact .segmented-tabs__icon svg {
  width: 14px;
  height: 14px;
}
.segmented-tabs__icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: currentColor;
}
.segmented-tabs__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.segmented-tabs__label-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.standard-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.standard-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-height: min(90dvh, 760px);
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.standard-modal__medium {
  width: min(560px, 100%);
}
.standard-modal__small {
  width: min(480px, 100%);
}
.standard-modal__large {
  width: min(680px, 100%);
}
.standard-modal__wide {
  width: min(920px, 100%);
}
.standard-modal__overlay.standard-modal__visible {
  opacity: 1;
  visibility: visible;
}
.standard-modal__panel.standard-modal__visible {
  opacity: 1;
  transform: none;
}
.standard-modal__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.standard-modal__footer {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .standard-modal__overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .standard-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 28px 20px;
    border-radius: 20px;
  }
}
.standard-modal__title {
  font-family: var(--font-card-title);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.standard-modal__subtitle {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (max-width: 767px) {
  .standard-modal__subtitle {
    font-size: 14px;
  }
}
.badge__badge {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  transform: matrix(1, 0, -0.212557, 1, 0, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge__badge-gold,
.badge__badge-premium {
  background: var(--premium);
  color: var(--premium-foreground);
}
.badge__badge-top {
  background: var(--top);
  color: var(--top-foreground);
}
.badge__badge-black {
  background: var(--bg);
  color: var(--text);
}
.badge__badge-accent {
  background: var(--badge-accent-background, var(--accent));
  color: var(--badge-accent-color, var(--accent-foreground));
}
.badge__badge-accent,
.badge__badge-muted {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  transform: none;
  white-space: nowrap;
}
.badge__badge-muted {
  background: var(--surface);
  color: var(--text-muted);
}
.badge__badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge__badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.select-menu__wrapper {
  position: relative;
}
.select-menu__wrapper > button {
  transition:
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}
.select-menu__trigger-disabled {
  opacity: 0.6;
  cursor: default;
}
.select-menu__tippy-box {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition-property: opacity, visibility !important;
}
.select-menu__tippy-box[data-animation="neuro-formula-select-menu"] {
  transform-origin: var(--select-menu-origin, top left);
}
.select-menu__tippy-box[data-placement^="top"] {
  --select-menu-origin: bottom left;
}
.select-menu__tippy-box[data-placement$="end"] {
  --select-menu-origin: top right;
}
.select-menu__tippy-box[data-placement="bottom"] {
  --select-menu-origin: top center;
}
.select-menu__tippy-box[data-placement="top"] {
  --select-menu-origin: bottom center;
}
.select-menu__tippy-box[data-placement^="top"][data-placement$="end"] {
  --select-menu-origin: bottom right;
}
.select-menu__tippy-box[data-animation="neuro-formula-select-menu"][data-state="hidden"] {
  opacity: 0;
}
.select-menu__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--surface);
  border: 0;
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
  opacity: 0;
  transform: translateY(4px);
  transform-origin: top left;
  pointer-events: none;
  max-height: min(285px, calc(100dvh - 24px));
  overflow: auto;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
    display: none;
}
.select-menu__menu-list {
  display: grid;
  gap: 4px;
}
.select-menu__menu-with-header {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.select-menu__menu-with-header .select-menu__menu-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.select-menu__menu-tippy {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.select-menu__menu-up {
  bottom: calc(100% + 10px);
  top: auto;
  transform-origin: bottom left;
}
.select-menu__menu-align-end {
  right: 0;
  left: auto;
  transform-origin: top right;
}
.select-menu__menu-up.select-menu__menu-align-end {
  transform-origin: bottom right;
}
.select-menu__menu-align-center {
  left: 50%;
  transform: translate(-50%, 4px);
  transform-origin: top center;
}
.select-menu__menu-up.select-menu__menu-align-center {
  transform-origin: bottom center;
}
.select-menu__menu-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.select-menu__menu-align-center.select-menu__menu-open {
  transform: translate(-50%);
}
.select-menu__menu-tippy.select-menu__menu-open {
  transform: none;
}
.select-menu__trigger-active {
  --menu-chevron-rotate: 180deg;
}
.select-menu__item {
  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;
}
.select-menu__item-tooltip-wrapper {
  display: block;
}
.select-menu__item-tooltip-wrapper > .select-menu__item {
  width: 100%;
}
.select-menu__item:not(.select-menu__item-disabled):focus-visible,
.select-menu__item:not(.select-menu__item-disabled):hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.select-menu__item-danger {
  color: var(--danger);
}
.select-menu__item-danger.select-menu__item-active,
.select-menu__item-danger:not(.select-menu__item-disabled):focus-visible,
.select-menu__item-danger:not(.select-menu__item-disabled):hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.select-menu__item-disabled {
  opacity: 0.45;
  cursor: default;
}
.select-menu__item-separator {
  height: 1px;
  margin: 2px 6px;
  background: var(--surface);
}
.select-menu__item-active {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.select-menu__group-title {
  padding: 8px 10px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.select-menu__group-title:not(:first-child) {
  margin-top: 4px;
}
.select-menu__item-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  flex: 0 0 20px;
}
.select-menu__item-content {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.select-menu__item-content-expanded {
  flex: 1 1;
}
.select-menu__item-title {
  min-width: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.select-menu__item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-menu__item-title-space-between {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.select-menu__item-suffix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--premium);
  font-size: 11px;
  font-weight: 700;
}
.select-menu__item-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.select-menu__item-badge {
  transform: matrix(1, 0, -0.212557, 1, 0, 0);
}
@media (min-width: 768px) {
  .select-menu__menu {
    max-height: min(400px, calc(100dvh - 24px));
  }
}
.nav-badge__badge {
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: none;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-12deg);
}
.nav-badge__badge-gold,
.nav-badge__badge-premium {
  color: var(--premium-foreground);
  background: var(--premium);
}
.nav-badge__badge-top {
  color: var(--top-foreground);
  background: var(--top);
}
.sets-contributor-card__card {
  width: 100%;
  aspect-ratio: 9/16;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 2px dashed color-mix(in srgb, var(--premium) 28%, transparent);
  background: color-mix(in srgb, var(--premium) 8%, transparent);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}
.sets-contributor-card__content {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sets-contributor-card__kicker {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--premium) 14%, transparent);
  color: var(--premium);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.sets-contributor-card__title {
  color: var(--text);
  max-width: 250px;
  font-family: var(--font-card-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.sets-contributor-card__description {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
@media (max-width: 767px) {
  .sets-contributor-card__card {
    padding: 14px;
  }
}
@media (max-width: 400px) {
  .sets-contributor-card__description {
    display: none;
  }
}
.site-header__fixed,
.site-header {
  width: 100%;
}
.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 20px 18px;
}
@property --site-header-progress {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
@property --site-header-name-visibility {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}
@media (min-width: 768px) {
  .site-header {
    height: 94px;
  }
  .site-header__shell-with-line {
    height: 146px;
  }
  .site-header__shell-compact {
    height: 70px;
  }
  .site-header__shell-compact.site-header__shell-with-line {
    height: 122px;
  }
  .site-header__fixed {
    --site-header-expanded-padding: 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    padding-block: calc(var(--site-header-expanded-padding) - (var(--site-header-expanded-padding) - 10px) * var(--site-header-progress, 0));
    background: var(--bg);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    transition:
      border-color 0.2s ease,
      background 0.2s ease;
  }
  .site-header__nav {
    padding: 0 28px;
  }
  .site-header__fixed-compact {
    --site-header-expanded-padding: 18px;
    border-bottom-color: transparent;
  }
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-header__logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  font-size: 17px;
  line-height: 1;
  white-space: normal;
}
.site-header__logo-text img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header__brand-label {
  font-family: "Founders Grotesk text Regular", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
.site-header__actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}
.site-header__support-button {
  min-width: 34px;
  height: 30px;
  padding: 3px 8px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.site-header__support-button:hover {
  color: var(--text);
}
.site-header__settings-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.site-header__settings-avatar:hover,
.site-header__settings-avatar[aria-expanded="true"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent);
}
.site-header__settings-menu-wrapper {
  display: inline-flex;
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .site-header__actions,
  .site-header__nav {
    gap: 10px;
  }
  .site-header__nav {
    flex-wrap: wrap;
  }
  .site-header__left {
    min-width: max-content;
  }
  .site-header__actions {
    margin-left: auto;
  }

  .site-header__logo-text{
    width: 80px;
  }
}
@media (max-width: 359px) {
  .site-header__support-button {
    display: none;
  }
}
.site-header__settings-menu.site-header__settings-menu {
  width: min(320px, calc(100vw - 24px));
  min-width: min(288px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: none;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  padding: 10px;
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.46);
}
.site-header__settings-menu-content {
  display: grid;
  gap: 12px;
}
.site-header__settings-menu-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border-radius: 10px;
  padding: 4px 2px 2px;
  color: inherit;
  text-decoration: none;
}
.site-header__settings-menu-identity:focus-visible {
  outline: 2px solid var(--border);
  outline-offset: 2px;
}
.site-header__settings-menu-divider {
  height: 1px;
  margin: 0 10px;
  background: var(--surface);
}
.site-header__settings-menu-avatar {
  width: 42px;
  height: 42px;
  font-size: 17px;
  font-weight: 650;
}
.site-header__settings-menu-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.site-header__settings-menu-name strong,
.site-header__settings-menu-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header__settings-menu-name strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.site-header__settings-menu-name > span {
  color: var(--text-muted);
  font-size: 12px;
}
.site-header__settings-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px 10px;
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
}
.site-header__settings-balance-value {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.site-header__settings-balance-value > span {
  color: var(--text-muted);
  font-size: 12px;
}
.site-header__settings-balance-value strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}
.site-header__settings-balance-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header__settings-balance-info {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-header__settings-balance-info svg {
  width: 16px;
  height: 16px;
}
.site-header__settings-balance-value strong span {
  color: var(--text);
  font-family: sans-serif;
}
.site-header__settings-top-up {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: filter 0.18s ease;
}
.site-header__settings-top-up svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.site-header__settings-top-up:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.site-header__subscription-balance-progress {
  grid-column: 1/-1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}
.site-header__subscription-balance-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text);
  transition: width 0.25s ease;
}
.site-header__settings-menu-links {
  display: grid;
  gap: 3px;
}
.site-header__settings-referral-card {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--text) 3.5%, transparent) 55%),
    color-mix(in srgb, var(--text) 3.5%, transparent);
}
.site-header__settings-referral-copy {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}
.site-header__settings-menu-link,
.site-header__settings-menu-logout {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}
.site-header__settings-menu-link:focus-visible,
.site-header__settings-menu-link:focus-within,
.site-header__settings-menu-link:hover,
.site-header__settings-menu-logout:focus-visible,
.site-header__settings-menu-logout:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  color: var(--text);
}
.site-header__settings-menu-link svg,
.site-header__settings-menu-logout svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.site-header__settings-menu-logout {
  min-height: 40px;
}
.site-header__settings-language-row {
  position: relative;
}
.site-header__settings-language-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-header__settings-language-value svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.site-header__settings-language-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}
.site-header__left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 40px;
  min-width: 0;
}
.site-header__desktop-menu {
  display: none;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.site-header__desktop-menu-has-right-fade {
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.site-header__nav-link {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  flex: 0 0 auto;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-header__nav-link-active,
.site-header__nav-link:hover {
  color: var(--text);
}
.site-header__nav-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.site-header__nav-badge-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}
.site-header__create-menu-wrapper {
  display: inline-flex;
  flex: 0 0 auto;
}
.site-header__create-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-header__create-chevron {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.2s ease;
}
.site-header__create-trigger-open .site-header__create-chevron {
  transform: rotate(180deg);
}
.site-header__create-menu {
  min-width: 320px;
}
.site-header__create-menu.site-header__tools-menu {
  min-width: min(560px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
}
.site-header__tools-menu [role="listbox"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.site-header__tools-menu [data-select-menu-group-title] {
  grid-column: 1/-1;
}
.site-header__tools-menu [role="option"] > span:last-child > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.site-header__create-menu svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 768px) {
  .site-header__logo-text {
    gap: 0;
    height: 34px;
    font-size: 20px;
  }
  .site-header__logo-text img {
    max-width: none;
    margin-inline-end: calc(-16px * var(--site-header-progress, 0));
    transform: scale(calc(1 - 0.32 * var(--site-header-progress, 0)));
    transform-origin: left center;
  }
  .site-header__brand-name {
    display: block;
    width: calc(var(--site-header-name-width, 172px) * var(--site-header-name-visibility, 1));
    margin-inline-start: calc(8px * var(--site-header-name-visibility, 1));
    overflow: hidden;
    opacity: var(--site-header-name-visibility, 1);
    transform: translateX(calc(-8px * (1 - var(--site-header-name-visibility, 1))));
  }
  .site-header__brand-label {
    display: block;
    width: max-content;
  }
}
@media (min-width: 1100px) {
  .site-header.site-header__shell-expanded-desktop {
    height: 94px;
  }
  .site-header__shell-expanded-desktop.site-header__shell-with-line {
    height: 146px;
  }
  .site-header__shell-expanded-desktop .site-header__fixed {
    border-bottom-color: color-mix(in srgb, var(--border) 75%, transparent);
  }
  .site-header__shell-expanded-desktop .site-header__fixed {
    --site-header-expanded-padding: 32px;
  }
  .site-header__shell-expanded-desktop + .main-container {
    --main-header-height: 94px;
  }
  .site-header__shell-expanded-desktop.site-header__shell-with-line + .main-container {
    --main-header-height: 146px;
  }
  .site-header__nav {
    gap: 24px;
  }
  .site-header__desktop-menu {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-header__desktop-menu::-webkit-scrollbar {
    display: none;
  }
}
.stories-section__section {
  margin: -4px -18px 0;
}
.stories-section__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stories-section__row::-webkit-scrollbar {
  display: none;
}
.stories-section__card {
  flex: 0 0 110px;
  border-radius: 26px;
  padding: 4px;
  border: 2px solid var(--border);
  transition: border-color 0.16s ease;
}
.stories-section__card:focus-within,
.stories-section__card:hover {
  border-color: var(--border);
}
.stories-section__card-inner {
  position: relative;
  min-height: 140px;
  border-radius: 18px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
a.stories-section__card-inner {
  color: inherit;
  text-decoration: none;
}
.stories-section__card-inner-skeleton {
  background: var(--surface);
}
.stories-section__card-inner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, black, transparent);
  pointer-events: none;
}
.stories-section__card-inner-skeleton:after {
  display: none;
}
.stories-section__emoji {
  top: 18px;
  right: 16px;
  font-size: 60px;
  line-height: 1;
}
.stories-section__emoji,
.stories-section__preview {
  position: absolute;
  filter: drop-shadow(0 10px 18px var(--accent-soft));
}
.stories-section__preview {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.stories-section__skeleton-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 6%, transparent),
    color-mix(in srgb, var(--text) 12%, transparent) 50%,
    color-mix(in srgb, var(--text) 6%, transparent)
  );
  background-size: 200% 100%;
  animation: stories-section-story-shimmer 1.4s linear infinite;
}
.stories-section__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .stories-section__section {
    margin: 10px 0 0;
  }
  .stories-section__row {
    gap: 12px;
    padding: 0 0 4px;
  }
  .stories-section__card {
    flex-basis: clamp(135px, 12vw, 170px);
    border-radius: 26px;
    padding: 5px;
  }
  .stories-section__card-inner {
    min-height: clamp(165px, 15vw, 215px);
    border-radius: 20px;
    padding: 14px;
  }
  .stories-section__preview {
    border-radius: 20px;
  }
  .stories-section__emoji {
    top: 18px;
    right: 16px;
    font-size: 64px;
  }
  .stories-section__title {
    max-width: 125px;
    font-size: 16px;
    line-height: 1.2;
  }
}
.balance__balance {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  font-family: sans-serif;
  border: 0;
  cursor: pointer;
}
.balance__balance-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
}
.balance__hold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 8px;
  height: 26px;
  background: var(--bg);
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}
.balance__hold-badge .loader {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
}
.balance__top-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  font-family: var(--font-body);
}
.mobile-model-list__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-model-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.mobile-model-list__disabled {
  opacity: 0.58;
}
.mobile-model-list__preview {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface);
}
.mobile-model-list__badge {
  flex: 0 0 auto;
  font-size: 8px;
  padding: 2px 4px;
}
.mobile-model-list__status-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--premium);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.mobile-model-list__preview-fallback,
.mobile-model-list__preview-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mobile-model-list__preview-media {
  object-fit: cover;
}
.mobile-model-list__preview-fallback {
  display: grid;
  place-items: center;
  background: var(--surface);
}
.mobile-model-list__preview-fallback-icon {
  width: 20px;
  height: 20px;
  color: color-mix(in srgb, var(--text) 42%, transparent);
}
.mobile-model-list__audio-preview .mobile-model-list__preview-fallback {
  background: var(--accent-bg);
  color: var(--accent);
}
.mobile-model-list__audio-preview svg {
  width: 24px;
  height: 24px;
}
.mobile-model-list__text {
  display: flex;
  flex: 1 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.mobile-model-list__title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.mobile-model-list__title {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-model-list__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mobile-model-list__chevron {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}
.mobile-model-list__preview-skeleton {
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 1.35;
  border-radius: 11px;
  background: var(--surface);
}
.mobile-model-list__skeleton-text {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 8px;
}
.mobile-model-list__description-skeleton,
.mobile-model-list__title-skeleton {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
}
.mobile-model-list__title-skeleton {
  width: 55%;
}
.mobile-model-list__description-skeleton {
  width: 82%;
}
.mobile-generate-bar__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
  z-index: 40;
  pointer-events: none;
}
.mobile-generate-bar__visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-generate-bar__inner {
  margin: 0 auto;
}
.mobile-generate-bar__actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
@media (min-width: 1100px) {
  .mobile-generate-bar__bar {
    display: none;
  }
}
.video-player__player {
  position: relative;
  display: grid;
  place-items: center;
  width: min(80vw, calc(80vh * var(--video-ratio)));
  width: min(80vw, calc(80dvh * var(--video-ratio)));
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
  isolation: isolate;
  container: video-player/inline-size;
}
.video-player__video {
  display: block;
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: contain;
}
.video-player__center-play {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.video-player__center-play:hover {
  background: var(--text);
}
.video-player__center-play svg {
  width: 28px;
  height: 28px;
}
.video-player__center-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.video-player__controls {
  position: absolute;
  top: var(--video-controls-top, auto);
  right: 10px;
  bottom: var(--video-controls-bottom, 10px);
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.video-player__button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 36px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.video-player__button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.video-player__button:active {
  opacity: 0.75;
}
.video-player__button svg {
  width: 20px;
  height: 20px;
}
.video-player__play {
  flex-basis: 36px;
  width: 36px;
  color: var(--text-muted);
  background: var(--text);
}
.video-player__play:hover {
  background: var(--text);
}
.video-player__time {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.video-player__range {
  --progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  min-width: 0;
  margin: 12px 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--text) var(--progress), color-mix(in srgb, var(--text) 28%, transparent) var(--progress));
  cursor: pointer;
  touch-action: none;
}
.video-player__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}
.video-player__range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
}
.video-player__range:disabled {
  cursor: default;
  opacity: 0.4;
}
.video-player__seek {
  flex: 1 1 36px;
  width: 36px;
}
.video-player__volume {
  flex: 0 0 56px;
  width: 56px;
}
.video-player__button:focus-visible,
.video-player__range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.video-player__message {
  position: absolute;
  inset: 20% 12px auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  text-align: center;
  font-size: 13px;
}
.video-player__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  text-align: center;
}
.video-player__error button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.video-player__loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentcolor;
  border-radius: 50%;
  animation: video-player-video-player-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .video-player__loader {
    animation: none;
  }
}
@container video-player (max-width: 380px) {
  .video-player__controls {
    right: 8px;
    bottom: var(--video-controls-bottom, 8px);
    left: 8px;
    flex-wrap: wrap;
    gap: 4px;
    border-radius: 20px;
    padding: 6px 8px;
  }
  .video-player__seek {
    order: -1;
    flex: 1 0 100%;
    width: 100%;
    margin: 8px 0;
  }
  .video-player__play {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .video-player__time {
    flex: 1 1;
    font-size: 10px;
  }
  .video-player__volume {
    flex-basis: 44px;
    width: 44px;
  }
  .video-player__button:not(.video-player__play) {
    flex-basis: 28px;
    width: 28px;
    height: 32px;
    padding: 4px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .video-player__volume {
    display: none;
  }
  @container video-player (min-width: 300px) and (max-width: 380px) {
    .video-player__controls {
      flex-wrap: nowrap;
      border-radius: 999px;
      gap: 8px;
    }
    .video-player__seek {
      order: 0;
      flex: 1 1 36px;
      width: 36px;
      margin: 12px 0;
    }
    .video-player__time {
      flex: 0 0 auto;
    }
  }
}
.video-player__player:is(:fullscreen, :-webkit-full-screen) .video-player__controls {
  top: auto;
  right: max(16px, env(safe-area-inset-right));
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
}
.avatars-page-client__page {
  position: relative;
  isolation: isolate;
  gap: 64px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .avatars-page-client__page {
    gap: 128px;
  }
}
.avatars-page-client__hero-and-steps,
.avatars-page-client__section,
.avatars-page-client__steps-section {
  position: relative;
  z-index: 1;
  width: 100%;
}
.avatars-page-client__guide-video-player.avatars-page-client__guide-video-player {
  width: calc(100% - 40px);
  max-width: 860px;
  margin: 48px auto 0;
  border-radius: var(--radius-xl);
}
.avatars-page-client__guide-video-player video {
  width: 100%;
  aspect-ratio: 16/9;
}
.avatars-page-client__title {
  max-width: 510px;
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.5;
}
.avatars-page-client__photo-collage img,
.avatars-page-client__result-card img {
  object-fit: cover;
}
.avatars-page-client__comparison-frame img {
  object-fit: cover;
  object-position: center 15%;
}
.avatars-page-client__section-header {
  max-width: 700px;
  margin-bottom: 30px;
}
.avatars-page-client__section .avatars-page-client__title {
  margin: 0 0 14px;
}
.avatars-page-client__photos-section > div > p,
.avatars-page-client__section-header p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.avatars-page-client__results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.avatars-page-client__result-card {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.avatars-page-client__result-card:after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  content: "";
}
.avatars-page-client__result-card figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.avatars-page-client__comparison-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: center;
  gap: 48px;
}
.avatars-page-client__comparison-section .avatars-page-client__section-header {
  margin-bottom: 0;
}
.avatars-page-client__comparison-card {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.avatars-page-client__comparison-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}
.avatars-page-client__comparison-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}
.avatars-page-client__comparison-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--comparison));
}
.avatars-page-client__comparison-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--comparison);
  width: 2px;
  background: var(--text);
  transform: translateX(-50%);
  pointer-events: none;
}
.avatars-page-client__comparison-divider:after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--accent-foreground);
  content: "↔";
  font-size: 18px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.avatars-page-client__comparison-frame input {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  opacity: 0;
}
.avatars-page-client__comparison-caption {
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
.avatars-page-client__photos-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 44px;
}
.avatars-page-client__photo-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.avatars-page-client__photo-collage > div {
  position: relative;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.avatars-page-client__photo-collage > div:nth-child(2) {
  transform: translateY(28px);
}
@media (max-width: 900px) {
  .avatars-page-client__comparison-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .avatars-page-client__comparison-card {
    max-width: 560px;
    margin-inline: auto;
  }
  .avatars-page-client__photos-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .avatars-page-client__title {
    font-size: 28px;
    line-height: 1.4;
  }
  .avatars-page-client__section-header {
    margin-bottom: 20px;
  }
  .avatars-page-client__photos-section > div > p,
  .avatars-page-client__section-header p {
    font-size: 14px;
  }
  .avatars-page-client__results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .avatars-page-client__result-card figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
  }
  .avatars-page-client__comparison-top {
    flex-direction: column;
    padding: 14px;
  }
  .avatars-page-client__photo-collage > div:nth-child(2) {
    transform: translateY(12px);
  }
}
.popular-models-section__section {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.popular-models-section__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.popular-models-section__item {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.popular-models-section__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--text);
}
.popular-models-section__icon svg {
  width: 22px;
  height: 22px;
}
.popular-models-section__action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.popular-models-section__link {
  min-height: 36px;
  width: fit-content;
  padding: 6px 10px;
  color: var(--text-dim);
}
.popular-models-section__link svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 900px) {
  .popular-models-section__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .popular-models-section__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .popular-models-section__item {
    min-height: 62px;
    padding: 10px;
    font-size: 12px;
  }
}
.settings__container {
  min-height: calc(100vh - 200px);
  min-width: 0;
}
@media (min-width: 1100px) {
  .settings__container {
    padding: 0 28px;
  }
}
.settings__page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.settings__install-prompt {
  position: fixed;
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 39;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  width: min(440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: settings-settings-install-prompt-in 0.3s ease-out;
}
@media (max-width: 767px) {
  .settings__install-prompt {
    display: grid;
  }
}
.settings__install-prompt-content {
  min-width: 0;
}
.settings__install-prompt-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.settings__install-prompt-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.settings__install-prompt-action {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.settings__install-prompt-action svg {
  width: 18px;
  height: 18px;
}
.settings__install-prompt-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
}
.settings__install-prompt-close svg {
  width: 18px;
  height: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .settings__install-prompt {
    animation: none;
  }
}
.settings__side-spacer {
  display: none;
}
@media (min-width: 1100px) {
  .settings__page {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, 640px) minmax(160px, 1fr);
    align-items: start;
    gap: 24px;
  }
  .settings__side-spacer {
    display: block;
  }
}
.settings__settings-card {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .settings__settings-card {
    margin-bottom: 32px;
    gap: 24px;
  }
}
.settings__blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings__avatar-wrapper {
  flex-shrink: 0;
}
.settings__avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  font-family: sans-serif;
  overflow: hidden;
}
.settings__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.settings__name {
  width: min(100%, 260px);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.settings__email,
.settings__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings__email {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 13px;
}
.settings__partner-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.settings__partner-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings__partner-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.settings__partner-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.settings__partner-stat-value-tokens {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.settings__partner-stat-icon {
  width: 14px;
  height: 27px;
  flex-shrink: 0;
}
.settings__promo-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings__promo-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings__promo-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.settings__stats-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-social-connections__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-social-connections__skeleton-section {
  margin-top: 0;
}
.settings-social-connections__card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.settings-social-connections__provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: transparent;
  border-radius: 0;
  width: 100%;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 62.5%, transparent);
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}
.settings-social-connections__provider:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-social-connections__provider:last-child {
  border-bottom: none;
}
.settings-social-connections__provider-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.settings-social-connections__provider-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-social-connections__provider-icon-wrapper,
.settings-social-connections__telegram-wrapper {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 25%, transparent);
}
.settings-social-connections__provider-svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--text);
}
.settings-social-connections__telegram-wrapper .settings-social-connections__provider-svg {
  color: #2aabee;
}
.settings-social-connections__provider-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.settings-social-connections__provider-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.settings-social-connections__provider-description {
  max-width: 180px;
  line-height: 1.2;
}
.settings-social-connections__provider-description,
.settings-social-connections__push-description {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-social-connections__push-description {
  max-width: 100%;
  line-height: 1.35;
  text-align: left;
}
.settings-social-connections__push-provider {
  gap: 12px;
}
.settings-social-connections__push-provider .settings-social-connections__provider-left,
.settings-social-connections__push-provider .settings-social-connections__provider-text {
  flex: 1 1;
  overflow: hidden;
}
.settings-social-connections__push-provider .settings-social-connections__provider-icon-wrapper {
  flex: 0 0 44px;
}
.settings-social-connections__push-provider .settings-social-connections__provider-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .settings-social-connections__provider-left {
    gap: 12px;
  }
}
.settings-social-connections__provider-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.settings-social-connections__provider-status {
  color: var(--text-muted);
}
.settings-social-connections__push-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface);
  transition: background 0.2s ease;
}
.settings-social-connections__push-toggle-active {
  background: var(--accent);
}
.settings-social-connections__push-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}
.settings-social-connections__push-toggle-active .settings-social-connections__push-toggle-thumb {
  transform: translateX(18px);
}
.settings-social-connections__provider-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.settings-social-connections__provider:hover:not(:disabled)
  .settings-social-connections__provider-link-action {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-social-connections__link-icon {
  width: 16px;
  height: 16px;
}
.settings-social-connections__connected-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-social-connections__connected-badge svg {
  width: 14px;
  height: 14px;
}
.settings-social-connections__provider .loader {
  width: 20px;
  height: 20px;
  border-width: 2px;
  border-color: var(--text) var(--border) var(--border);
}
.settings-social-connections__skeleton-title {
  width: 180px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 6%, transparent),
    color-mix(in srgb, var(--text) 12%, transparent) 50%,
    color-mix(in srgb, var(--text) 6%, transparent)
  );
  background-size: 200% 100%;
  animation: settings-social-connections-settings-social-skeleton 1.4s linear infinite;
}
.settings-social-connections__support-card.settings-social-connections__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);
}
.settings-title__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.settings-generation-models__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-generation-models__card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.settings-generation-models__model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.settings-generation-models__model-row:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-generation-models__model-row:active:not(:disabled) {
  transform: scale(0.995);
}
.settings-generation-models__model-row:last-child {
  border-bottom: none;
}
.settings-generation-models__model-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.settings-generation-models__icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 25%, transparent);
  color: var(--text);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.settings-generation-models__model-row:hover .settings-generation-models__icon-wrapper {
  transform: scale(1.05);
}
.settings-generation-models__model-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-generation-models__model-icon-wrapper svg {
  width: 20px;
  height: 20px;
  display: block;
}
.settings-generation-models__spark-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.settings-generation-models__model-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.settings-generation-models__model-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-generation-models__model-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.settings-generation-models__dot-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
}
.settings-generation-models__model-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.settings-generation-models__status-badge {
  display: inline-flex;
}
@media (max-width: 767px) {
  .settings-generation-models__status-badge {
    display: none;
  }
}
.settings-generation-models__chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0.4;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.settings-generation-models__model-row:hover .settings-generation-models__chevron {
  opacity: 0.8;
  transform: translateX(3px);
}
.settings-generation-models__skeleton-section {
  margin-top: 0;
}
.settings-generation-models__skeleton-title {
  width: 180px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 6%, transparent),
    color-mix(in srgb, var(--text) 12%, transparent) 50%,
    color-mix(in srgb, var(--text) 6%, transparent)
  );
  background-size: 200% 100%;
  animation: settings-generation-models-settings-social-skeleton 1.4s linear infinite;
}
.settings-menu__menu {
  width: 100%;
  min-width: 0;
}
.settings-menu__list {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.settings-menu__list::-webkit-scrollbar {
  display: none;
}
.settings-menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}
.settings-menu__item:hover {
  color: var(--text);
}
.settings-menu__item:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-menu__item-active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-menu__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
@media (min-width: 1100px) {
  .settings-menu__menu {
    position: sticky;
    top: 96px;
    width: fit-content;
    margin-left: auto;
  }
  .settings-menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }
  .settings-menu__item {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    text-align: left;
  }
}
.settings-subscription__page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-subscription__page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.settings-subscription__page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.settings-subscription__skeletons {
  display: grid;
  gap: 18px;
}
.settings-subscription__skeletons div {
  height: 132px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 2.5%, transparent),
    color-mix(in srgb, var(--text) 5%, transparent),
    color-mix(in srgb, var(--text) 2.5%, transparent)
  );
  background-size: 200% 100%;
  animation: settings-subscription-subscription-skeleton 1.4s linear infinite;
}
.settings-subscription__skeletons div:last-child {
  height: 210px;
}
.settings-subscription__section-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.settings-subscription__canceled-subscription {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--danger) 65%, transparent),
    0 0 28px color-mix(in srgb, var(--danger) 12%, transparent);
}
.settings-subscription__section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.settings-subscription__section-label svg {
  width: 16px;
  height: 16px;
}
.settings-subscription__plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
}
.settings-subscription__balance-card,
.settings-subscription__plan-card {
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.settings-subscription__balance-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.settings-subscription__plan-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.settings-subscription__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.settings-subscription__title-row h2 {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-subscription__plan-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.settings-subscription__plan-action {
  flex: 0 0 auto;
}
.settings-subscription__plan-benefits {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.settings-subscription__plan-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
.settings-subscription__plan-benefit-excluded,
.settings-subscription__plan-benefit-locked {
  color: var(--text-muted) !important;
}
.settings-subscription__plan-benefit-upgrade {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.settings-subscription__plan-benefit-upgrade:hover {
  text-decoration: underline;
}
.settings-subscription__plan-benefit-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}
.settings-subscription__plan-benefit-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.settings-subscription__plan-benefit-included .settings-subscription__plan-benefit-icon {
  color: var(--text);
}
.settings-subscription__plan-benefit-excluded .settings-subscription__plan-benefit-icon {
  color: color-mix(in srgb, var(--text) 34%, transparent);
}
.settings-subscription__value-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.settings-subscription__balance-value {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.settings-subscription__balance-value svg {
  width: 14px;
  height: 27px;
  color: var(--accent);
}
.settings-subscription__top-up-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.settings-subscription__top-up-button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-subscription__top-up-button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.settings-subscription__details-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1.5px solid;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.settings-subscription__details-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-subscription__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.settings-subscription__details div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 62.5%, transparent);
}
.settings-subscription__details div:nth-child(odd) {
  border-right: 1px solid color-mix(in srgb, var(--border) 62.5%, transparent);
}
.settings-subscription__details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.settings-subscription__details dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.settings-subscription__details dd {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-subscription__pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
}
.settings-subscription__pending button {
  flex: 0 0 auto;
  border: 0;
  color: var(--accent);
  background: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.settings-subscription__actions {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}
.settings-subscription__renewal-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--text-muted);
  background: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
}
.settings-subscription__pending button:disabled,
.settings-subscription__renewal-action:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 767px) {
  .settings-subscription__page {
    gap: 14px;
  }
  .settings-subscription__section-card {
    padding: 12px;
  }
  .settings-subscription__plan-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 16px;
  }
  .settings-subscription__balance-card {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }
  .settings-subscription__plan-action {
    width: 100%;
  }
  .settings-subscription__top-up-button {
    align-self: stretch;
  }
  .settings-subscription__details {
    grid-template-columns: 1fr;
  }
  .settings-subscription__details div:nth-child(odd) {
    border-right: 0;
  }
  .settings-subscription__details div:nth-last-child(2) {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 62.5%, transparent);
  }
  .settings-subscription__pending {
    align-items: flex-start;
    flex-direction: column;
  }
}
.promo-code-form__form {
  display: flex;
  gap: 8px;
}
.promo-code-form__input {
  flex: 1 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
}
.promo-code-form__input::placeholder {
  color: var(--text-muted);
  font-weight: inherit;
  opacity: 1;
}
.promo-code-form__button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.promo-code-form__button:disabled {
  cursor: default;
  opacity: 0.5;
}
@media (max-width: 520px) {
  .promo-code-form__form {
    flex-direction: column;
  }
}
.max-tier-selector__selector {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px 12px 12px;
  border-radius: 10px;
  background: var(--surface);
}
.max-tier-selector__embedded {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.max-tier-selector__track {
  position: relative;
  width: 100%;
  height: 30px;
}
.max-tier-selector__rail {
  position: absolute;
  top: 50%;
  right: 14px;
  left: 14px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface);
  transform: translateY(-50%);
}
.max-tier-selector__thumb {
  position: absolute;
  top: 1px;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-foreground);
  background: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition:
    left 0.16s ease,
    transform 0.16s ease;
}
.max-tier-selector__thumb svg {
  width: 15px;
  height: 15px;
}
.max-tier-selector__thumb path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.max-tier-selector__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 30px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.max-tier-selector__range::-webkit-slider-runnable-track {
  height: 30px;
  background: transparent;
}
.max-tier-selector__range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  appearance: none;
  border: 0;
  background: transparent;
}
.max-tier-selector__range::-moz-range-track {
  height: 30px;
  background: transparent;
}
.max-tier-selector__range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}
.max-tier-selector__range:focus-visible {
  outline: none;
}
.max-tier-selector__track:has(.max-tier-selector__range:focus-visible) .max-tier-selector__thumb {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 0 0 3px color-mix(in srgb, var(--text) 22%, transparent);
}
.max-tier-selector__labels {
  display: grid;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.max-tier-selector__labels > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  opacity: 0.48;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.max-tier-selector__label-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: inherit;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
}
.max-tier-selector__labels .max-tier-selector__active-label {
  color: var(--text);
  opacity: 1;
}
.delete-confirmation-modal__header {
  display: grid;
}
.delete-confirmation-modal__title {
  margin: 0;
  text-align: center;
}
.delete-confirmation-modal__description {
  text-align: center;
}
.delete-confirmation-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.delete-confirmation-modal__danger-button-wrapper:after {
  background: var(--danger-line) !important;
}
.delete-confirmation-modal__danger-button {
  background: var(--danger) !important;
  color: var(--danger-foreground);
}
@media (max-width: 767px) {
  .delete-confirmation-modal__actions {
    grid-template-columns: 1fr;
  }
}
.subscription-cancel-modal__reasons {
  display: grid;
  gap: 8px;
}
.subscription-cancel-modal__reason {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.subscription-cancel-modal__reason-selected {
  color: var(--text);
  background: var(--accent-soft);
}
.promo-code-section__section {
  margin-top: 16px;
}
.promo-code-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.promo-code-section__summary::-webkit-details-marker {
  display: none;
}
.promo-code-section__summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.promo-code-section__section[open] .promo-code-section__summary svg {
  transform: rotate(180deg);
}
.promo-code-section__content {
  margin-top: 10px;
}
@media (max-width: 767px) {
  .promo-code-section__section {
    margin-top: 18px;
  }
}
.faq-section__faq-section {
  width: 100%;
  margin: 0 auto;
}
.faq-section__faq-section h2 {
  max-width: 90%;
  margin: 0 auto 18px;
  font-family: var(--font-card-title);
  font-size: 22px;
  text-align: center;
}
.faq-section__faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-section__faq-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.faq-section__faq-item-open {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.faq-section__faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.faq-section__faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq-section__faq-item-open .faq-section__faq-chevron {
  transform: rotate(180deg);
}
.faq-section__faq-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}
.faq-section__faq-answer-wrap {
  display: grid;
  overflow: hidden;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.faq-section__faq-item-open .faq-section__faq-answer-wrap {
  grid-template-rows: 1fr;
}
.faq-section__faq-answer {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.faq-section__faq-answer a {
  color: var(--text);
  text-decoration: none;
}
.faq-section__faq-answer a:after {
  content: " →";
}
.faq-section__faq-item-open .faq-section__faq-answer {
  padding-bottom: 18px;
}
@media (min-width: 768px) {
  .faq-section__faq-section {
    max-width: 640px;
    width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }
  .faq-section__faq-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .faq-section__faq-question {
    padding: 22px 24px;
    font-size: 16px;
  }
  .faq-section__faq-answer {
    padding-left: 24px;
    padding-right: 24px;
    font-size: 15px;
  }
  .faq-section__faq-item-open .faq-section__faq-answer {
    padding-bottom: 22px;
  }
}
.settings-public-profile__header {
  margin-bottom: 0;
}
.settings-public-profile__header .settings-public-profile__identity-content {
  gap: 4px;
}
.settings-public-profile__avatar-wrapper {
  position: relative;
}
.settings-public-profile__avatar-button {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.settings-public-profile__avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.15s;
}
.settings-public-profile__avatar-button:focus-visible .settings-public-profile__avatar-overlay,
.settings-public-profile__avatar-button:hover .settings-public-profile__avatar-overlay,
.settings-public-profile__visible {
  opacity: 1;
}
.settings-public-profile__avatar-overlay .loader,
.settings-public-profile__name-row .loader {
  border-color: var(--border);
  border-top-color: var(--text);
}
.settings-public-profile__avatar-edit-icon {
  width: 24px;
  height: 24px;
}
.settings-public-profile__remove-avatar {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  opacity: 0;
}
.settings-public-profile__avatar-wrapper:focus-within .settings-public-profile__remove-avatar,
.settings-public-profile__avatar-wrapper:hover .settings-public-profile__remove-avatar {
  opacity: 1;
}
.settings-public-profile__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.settings-public-profile__name {
  width: auto;
  max-width: 260px;
}
.settings-public-profile__edit-button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.settings-public-profile__edit-button:hover:not(:disabled) {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-public-profile__edit-button:focus-visible,
.settings-public-profile__remove-avatar:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.settings-public-profile__edit-button:disabled {
  opacity: 0.5;
}
.settings-public-profile__icon {
  width: 18px;
  height: 18px;
}
.settings-public-profile__field,
.settings-public-profile__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-public-profile__form {
  align-items: flex-start;
  gap: 24px;
}
.settings-public-profile__field {
  width: 100%;
  font-size: 14px;
}
.settings-public-profile__field input,
.settings-public-profile__field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.settings-public-profile__field textarea {
  resize: none;
}
.settings-public-profile__field input::placeholder,
.settings-public-profile__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.settings-public-profile__field input:focus-visible,
.settings-public-profile__field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.settings-public-profile__field [aria-invalid="true"] {
  border-color: var(--red, var(--danger));
}
@media (hover: none) {
  .settings-public-profile__avatar-overlay,
  .settings-public-profile__remove-avatar {
    opacity: 1;
  }
}
.settings-public-profile__modal-header h2 {
  padding-inline: 24px;
}
.settings-public-profile__tabs {
  width: 100%;
}
.settings-public-profile__tabs > button {
  flex: 1 1;
}
.settings-public-profile__identity-row,
.settings-public-profile__social-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.settings-public-profile__identity-row .settings-public-profile__field {
  min-width: 0;
}
.settings-public-profile__identity-row input,
.settings-public-profile__social-input-row input {
  height: 48px;
  min-width: 0;
}
.settings-public-profile__modal-avatar-button {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}
.settings-public-profile__modal-avatar {
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  font-size: 24px;
}
.settings-public-profile__social-fields {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.settings-public-profile__social-fields legend {
  margin-bottom: 8px;
  font-size: 14px;
}
.settings-public-profile__social-fields .settings-public-profile__social-hint {
  margin: 0 0 12px;
  text-align: left;
}
.settings-public-profile__social-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-public-profile__platform-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  color: var(--text-muted);
}
.settings-public-profile__platform-icon svg {
  width: 22px;
  height: 22px;
}
.settings-public-profile__field-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
@media (max-width: 767px) {
  .settings-public-profile__modal-header h2,
  .settings-public-profile__modal-header p {
    text-align: left;
  }
  .settings-public-profile__modal-header h2 {
    padding-left: 0;
  }
}
.extended-plans__grid {
  display: flex;
  gap: 8px;
  flex-direction: row-reverse;
}
.extended-plans__badge {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  font-weight: 600;
}
.extended-plans__badge svg {
  width: 16px;
  height: 16px;
}
.extended-plans__card-bg {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.extended-plans__card {
  background: var(--surface);
  border: none;
  padding: 16px 18px;
  display: grid;
  gap: 0;
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
.extended-plans__card-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
}
.extended-plans__card-wrapper:first-child,
.extended-plans__card-wrapper:nth-child(2) {
  margin-top: -32px;
}
.extended-plans__card-wrapper:first-child {
  padding: 2px;
  background: var(--top);
}
.extended-plans__card-wrapper:first-child .extended-plans__badge {
  color: var(--top-foreground);
}
.extended-plans__card-wrapper:nth-child(2) {
  padding: 2px;
  background: var(--accent);
}
.extended-plans__card-wrapper:nth-child(2) .extended-plans__badge {
  color: var(--accent-foreground);
}
.extended-plans__card-wrapper:first-child .extended-plans__card {
  background: linear-gradient(color-mix(in srgb, var(--top) 9%, transparent), color-mix(in srgb, var(--top) 30%, transparent)), none;
}
.extended-plans__card-wrapper:nth-child(2) .extended-plans__card {
  background:
    linear-gradient(
      color-mix(in srgb, var(--accent) 8%, transparent),
      color-mix(in srgb, var(--accent) 15%, transparent)
    ),
    none;
}
.extended-plans__card-wrapper:nth-child(3) .extended-plans__card {
  background: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent), color-mix(in srgb, var(--accent) 30%, transparent)), none;
}
.extended-plans__card-wrapper:nth-child(4) .extended-plans__card {
  background: linear-gradient(color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)), none;
}
.extended-plans__card-wrapper.extended-plans__neutral-card-wrapper .extended-plans__card {
  background: var(--surface);
}
.extended-plans__card-header {
  display: grid;
  gap: 12px;
}
.extended-plans__card-skeleton {
  width: 100%;
  min-width: 0;
  min-height: 430px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 4%, transparent),
    color-mix(in srgb, var(--text) 9%, transparent) 50%,
    color-mix(in srgb, var(--text) 4%, transparent)
  );
  background-size: 200% 100%;
  animation: extended-plans-extended-plan-skeleton 1.4s ease-in-out infinite;
}
.extended-plans__title-row h2 {
  font-size: 20px;
}
.extended-plans__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.extended-plans__description {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.extended-plans__price-block {
  display: flex;
  flex-direction: column;
}
.extended-plans__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.extended-plans__price {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}
.extended-plans__price-period {
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.extended-plans__old-price {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.65;
  flex-shrink: 0;
}
.extended-plans__usage-block {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
}
.extended-plans__usage-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.extended-plans__credits-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}
.extended-plans__balance-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 16px;
  text-align: center;
}
.extended-plans__credits-row strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.extended-plans__usage-details {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}
.extended-plans__usage-details p {
  min-width: 0;
  margin: 0;
}
.extended-plans__fixed-tier-amount {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.extended-plans__fixed-tier-amount svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.extended-plans__divider {
  height: 1px;
  background: var(--surface);
  margin-top: 12px;
  margin-bottom: 16px;
}
.extended-plans__features-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.extended-plans__feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}
.extended-plans__feature-excluded {
  color: var(--text-muted);
}
.extended-plans__feature-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.extended-plans__feature-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.extended-plans__feature-included .extended-plans__feature-icon {
  color: var(--text);
}
.extended-plans__feature-excluded .extended-plans__feature-icon {
  color: color-mix(in srgb, var(--text) 34%, transparent);
}
.extended-plans__seedance-block {
  margin-top: 20px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.extended-plans__seedance-header {
  display: grid;
  padding: 12px 12px 0;
}
.extended-plans__seedance-header strong {
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}
.extended-plans__seedance-models {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.extended-plans__seedance-model {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  color: inherit;
  background: var(--surface);
  font-size: 12px;
  text-decoration: none;
}
.extended-plans__seedance-model + .extended-plans__seedance-model {
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.extended-plans__seedance-model-unavailable {
  color: var(--text-muted);
  background: var(--surface);
}
.extended-plans__seedance-model-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-right: auto;
  font-weight: 600;
  white-space: nowrap;
}
.extended-plans__seedance-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.extended-plans__seedance-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.extended-plans__preview .extended-plans__card-wrapper:first-child {
  margin-top: 0;
  padding: 2px;
  background: var(--accent);
}
.extended-plans__preview .extended-plans__card-wrapper:first-child .extended-plans__badge {
  color: var(--accent-foreground);
}
.extended-plans__preview .extended-plans__card-wrapper:first-child .extended-plans__card {
  background: linear-gradient(
    color-mix(in srgb, var(--accent) 8%, transparent),
    color-mix(in srgb, var(--accent) 15%, transparent)
  );
}
.masonry__container {
  position: relative;
}
.masonry__grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, var(--pinterest-grid-min-column-width, 250px)), 1fr)
  );
  align-items: flex-start;
  gap: 8px;
  transition: opacity 0.3s ease;
}
.masonry__grid-ordered {
  align-items: start;
}
.masonry__grid-premeasure {
  grid-template-rows: repeat(var(--pinterest-grid-skeleton-rows, 1), auto);
  grid-auto-rows: 0;
  row-gap: 0;
  overflow: hidden;
}
.masonry__grid-balanced-preview {
  overflow: hidden;
}
.masonry__column {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.masonry__grid-loading {
  opacity: 0.4;
  pointer-events: none;
}
.masonry__view-all-overlay {
  position: absolute;
  bottom: -1px;
  left: -18px;
  right: -18px;
  height: 180px;
  background: linear-gradient(to top, var(--bg) 20%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px 18px;
  pointer-events: none;
  z-index: 2;
}
.masonry__view-all-btn {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 12px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  pointer-events: all;
}
.masonry__view-all-btn:active {
  transform: scale(0.97);
}
.masonry__view-all-btn svg {
  opacity: 1;
}
.masonry__pagination-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 24px 0 8px;
  color: var(--text);
  font-size: 14px;
}
.masonry__pagination-loader .loader {
  border-color: var(--text) var(--border) var(--border);
}
.composer__panel {
  width: var(--generation-composer-width, min(100%, 440px));
  min-height: 64px;
  max-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-areas: "add input submit";
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
  color: var(--text);
  pointer-events: auto;
  overflow: hidden;
  transition:
    width 0.22s ease,
    max-height 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.composer__expanded {
  width: var(--generation-composer-expanded-width, min(100%, 720px));
  max-height: 116px;
  grid-template-areas: "add input input" "settings settings submit";
  grid-template-rows: auto auto;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}
.composer__expanded.composer__with-media-controls {
  grid-template-areas: "add input media submit" "settings settings media submit";
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.composer__controls-visible {
  overflow: visible;
}
.composer__media-controls {
  grid-area: media;
  align-self: stretch;
}
.composer__settings-row {
  grid-area: settings;
  min-width: 0;
  display: none;
  align-items: center;
  gap: 8px;
}
.composer__expanded .composer__settings-row {
  display: flex;
}
.composer__parameter-controls {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.composer__parameter-controls::-webkit-scrollbar {
  display: none;
}
.composer__parameter-controls > * {
  flex: 0 0 auto;
}
.composer__add-card-wrapper {
  grid-area: add;
}
.composer__add-card {
  position: relative;
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-dim);
}
.composer__add-card:disabled {
  cursor: default;
  opacity: 0.5;
}
.composer__add-card svg {
  width: 18px;
  height: 18px;
}
.composer__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.composer__media-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}
.composer__input {
  grid-area: input;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text);
}
.composer__input::placeholder {
  color: var(--text-muted);
}
.composer__model-slot {
  display: none;
  flex: 0 0 auto;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.composer__expanded .composer__model-slot {
  display: block;
}
.composer__controls-visible .composer__model-slot {
  opacity: 1;
  pointer-events: auto;
}
.composer__model-wrapper {
  max-width: 260px;
}
.composer__model-button {
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}
.composer__model-button-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer__model-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--text-muted);
  transform: rotate(var(--menu-chevron-rotate, 0deg));
  transition: transform 0.16s ease;
}
.composer__model-menu {
  width: min(380px, calc(100vw - 24px));
}
.composer__submit-button {
  grid-area: submit;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: rgb(107 113 116);
}
.composer__expanded .composer__submit-button {
  align-self: end;
}
.composer__submit-button:not(:disabled),
.composer__submit-button[data-submitting="true"] {
  background: var(--accent);
  color: var(--accent-foreground);
}
.composer__submit-button:disabled {
  cursor: default;
}
.composer__submit-button .loader {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: var(--accent-foreground) color-mix(in srgb, var(--border) 24%, transparent) color-mix(in srgb, var(--border) 24%, transparent);
}
.composer__submit-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 767px) {
  .composer__expanded.composer__with-media-controls {
    max-height: 220px;
    grid-template-areas: "add input submit" "settings settings settings" "media media media";
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
  }
  .composer__expanded.composer__with-media-controls .composer__submit-button {
    align-self: center;
  }
}
.fast-generation__root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 40px)) scale(0.2);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.fast-generation__visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (max-width: 1099px) {
  .fast-generation__root {
    display: none;
  }
}
.marketing-generation-dock__root {
  position: relative;
  z-index: 20;
  width: min(100%, 1010px);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.marketing-generation-dock__panel {
  --generation-composer-width: 100%;
  --generation-composer-expanded-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
.marketing-generation-dock__type-tabs {
  width: 82px;
  flex: 0 0 auto;
  padding: 4px;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
}
.marketing-generation-dock__type-tab {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
}
.marketing-generation-dock__type-tab svg {
  width: 18px;
  height: 18px;
}
.marketing-generation-dock__type-tab-active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
}
.marketing-generation-dock__media-slots {
  height: 100%;
  display: flex;
  gap: 8px;
}
.marketing-generation-dock__media-slot {
  position: relative;
  width: clamp(76px, 9vw, 100px);
  height: 100%;
  min-height: 88px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--surface);
}
.marketing-generation-dock__media-slot-button {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  color: var(--text);
  text-align: left;
}
.marketing-generation-dock__media-slot-button:disabled {
  cursor: default;
}
.marketing-generation-dock__add-icon {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text-dim);
}
.marketing-generation-dock__add-icon svg {
  width: 15px;
  height: 15px;
}
.marketing-generation-dock__media-label {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.marketing-generation-dock__media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marketing-generation-dock__filled:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}
.marketing-generation-dock__remove-button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
}
.marketing-generation-dock__remove-button svg {
  width: 12px;
  height: 12px;
}
@media (max-width: 767px) {
  .marketing-generation-dock__media-slots {
    width: 100%;
    height: 72px;
  }
  .marketing-generation-dock__media-slot {
    width: auto;
    min-height: 72px;
    flex: 1 1;
  }
}
.library-grid__section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.library-grid__audio-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.library-grid__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.library-grid__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.library-grid__empty-state {
  grid-column: 1/-1;
  padding: 22px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.library-grid__desktop-hidden {
  display: contents;
}
.library-grid__mobile-only {
  display: block;
}
.library-grid__desktop-only {
  display: none;
}
.library-grid__category-switcher {
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.library-grid__category-switcher::-webkit-scrollbar {
  display: none;
}
.library-grid__category-switcher-skeleton {
  display: flex;
  gap: 6px;
  max-width: 100%;
  width: 400px;
  height: 42px;
  overflow: hidden;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
}
.library-grid__category-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
}
.library-grid__category-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.library-grid__category-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.library-grid__category-title {
  color: var(--text);
  font-family: var(--font-card-title);
  font-size: 16px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.library-grid__category-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.library-grid__category-subtitle-skeleton,
.library-grid__category-title-skeleton {
  border-radius: 999px;
  background: var(--surface);
}
.library-grid__category-title-skeleton {
  width: 220px;
  height: 28px;
}
.library-grid__category-subtitle-skeleton {
  width: min(520px, 80%);
  height: 16px;
}
@media (min-width: 768px) {
  .library-grid__grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .library-grid__category-groups {
    gap: 38px;
    padding-top: 38px;
  }
  .library-grid__category-group {
    gap: 18px;
  }
  .library-grid__category-title {
    font-size: 24px;
  }
  .library-grid__category-subtitle {
    font-size: 16px;
  }
  .library-grid__desktop-hidden,
  .library-grid__mobile-only {
    display: none;
  }
  .library-grid__desktop-only {
    display: block;
  }
}
.library-grid__card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 4px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
}
.library-grid__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: 150px;
  width: 100%;
  aspect-ratio: 1/1;
}
.library-grid__media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
}
.library-grid__body {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (min-width: 768px) {
  .library-grid__card {
    padding: 8px;
  }
  .library-grid__body {
    padding: 16px 12px;
    flex: 1 1;
  }
  .library-grid__body p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .library-grid__media {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}
.library-grid__line-placeholder,
.library-grid__text-placeholder {
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
}
.library-grid__text-placeholder {
  width: 60%;
  margin-bottom: 8px;
}
.library-grid__line-placeholder {
  width: 88%;
}
.marketing-banner__section {
  width: 100%;
}
.marketing-banner__banner {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 56px 300px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 16%, transparent),
    inset 34px 0 54px -26px color-mix(in srgb, var(--accent) 88%, transparent),
    inset -34px 0 54px -26px color-mix(in srgb, var(--accent) 88%, transparent),
    inset 0 34px 54px -26px color-mix(in srgb, var(--accent) 88%, transparent),
    inset 0 -34px 54px -26px color-mix(in srgb, var(--accent) 88%, transparent),
    inset 0 0 70px color-mix(in srgb, var(--accent) 14%, transparent);
  isolation: isolate;
}
.marketing-banner__two-previews {
  padding-inline: 230px;
}
.marketing-banner__two-previews .marketing-banner__content {
  max-width: 600px;
}
.marketing-banner__two-previews .marketing-banner__description,
.marketing-banner__two-previews .marketing-banner__title {
  max-width: 520px;
}
.marketing-banner__banner:before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 6.5%, transparent) 1px, transparent 0),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 6.5%, transparent) 1px, transparent 0);
  background-size: 46px 46px;
  content: "";
  opacity: 0.72;
}
.marketing-banner__banner:after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface) 12%, transparent),
    color-mix(in srgb, var(--surface) 94%, transparent) 35%,
    color-mix(in srgb, var(--surface) 94%, transparent) 65%,
    color-mix(in srgb, var(--surface) 12%, transparent)
  );
  content: "";
}
.marketing-banner__content {
  position: relative;
  z-index: 3;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.marketing-banner__title {
  max-width: 440px;
  margin: 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.25;
  font-weight: 800;
}
.marketing-banner__description {
  max-width: 390px;
  margin: 14px 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}
.marketing-banner__champagne {
  border-color: color-mix(in srgb, var(--premium) 43.92%, transparent);
  background: var(--surface);
  box-shadow: inset 0 0 100px color-mix(in srgb, var(--premium) 9.412%, transparent);
}
.marketing-banner__champagne:before {
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--premium) 14.9%, transparent), transparent 70%);
  opacity: 1;
}
.marketing-banner__champagne:after {
  z-index: 2;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 6.275%, transparent), color-mix(in srgb, var(--surface) 96.08%, transparent) 31%, color-mix(in srgb, var(--surface) 96.08%, transparent) 69%, color-mix(in srgb, var(--surface) 6.275%, transparent));
}
.marketing-banner__champagne .marketing-banner__title {
  color: var(--premium);
}
.marketing-banner__champagne .marketing-banner__description {
  color: color-mix(in srgb, var(--premium) 67.84%, transparent);
  margin-bottom: 16px;
}
.marketing-banner__stats {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 14px 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--premium) 5.098%, transparent);
}
.marketing-banner__stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  text-align: center;
}
.marketing-banner__stat + .marketing-banner__stat {
  border-left: 1px solid color-mix(in srgb, var(--premium) 20.78%, transparent);
}
.marketing-banner__stat strong {
  color: var(--premium);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.marketing-banner__stat span {
  color: color-mix(in srgb, var(--premium) 67.84%, transparent);
  font-size: 12px;
  line-height: 1.25;
}
.marketing-banner__earning-card {
  position: absolute;
  display: flex;
  width: 108px;
  min-height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--premium) 14.12%, transparent), transparent 46%), var(--surface);
  box-shadow: 0 18px 38px #0007;
  text-align: center;
}
.marketing-banner__earning-card strong {
  color: var(--premium);
  font-family: var(--font-card-title);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.marketing-banner__earning-card span {
  color: var(--premium);
  font-size: 11px;
  line-height: 1.2;
}
.marketing-banner__earning-card:first-child {
  top: 42%;
  left: 4%;
  z-index: 2;
  transform: rotate(-9deg);
}
.marketing-banner__earning-card:nth-child(2) {
  top: 10%;
  left: 27%;
  z-index: 4;
  transform: rotate(5deg);
}
.marketing-banner__earning-card:nth-child(3) {
  right: 27%;
  bottom: 10%;
  z-index: 3;
  transform: rotate(-5deg);
}
.marketing-banner__earning-card:nth-child(4) {
  top: 25%;
  right: 4%;
  z-index: 1;
  transform: rotate(10deg);
}
.marketing-banner__earning-card:nth-child(5) {
  bottom: 8%;
  left: 17%;
  z-index: 1;
  transform: rotate(7deg);
}
.marketing-banner__earning-card:nth-child(6) {
  top: 4%;
  left: 47%;
  z-index: 1;
  transform: rotate(-6deg);
}
.marketing-banner__earning-card:nth-child(7) {
  right: 47%;
  bottom: 4%;
  z-index: 1;
  transform: rotate(6deg);
}
.marketing-banner__earning-card:nth-child(8) {
  top: 52%;
  right: 16%;
  z-index: 1;
  transform: rotate(-8deg);
}
.marketing-banner__action {
  gap: 9px;
  padding-inline: 22px;
}
.marketing-banner__action svg {
  width: 18px;
  height: 18px;
}
.marketing-banner__visuals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.marketing-banner__preview {
  position: absolute;
  width: 190px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.54);
}
.marketing-banner__preview-image {
  object-fit: cover;
}
.marketing-banner__preview-left-back {
  left: -24px;
  top: 68px;
  transform: rotate(-8deg);
}
.marketing-banner__preview-left-front {
  left: 105px;
  top: 34px;
  transform: rotate(5deg);
}
.marketing-banner__preview-right-front {
  right: 105px;
  top: 34px;
  transform: rotate(-5deg);
}
.marketing-banner__preview-right-back {
  right: -24px;
  top: 68px;
  transform: rotate(8deg);
}
.marketing-banner__preview-left-single {
  left: 24px;
  top: 48px;
  transform: rotate(-6deg);
}
.marketing-banner__preview-right-single {
  right: 24px;
  top: 48px;
  transform: rotate(6deg);
}
@media (max-width: 1050px) {
  .marketing-banner__banner {
    padding-inline: 230px;
  }
  .marketing-banner__two-previews {
    padding-inline: 190px;
  }
  .marketing-banner__preview {
    width: 160px;
  }
  .marketing-banner__preview-left-front {
    left: 60px;
  }
  .marketing-banner__preview-right-front {
    right: 60px;
  }
}
@media (max-width: 767px) {
  .marketing-banner__banner {
    min-height: 460px;
    align-items: start;
    padding: 38px 20px 190px;
    border-width: 2px;
    border-color: transparent;
    border-radius: var(--radius-lg);
    background:
      linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)) bottom / 100% 85% no-repeat
        border-box;
    box-shadow: inset 0 -72px 110px -30px color-mix(in srgb, var(--accent) 90%, transparent);
  }
  .marketing-banner__champagne {
    min-height: 0;
    border: 2px solid transparent;
    background:
      linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(180deg, transparent, color-mix(in srgb, var(--premium) 43.92%, transparent)) bottom / 100% 85% no-repeat border-box;
    box-shadow: inset 0 -72px 110px -30px color-mix(in srgb, var(--premium) 25.1%, transparent);
    padding: 38px 20px;
  }
  .marketing-banner__two-previews {
    padding-inline: 20px;
  }
  .marketing-banner__banner:after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 98%, transparent),
      color-mix(in srgb, var(--surface) 88%, transparent) 57%,
      color-mix(in srgb, var(--surface) 12%, transparent)
    );
  }
  .marketing-banner__title {
    max-width: 300px;
    font-size: 24px;
    line-height: 1.5;
  }
  .marketing-banner__description {
    max-width: 330px;
    margin: 12px 0 20px;
    font-size: 14px;
  }
  .marketing-banner__champagne .marketing-banner__description {
    margin: 12px 0;
  }
  .marketing-banner__champagne .marketing-banner__stats {
    margin-bottom: 16px;
    padding: 12px 6px;
  }
  .marketing-banner__champagne .marketing-banner__stat {
    gap: 3px;
    padding-inline: 4px;
  }
  .marketing-banner__champagne .marketing-banner__stat strong {
    font-size: 19px;
  }
  .marketing-banner__champagne .marketing-banner__stat span {
    font-size: 10px;
  }
  .marketing-banner__preview {
    width: 132px;
    top: auto;
    bottom: -28px;
    border-radius: 14px;
  }
  .marketing-banner__preview-left-back {
    left: -6px;
    transform: rotate(-8deg);
  }
  .marketing-banner__preview-left-front {
    left: calc(50% - 104px);
    bottom: -10px;
    transform: rotate(-5deg);
  }
  .marketing-banner__preview-right-front {
    right: calc(50% - 104px);
    bottom: -10px;
    transform: rotate(5deg);
  }
  .marketing-banner__preview-right-back {
    right: -6px;
    transform: rotate(8deg);
  }
  .marketing-banner__preview-left-single {
    left: 24px;
  }
  .marketing-banner__preview-right-single {
    right: 24px;
  }
  .marketing-banner__earning-card {
    display: none;
  }
  .marketing-banner__champagne:after {
    z-index: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96.08%, transparent), color-mix(in srgb, var(--surface) 92.16%, transparent) 57%, transparent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .marketing-banner__preview-left-front {
    animation: marketing-banner-marketing-float 6s ease-in-out infinite;
  }
  .marketing-banner__preview-right-front {
    animation: marketing-banner-marketing-float 6s ease-in-out -3s infinite reverse;
  }
}
.partner-section__card,
.partner-section__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partner-section__card {
  width: 100%;
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
}
.partner-section__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.partner-section__title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-section__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 420px;
}
.partner-section__actions {
  width: 100%;
}
.partner-section__actions svg {
  width: 20px;
  height: 20px;
  display: block;
}
@media (min-width: 768px) {
  .partner-section__card {
    min-height: 210px;
    padding: 34px 36px;
    border-radius: var(--radius-xl);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    background: var(--surface);
  }
  .partner-section__content {
    max-width: 620px;
    gap: 14px;
  }
  .partner-section__eyebrow {
    font-size: 13px;
  }
  .partner-section__title {
    font-size: max(30px, min(1vw, 44px));
    line-height: 0.98;
    gap: 12px;
  }
  .partner-section__title svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .partner-section__description {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.5;
  }
  .partner-section__actions {
    width: min(100%, 320px);
    flex-shrink: 0;
  }
}
.tool-generation-form__uploads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}
.tool-generation-form__slot {
  position: relative;
  flex: 1 1 180px;
  max-width: 300px;
  min-width: 0;
}
.tool-generation-form__preview,
.tool-generation-form__upload.tool-generation-form__upload {
  width: 100%;
  min-height: 240px;
  border-radius: 22px;
  padding: 24px 16px;
}
.tool-generation-form__upload.tool-generation-form__upload {
  background: var(--surface);
  opacity: 1;
}
.tool-generation-form__upload.tool-generation-form__upload:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.tool-generation-form__upload.tool-generation-form__upload:has(button:disabled) {
  background: var(--surface);
}
.tool-generation-form__upload.tool-generation-form__upload > button:disabled {
  opacity: 0.5;
}
.tool-generation-form__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.tool-generation-form__preview img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 12px;
}
.tool-generation-form__preview span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.tool-generation-form__params {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 767px) {
  .tool-generation-form__slot {
    flex-basis: 130px;
  }
  .tool-generation-form__preview,
  .tool-generation-form__upload.tool-generation-form__upload {
    min-height: 220px;
    padding: 20px 12px;
  }
}
.models-prices-list__container {
  margin: 0 auto;
  width: 100%;
}
.models-prices-list__table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.models-prices-list__table-scroll::-webkit-scrollbar {
  display: none;
}
.models-prices-list__table {
  display: grid;
  min-width: max-content;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.models-prices-list__row-group {
  display: contents;
}
.models-prices-list__row-group:last-child .models-prices-list__cell {
  border-bottom: 0;
}
.models-prices-list__cell {
  min-height: 72px;
  padding: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 87.5%, transparent);
  background: var(--surface);
}
.models-prices-list__corner-cell {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  background: var(--surface);
}
.models-prices-list__corner-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.models-prices-list__corner-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.25;
}
.models-prices-list__tier-cell {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%), color-mix(in srgb, var(--text) 3.5%, transparent);
}
.models-prices-list__tier-cell-active {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), color-mix(in srgb, var(--accent) 4.5%, transparent);
}
.models-prices-list__tier-badge {
  width: fit-content;
  align-self: flex-start;
}
.models-prices-list__tier-badge-hidden {
  opacity: 0;
}
.models-prices-list__tier-name {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.models-prices-list__tier-price {
  margin: -4px 0 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
}
.models-prices-list__price-period {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.models-prices-list__select-button-wrapper {
  margin-top: auto;
}
.models-prices-list__model-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}
.models-prices-list__icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.models-prices-list__model-icon-wrapper {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.models-prices-list__model-icon-wrapper svg {
  width: 100%;
  height: 100%;
}
.models-prices-list__spark-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.models-prices-list__model-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.models-prices-list__name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.models-prices-list__price {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.models-prices-list__value-cell {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.models-prices-list__value-cell svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}
.models-prices-list__expand-button {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.models-prices-list__expand-button:hover {
  color: var(--text);
}
.models-prices-list__expand-icon {
  width: 14px;
  height: 14px;
  display: block;
}
@media (min-width: 768px) {
  .models-prices-list__table-scroll,
  .models-prices-list__table {
    border-radius: var(--radius-xl);
  }
  .models-prices-list__cell {
    padding: 18px;
  }
}
.pricing-tier-list__tiers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-tier-list__tier-row {
  --tier-accent: color-mix(in srgb, var(--text) 55%, transparent);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.pricing-tier-list__tier-row:nth-child(2) {
  --tier-accent: color-mix(in srgb, var(--accent) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 4%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)), var(--surface);
}
.pricing-tier-list__tier-row:nth-child(3) {
  --tier-accent: color-mix(in srgb, var(--accent) 90%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 16%, transparent)), var(--surface);
}
.pricing-tier-list__tier-row:nth-child(4) {
  --tier-accent: var(--accent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 5%, transparent),
      color-mix(in srgb, var(--accent) 13%, transparent)
    ),
    var(--surface);
}
.pricing-tier-list__tier-row:nth-child(5) {
  --tier-accent: color-mix(in srgb, var(--top) 90%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--top) 6%, transparent), color-mix(in srgb, var(--top) 16%, transparent)), var(--surface);
}
.pricing-tier-list__neutral-lowest-tier .pricing-tier-list__tier-row:nth-child(2) {
  --tier-accent: color-mix(in srgb, var(--accent) 90%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 16%, transparent)), var(--surface);
}
.pricing-tier-list__neutral-lowest-tier .pricing-tier-list__tier-row:nth-child(3) {
  --tier-accent: var(--accent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 5%, transparent),
      color-mix(in srgb, var(--accent) 13%, transparent)
    ),
    var(--surface);
}
.pricing-tier-list__max-tier-row {
  --tier-accent: color-mix(in srgb, var(--top) 90%, transparent);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--top) 6%, transparent), color-mix(in srgb, var(--top) 16%, transparent)), var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
.pricing-tier-list__max-tier-button {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.pricing-tier-list__max-tier-selector {
  padding: 0 16px 16px;
}
.pricing-tier-list__max-tier-row-active {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent),
    inset 0 0 0 2px var(--tier-accent);
}
.pricing-tier-list__top-tier-styles .pricing-tier-list__tier-row:first-child {
  --tier-accent: color-mix(in srgb, var(--accent) 90%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--accent) 16%, transparent)), var(--surface);
}
.pricing-tier-list__top-tier-styles .pricing-tier-list__tier-row:nth-child(2) {
  --tier-accent: var(--accent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 5%, transparent),
      color-mix(in srgb, var(--accent) 13%, transparent)
    ),
    var(--surface);
}
.pricing-tier-list__top-tier-styles .pricing-tier-list__tier-row:nth-child(3) {
  --tier-accent: color-mix(in srgb, var(--top) 90%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--top) 6%, transparent), color-mix(in srgb, var(--top) 16%, transparent)), var(--surface);
}
.pricing-tier-list__tier-skeleton {
  height: 68px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 4%, transparent),
    color-mix(in srgb, var(--text) 8%, transparent) 50%,
    color-mix(in srgb, var(--text) 4%, transparent)
  );
  background-size: 200% 100%;
  animation: pricing-tier-list-tier-skeleton-shift 1.4s ease-in-out infinite;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.pricing-tier-list__tier-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pricing-tier-list__tier-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pricing-tier-list__tier-name {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-tier-list__tier-name-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pricing-tier-list__tier-name-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pricing-tier-list__tier-limit-badge {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.65;
  cursor: pointer;
  margin-left: 2px;
}
.pricing-tier-list__tier-limit-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pricing-tier-list__tier-limit-tooltip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.35;
}
.pricing-tier-list__tier-description {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.pricing-tier-list__tier-token-description {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.pricing-tier-list__tier-token-amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-tier-list__balance-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.pricing-tier-list__token-period {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-tier-list__tier-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.pricing-tier-list__tier-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-tier-list__tier-price {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.pricing-tier-list__price-period {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.pricing-tier-list__old-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}
.pricing-tier-list__tier-row.pricing-tier-list__tier-row-active {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent),
    inset 0 0 0 2px var(--tier-accent);
}
.pricing-tier-list__tier-row.pricing-tier-list__tier-row-active .pricing-tier-list__tier-description {
  color: var(--text);
}
@media (max-width: 767px) {
  .pricing-tier-list__tier-description,
  .pricing-tier-list__tier-price {
    font-size: 18px;
  }
  .pricing-tier-list__old-price {
    font-size: 13px;
  }
}
@media (max-width: 379px) {
  .pricing-tier-list__tier-status-badge {
    display: none;
  }
}
.token-purchase-modal__header {
  padding: 0 42px;
  text-align: center;
}
.token-purchase-modal__header h2 {
  margin: 0;
}
.token-purchase-modal__tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.token-purchase-modal__tier-skeleton,
.token-purchase-modal__tier {
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.token-purchase-modal__tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 3.5%, transparent);
}
.token-purchase-modal__tier-popular {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--accent) 13%, transparent),
      color-mix(in srgb, var(--accent) 3%, transparent)
    ),
    var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent);
}
.token-purchase-modal__tier-info {
  min-width: 0;
}
.token-purchase-modal__tier-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.token-purchase-modal__tier-heading > strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-card-title);
  font-size: 20px;
  line-height: 1;
}
.token-purchase-modal__tier-heading > strong svg {
  width: 14px;
  height: 14px;
}
.token-purchase-modal__badge,
.token-purchase-modal__discount,
.token-purchase-modal__unit-price {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}
.token-purchase-modal__unit-price {
  background: var(--surface);
  color: var(--text-dim);
}
.token-purchase-modal__discount {
  background: color-mix(in srgb, var(--top) 16%, transparent);
  color: var(--top);
}
.token-purchase-modal__badge {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.token-purchase-modal__usage-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.token-purchase-modal__usage-details p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}
.token-purchase-modal__usage-details p span {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 700;
}
.token-purchase-modal__tier-purchase {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  border-left: 1px solid color-mix(in srgb, var(--border) 87.5%, transparent);
  padding-left: 16px;
}
.token-purchase-modal__tier-price {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
}
.token-purchase-modal__tier-price span {
  color: var(--top);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: line-through;
}
.token-purchase-modal__tier-price strong {
  font-family: var(--font-card-title);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}
.token-purchase-modal__buy-button {
  width: 100%;
}
.token-purchase-modal__tier-skeleton {
  height: 104px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 3.5%, transparent),
    color-mix(in srgb, var(--text) 7.5%, transparent) 50%,
    color-mix(in srgb, var(--text) 3.5%, transparent)
  );
  background-size: 200% 100%;
  animation: token-purchase-modal-skeleton 1.4s ease-in-out infinite;
}
.token-purchase-modal__disclaimer {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  opacity: 0.65;
}
.token-purchase-modal__disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.token-purchase-modal__tier-purchase .loader {
  width: 18px;
  height: 18px;
}
@media (max-width: 767px) {
  .token-purchase-modal__header {
    padding: 0 38px;
  }
  .token-purchase-modal__tier {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }
  .token-purchase-modal__tier-heading > strong {
    font-size: 19px;
  }
  .token-purchase-modal__tier-purchase {
    gap: 8px;
    align-self: auto;
    border-top: 1px solid color-mix(in srgb, var(--border) 87.5%, transparent);
    border-left: 0;
    padding: 10px 0 0;
  }
  .token-purchase-modal__buy-button {
    width: 100%;
  }
  .token-purchase-modal__tier-skeleton {
    height: 98px;
  }
}
.settings-history__section {
  display: grid;
  gap: 12px;
}
.settings-history__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
}
.settings-history__tabs button {
  min-height: 38px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}
.settings-history__tabs button:disabled {
  cursor: default;
}
.settings-history__tabs .settings-history__tab-active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-history__list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.settings-history__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.settings-history__row:last-child {
  border-bottom: 0;
}
.settings-history__row-pending {
  background: radial-gradient(circle at left top, color-mix(in srgb, var(--premium) 10%, transparent), transparent 110px);
}
.settings-history__row-pending .settings-history__preview {
  color: var(--premium);
  background: color-mix(in srgb, var(--premium) 12%, transparent);
}
.settings-history__row-pending .settings-history__amount strong {
  color: var(--premium);
}
.settings-history__preview {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
}
.settings-history__preview > * {
  grid-area: 1/1;
}
.settings-history__preview svg {
  display: block;
  width: 20px;
  height: 20px;
}
.settings-history__row-content {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.settings-history__row-content span,
.settings-history__row-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-history__row-content strong {
  font-size: 14px;
  font-weight: 650;
}
.settings-history__row-content span {
  color: var(--text-muted);
  font-size: 11px;
}
.settings-history__amount {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.settings-history__amount strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.settings-history__amount > span {
  color: var(--text-muted);
  font-size: 10px;
}
.settings-history__amount .settings-history__token-icon {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}
.settings-history__amount-positive strong {
  color: var(--accent);
}
.settings-history__row-action {
  display: grid;
  justify-items: end;
}
.settings-history__row-action > * {
  grid-area: 1/1;
}
.settings-history__amount,
.settings-history__cta {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.settings-history__cta {
  align-self: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 34px;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
}
.settings-history__row:focus-within .settings-history__row-action-with-cta .settings-history__amount,
.settings-history__row:hover .settings-history__row-action-with-cta .settings-history__amount {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
}
.settings-history__row:focus-within .settings-history__row-action-with-cta .settings-history__cta,
.settings-history__row:hover .settings-history__row-action-with-cta .settings-history__cta {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.settings-history__skeleton {
  height: 74px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 37.5%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 2.5%, transparent),
    color-mix(in srgb, var(--text) 4%, transparent),
    color-mix(in srgb, var(--text) 2.5%, transparent)
  );
  background-size: 200% 100%;
  animation: settings-history-history-skeleton 1.4s linear infinite;
}
.settings-history__load-more {
  min-height: 42px;
  justify-self: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
}
.settings-history__load-more:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.settings-history__load-more:disabled {
  opacity: 0.6;
  cursor: default;
}
@media (max-width: 520px) {
  .settings-history__row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 12px;
  }
  .settings-history__preview {
    width: 38px;
    height: 38px;
  }
}
@media (hover: none) {
  .settings-history__row-action-with-cta .settings-history__amount {
    opacity: 0;
    pointer-events: none;
  }
  .settings-history__row-action-with-cta .settings-history__cta {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
@media (hover: none) and (max-width: 520px) {
  .settings-history__generation-action.settings-history__row-action-with-cta .settings-history__amount {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .settings-history__generation-action.settings-history__row-action-with-cta .settings-history__cta {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .settings-history__skeleton {
    animation: none;
  }
}
.pagination__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px 0;
}
.pagination__pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 13px;
}
.pagination__pagination button:hover {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}
.pagination__pagination button[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}
.pagination__pagination button:disabled {
  opacity: 0.25;
  cursor: default;
}
.pagination__pagination > span {
  color: var(--text-muted);
}
.partner-reach-promo__partner-reach-promo {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(7, 16, 11, 0.76), rgba(7, 16, 11, 0.84)),
    url("/assets/images/profile/partner-reach-option-02.webp") 50% / cover no-repeat;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 16%, transparent),
    inset 36px 0 110px -28px color-mix(in srgb, var(--accent) 45%, transparent),
    inset -36px 0 110px -28px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 0 130px color-mix(in srgb, var(--accent) 10%, transparent);
}
.partner-reach-promo__partner-reach-promo:after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, color-mix(in srgb, var(--surface) 12%, transparent), color-mix(in srgb, var(--surface) 42%, transparent));
  content: "";
}
.partner-reach-promo__partner-reach-promo-header {
  display: grid;
  gap: 8px;
}
.partner-reach-promo__partner-reach-promo-deadline,
.partner-reach-promo__partner-reach-promo-title {
  margin: 0;
}
.partner-reach-promo__partner-reach-promo-title {
  min-width: 0;
  width: 100%;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}
.partner-reach-promo__partner-reach-promo-rewards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.partner-reach-promo__partner-reach-promo-reward {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
}
.partner-reach-promo__partner-reach-promo-reward + .partner-reach-promo__partner-reach-promo-reward {
  border-top: 1px solid var(--border);
}
.partner-reach-promo__partner-reach-promo-reward span {
  color: var(--text);
  font-size: 13px;
}
.partner-reach-promo__partner-reach-promo-reward strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}
.partner-reach-promo__partner-reach-promo-deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
}
.partner-reach-promo__partner-reach-promo-deadline-icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.partner-reach-promo__partner-reach-promo-cta {
  width: 100%;
}
/* Formula metric artwork. Cabinet, profile and reward receipts use these four tokens. */
:root {
  --formula-icon-credits: url("/assets/images/coin.png");
  --formula-icon-xp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14 1-12 13h8l-1 9 13-15h-9z'/%3E%3C/svg%3E");
  --formula-icon-level: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 12 8-7 8 7M4 20l8-7 8 7'/%3E%3C/svg%3E");
  --formula-icon-reputation: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M6 4h12l4 6-10 12L2 10zM2 10h20M9 4l-2 6 5 12 5-12-2-6'/%3E%3C/svg%3E");
}
.formula-metric {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: var(--metric-image) center / contain no-repeat;
  vertical-align: -.12em;
}
.formula-metric--level { --metric-image: var(--formula-icon-level); }
.formula-metric--reputation { --metric-image: var(--formula-icon-reputation); }
.formula-metric--xp { --metric-image: var(--formula-icon-xp); }
.formula-coin {
  background: var(--formula-icon-credits) center / contain no-repeat;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: -0.125em;
}

/* Provider logos share the same local library as the live Composer. */
.formula-site .formula-model-icon { display:inline-block; flex:0 0 20px; width:20px; height:20px; max-width:none; object-fit:contain; vertical-align:middle; }
.formula-site .formula-model-label { display:inline-flex; align-items:center; gap:6px; }
.formula-site [data-selected-model-icon] { display:inline-flex; align-items:center; margin-right:6px; }
.formula-site [data-selected-model-icon]:empty { display:none; }
.formula-site .mobile-model-list__title-line > .formula-model-icon { margin-right:6px; }

/* Ready results stay compact, including CULT's mobile toast viewport. */
.cult-toast-viewport:has(> .cult-toast-item[data-toast-id^="composer-"][data-toast-id*="-result-"][data-front="true"]) {
  width: 185px;
}
.cult-toast-item[data-toast-id^="composer-"][data-toast-id*="-result-"] {
  right: 0;
  left: auto;
  width: 185px;
  max-width: calc(100vw - 32px);
}
.cult-toast-item[data-toast-id^="composer-"][data-toast-id*="-result-"] .cult-toast-panel {
  gap: 6px;
}
.cult-toast-item[data-toast-id^="composer-"][data-toast-id*="-result-"] .cult-toast-actions {
  justify-content: flex-start;
}
