@font-face {
  font-family: "Pretendard Variable";
  src: url("/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PretendardVariable";
  src: url("/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SUIT Variable";
  src: url("/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "SUIT";
  src: url("/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "ChosunGu";
  src: url("/ChosunGu.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "?????";
  src: url("/ChosunGu.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "MoneygraphyTTF";
  src: url("/Moneygraphy-Pixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Moneygraphy-Pixel";
  src: url("/Moneygraphy-Pixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Galmuri14";
  src: url("/Galmuri14.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Galmuri";
  src: url("/Galmuri14.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "GalmuriMono11";
  src: url("/GalmuriMono11.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Galmuri Mono 11";
  src: url("/GalmuriMono11.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Bookk Myungjo";
  src: url("/BookkMyungjo_Light.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "BookkMyungjo";
  src: url("/BookkMyungjo_Light.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nanum Myeongjo";
  src: url("/NanumMyeongjoBold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "NanumMyeongjo";
  src: url("/NanumMyeongjoBold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "나눔명조";
  src: url("/NanumMyeongjoBold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "NanumSquareRoundOTF";
  src: url("/NanumSquareRoundOTFB.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Zen Serif";
  src: url("/ZEN-SERIF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "ZEN SERIF TTF";
  src: url("/ZEN-SERIF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "젠세리프";
  src: url("/ZEN-SERIF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --text: #f4f4f4;
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #ffffff;
  --accent-weak: rgba(255, 255, 255, 0.14);
  --index-header-side-width: 92px;
  --index-header-row-top: 48px;
  --index-header-row-bottom: 40px;
  --index-header-height: 88px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.preview-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

body.saved-modal-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.hue-popover-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.image-crop-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "PretendardVariable", sans-serif;
}

.designer-page {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.58);
  --accent: #111111;
  --accent-weak: rgba(0, 0, 0, 0.08);
  --designer-action-bar-height: 56px;
}

.index-page {
  --index-header-row-top: 48px;
  --index-header-row-bottom: 0px;
  --index-header-height: 48px;
  overflow-x: hidden;
}

.index-page.is-style-depth {
  --index-header-row-top: 48px;
  --index-header-height: 48px;
  overflow: hidden;
}

.index-page.is-cards-depth {
  --index-header-row-top: 48px;
  --index-header-height: 48px;
  overflow: hidden;
}

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

.app-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.index-page .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--index-header-height) 0 132px;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.index-page.is-style-depth .app-shell {
  padding-top: var(--index-header-height);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.index-page.is-cards-depth .app-shell {
  padding-top: var(--index-header-height);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.index-page .index-header,
.index-page .filter-top {
  width: 100%;
  left: 0;
  right: 0;
  transform: none;
}

.index-page .main-hue-popover {
  left: 0;
}

.index-page .style-depth-panel,
.index-page .style-depth-grid,
.index-page #templateGrid,
.index-page .template-grid {
  overflow-x: hidden;
}

.designer-page .app-shell {
  padding-top: calc(var(--index-header-height) + var(--designer-action-bar-height) + 20px);
}

.designer-page #designerGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.index-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--index-header-height);
  margin: 0;
  padding: 0 16px 0;
  background: #000;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.index-page .index-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.72) 56%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.index-page .index-header > * {
  position: relative;
  z-index: 1;
}

.index-header-top {
  height: var(--index-header-row-top);
  display: flex;
  align-items: center;
  column-gap: 8px;
  padding-top: 16px;
  padding-bottom: 4px;
}

.index-page .index-header-top {
  padding-top: 4px;
  padding-bottom: 0;
}

.index-header-bottom {
  height: var(--index-header-row-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-page .index-header-bottom {
  display: none;
}

.top-edge-tabs {
  position: fixed;
  top: var(--index-header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 216px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(4, 54px);
  align-items: center;
  justify-items: center;
  gap: 0;
  z-index: 60;
  pointer-events: none;
}

.top-edge-tab {
  width: 54px;
  height: 14px;
  display: block;
  opacity: 0;
  transition: none;
}

.top-edge-tab.is-active {
  opacity: 1;
}

.index-logo-box {
  width: auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  flex: 0 0 auto;
}

.index-page .index-logo-box {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 32px;
}

.index-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.header-upgrade-wrap {
  margin-left: 8px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.header-upgrade-btn {
  width: auto;
  min-width: 0;
}

.index-page .header-upgrade-wrap {
  display: none;
}

.credit-pill {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  color: #0a1014;
}

.credit-label {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: #0a1014;
}

.credit-value {
  margin: 0;
  font-family: "Pretendard Variable", "PretendardVariable", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: #0a1014;
}

.credit-add-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-add-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.credit-add-btn:hover {
  background: transparent;
  opacity: 0.82;
}

.ratio-filter-wrap {
  width: auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: 0 20px;
  gap: 0;
}

.ratio-filter-tabs {
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.ratio-filter-tabs::-webkit-scrollbar {
  display: none;
}

@keyframes initialSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(224, 230, 238, 0.94) 0%,
    rgba(238, 243, 249, 0.96) 50%,
    rgba(224, 230, 238, 0.94) 100%
  );
  background-size: 220% 100%;
  animation: initialSkeletonShimmer 1.1s linear infinite;
}

.ratio-filter-tabs.is-loading {
  pointer-events: none;
}

.ratio-filter-skeleton-item {
  flex: 0 0 72px;
  width: 72px;
  height: 32px;
  min-height: 32px;
  border-radius: 6px;
  display: block;
}

.ratio-filter-btn {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
  min-height: 32px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  opacity: 0.3;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.ratio-filter-btn::after {
  content: none;
}

.ratio-filter-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask-image: var(--ratio-icon-url);
  mask-image: var(--ratio-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex: 0 0 20px;
}

.ratio-filter-label {
  display: block;
  max-width: none;
  opacity: 1;
  filter: none;
  transform: none;
  overflow: visible;
  white-space: nowrap;
  color: #0a1014;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ratio-filter-btn:hover {
  background: transparent;
  color: inherit;
  opacity: 0.46;
}

.ratio-filter-btn.active {
  background: transparent;
  color: inherit;
  opacity: 1;
  min-width: 72px;
  flex: 0 0 72px;
  padding: 0;
  gap: 4px;
}

.index-page .ratio-filter-icon-img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 20px;
}

.ratio-filter-btn.active::after {
  content: none;
}

.ratio-filter-btn.active .ratio-filter-label {
  max-width: none;
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.index-page.is-cards-depth .ratio-filter-tabs {
  width: 100%;
  justify-content: space-between;
  gap: 0;
}

.index-page.is-cards-depth .ratio-filter-btn {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  height: 32px;
  min-height: 32px;
  padding: 0 4px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.index-page.is-cards-depth .ratio-filter-icon-img {
  display: block;
}

.index-page.is-cards-depth .ratio-filter-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: #0a1014;
}

.index-page.is-cards-depth .ratio-filter-btn::after {
  content: none;
}

.index-page.is-cards-depth .ratio-filter-btn.active::after {
  content: none;
}

.ratio-filter-btn.blur-pulse {
  animation: ratioFilterBlurPulse 0.22s ease;
}

@keyframes ratioFilterLabelReveal {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateX(-3px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0);
  }
}

@keyframes ratioFilterBlurPulse {
  0% {
    filter: blur(0px);
    transform: scale(1);
  }
  40% {
    filter: blur(2.5px);
    transform: scale(0.95);
  }
  100% {
    filter: blur(0px);
    transform: scale(1);
  }
}

.top-login-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #0a1014;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-login-btn.is-hue-trigger {
  background: transparent;
}

.top-login-btn.is-hue-trigger .header-hue-dot {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 6px;
  border: 0;
  box-shadow: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.top-login-btn.is-hue-trigger.is-open .header-hue-dot {
  transform: scale(0.92);
}

.index-page.is-cards-depth .top-login-btn.is-hue-trigger .header-hue-dot {
  transform: none;
}

.index-page.is-cards-depth .top-login-btn.is-hue-trigger.is-open .header-hue-dot {
  transform: scale(0.92);
}

.top-login-btn.is-menu {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: transparent;
}

.top-login-btn img,
.top-login-btn.is-menu img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.header-auth-wrap {
  margin-left: auto;
  width: auto;
  min-width: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.index-page .header-auth-wrap {
  width: 100%;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  flex: 1 1 auto;
}

.index-page .header-auth-wrap .top-hue-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  max-width: 180px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.index-page .header-auth-wrap .top-hue-slider {
  width: 100%;
  max-width: 100%;
}

.index-page.is-cards-depth .header-auth-wrap .top-hue-wrap {
  left: auto;
  right: 0;
  top: calc(100% + 8px);
  transform: none;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  box-shadow: 0 12px 24px rgba(10, 16, 20, 0.12);
  z-index: 10;
}

.index-page.is-cards-depth .header-auth-wrap .top-hue-wrap:not(.hidden) {
  animation: topHueTooltipIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.index-page.is-cards-depth .header-auth-wrap .top-hue-slider {
  width: 100%;
  max-width: 100%;
}

@keyframes topHueTooltipIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.header-saved-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-saved-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.header-saved-btn:hover {
  background: transparent;
  opacity: 0.84;
}

.index-page.user-authenticated .header-upgrade-wrap {
  display: none;
}

.index-page.user-authenticated .index-logo-box {
  display: inline-flex;
}

.index-page.is-cards-depth .index-logo-box {
  display: none;
}

.index-page.user-authenticated .header-auth-wrap {
  justify-content: space-between;
}

.signup-gift-badge {
  grid-column: 2;
  justify-self: center;
  position: static;
  width: 160px;
  min-width: 160px;
  height: 24px;
  border-radius: 6px;
  background: #eef1fd;
  border: 0;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #2544f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.signup-gift-badge img {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.signup-gift-text {
  color: #2544f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .signup-gift-text {
    background-image: linear-gradient(100deg, #2544f5 20%, #6b7dff 48%, #2544f5 76%);
    background-size: 220% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: signupGiftShimmer 2.4s ease-in-out infinite;
  }
}

@keyframes signupGiftShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.top-login-btn:hover {
  background: transparent;
  opacity: 1;
}

.top-login-btn.is-menu:hover {
  background: transparent;
  opacity: 0.84;
}

.modal-backdrop.account-menu-backdrop {
  z-index: 135;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.account-menu-modal-card {
  width: 100%;
  max-width: none;
  background: #fff;
  border-radius: 0;
  border: 1px solid rgba(10, 16, 20, 0.08);
  box-shadow: 0 16px 36px rgba(10, 16, 20, 0.14);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-menu-backdrop.is-opening {
  animation: accountMenuBackdropIn 220ms ease both;
}

.account-menu-backdrop.is-opening .account-menu-modal-card {
  animation: accountMenuCardIn 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.account-menu-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-menu-email {
  margin: 0;
  min-width: 0;
  color: rgba(10, 16, 20, 0.5);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-tier-badge {
  height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.account-menu-tier-badge.is-free {
  background: #eff1f5;
  color: #7a8390;
}

.account-menu-tier-badge.is-pro {
  background: #0a1014;
  color: #fff;
}

.account-menu-pro-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #0a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.account-menu-pro-head {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.account-menu-pro-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 42%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(37, 68, 245, 0.18) 100%
  );
  filter: blur(4px);
  pointer-events: none;
  animation: accountMenuProBtnShimmer 2.1s ease-in-out infinite;
}

.account-menu-pro-icon {
  height: 18px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

#accountMenuCreditTopupBtn .account-menu-pro-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.account-menu-credit-btn {
  min-height: 48px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.account-menu-credit-inner {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.account-menu-credit-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-menu-credit-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.account-menu-credit-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.account-menu-credit-price {
  color: #8b96a2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.account-menu-pro-go {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
}

.account-menu-pro-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  word-break: keep-all;
}

.account-menu-nav-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f7f9fc;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.account-menu-nav-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.account-menu-nav-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-menu-links-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.account-menu-link-btn {
  width: 100%;
  height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgba(10, 16, 20, 0.52);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-menu-link-btn:last-child {
  justify-content: flex-end;
}

.account-menu-nav-btn:hover,
.account-menu-link-btn:hover {
  opacity: 1;
}

.account-menu-pro-btn:hover {
  opacity: 1;
  background: #0a1014;
  color: #fff;
}

@keyframes accountMenuBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes accountMenuProBtnShimmer {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(390%);
    opacity: 0;
  }
}

@keyframes accountMenuCardIn {
  from {
    opacity: 0.7;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.contact-backdrop {
  z-index: 137;
  --auth-modal-shift-y: 0px;
  position: fixed;
  inset: 0;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

.contact-backdrop.is-opening {
  animation: authBackdropIn 0.28s ease both;
}

.contact-backdrop.is-opening .contact-modal-card {
  animation: contactModalDropIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-modal-card {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
  margin: 0;
  padding: 12px;
  gap: 0;
  transform: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@keyframes contactModalDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.contact-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contact-title-row h2 {
  margin: 0;
  color: #0a1014;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-form {
  gap: 10px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  min-height: 48px;
  border: 1px solid #cbd2d9;
  border-radius: 9px;
  background: #fff;
  padding: 6px 12px;
  justify-content: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.contact-field:focus-within {
  border-color: #0a1014;
  box-shadow: 0 0 0 1px rgba(10, 16, 20, 0.18);
}

.contact-field > span {
  display: block;
  height: 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #68717b;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease, height 0.18s ease;
}

.contact-field:focus-within > span {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-3px);
  height: 0;
}

.contact-field > input,
.contact-field > select,
.contact-field > textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #68717b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
  font-family: inherit;
  margin-top: 0;
}

.contact-field > input,
.contact-field > select {
  height: 20px;
}

.contact-field > select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/Down.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px 16px;
  padding-right: 20px;
  cursor: pointer;
}

.contact-message-field {
  min-height: 112px;
  justify-content: flex-start;
  gap: 0;
}

.contact-message-field > span {
  margin-top: 1px;
}

.contact-field > textarea {
  min-height: 84px;
  height: 84px;
  resize: none;
  padding-top: 4px;
  padding-bottom: 0;
  line-height: 1.45;
}

.contact-field > input::placeholder,
.contact-field > select,
.contact-field > textarea::placeholder {
  color: #68717b;
  opacity: 1;
}

.contact-field > input:focus,
.contact-field > select:focus,
.contact-field > textarea:focus {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.contact-status {
  margin: 0;
  color: rgba(10, 16, 20, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.contact-status.is-error {
  color: #d93025;
}

.subscription-cancel-backdrop {
  z-index: 138;
  --auth-modal-shift-y: 0px;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.subscription-cancel-modal-card {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  margin: 0;
  border-radius: 0;
  gap: 12px;
  padding: 12px;
  transform: none;
}

.subscription-cancel-copy {
  margin: 0;
  color: rgba(10, 16, 20, 0.68);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.subscription-cancel-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-cancel-list li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(10, 16, 20, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.subscription-cancel-list li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: rgba(10, 16, 20, 0.34);
  flex: 0 0 auto;
}

.subscription-cancel-confirm-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: #d93025;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.subscription-cancel-confirm-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.modal-backdrop.terms-backdrop {
  z-index: 138;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.terms-modal-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  background: #fff;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.terms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}

.terms-head h2 {
  margin: 0;
  color: #0a1014;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.terms-close-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.terms-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.terms-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-content p {
  margin: 0;
  color: rgba(10, 16, 20, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.modal-backdrop.saved-templates-backdrop {
  z-index: 136;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  animation: savedTemplatesBackdropIn 220ms ease both;
}

.saved-templates-modal-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  background: #fff;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  align-self: stretch;
  animation: savedTemplatesSheetIn 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  will-change: transform, opacity;
}

@keyframes savedTemplatesBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes savedTemplatesSheetIn {
  from {
    opacity: 0.75;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes savedTemplatesSlideInLeft {
  from {
    opacity: 0.92;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.saved-templates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 8px;
  margin-bottom: 8px;
}

.saved-templates-head h2 {
  margin: 0;
  color: #0a1014;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.saved-templates-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.saved-templates-server-save-btn {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.saved-templates-server-save-btn img {
  width: 14px;
  height: 14px;
  display: block;
}

.saved-templates-server-save-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.saved-templates-close-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saved-templates-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.saved-templates-status {
  margin: 0 0 10px;
  padding: 0 12px;
  color: rgba(10, 16, 20, 0.62);
  font-size: 13px;
  line-height: 1.4;
}

.saved-templates-ratio-tabs {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 12px 10px;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.saved-templates-ratio-tabs::-webkit-scrollbar {
  display: none;
}

.saved-templates-ratio-btn {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  min-height: 32px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0 4px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  opacity: 0.3;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.saved-templates-ratio-btn.active {
  background: transparent;
  color: inherit;
  opacity: 1;
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 4px;
  gap: 4px;
}

.saved-templates-ratio-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 16px;
}

.saved-templates-ratio-label {
  display: block;
  max-width: none;
  opacity: 1;
  filter: none;
  transform: none;
  overflow: visible;
  white-space: nowrap;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  pointer-events: none;
}

.saved-template-grid {
  display: block;
  width: 100%;
  padding: 4px;
  column-width: 180px;
  column-gap: 4px;
}

.saved-template-grid .template-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.saved-template-grid .thumbnail-frame,
.saved-template-grid .thumbnail-stage {
  width: 100%;
}

.saved-template-grid.is-collection-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 12px 20px;
  column-width: auto;
  column-gap: 0;
  gap: 14px;
}

.saved-collection-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-collection-card-head {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.saved-collection-card-title {
  margin: 0;
  color: #0a1014;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.saved-collection-card-meta {
  color: rgba(10, 16, 20, 0.44);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.saved-collection-card-track {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.saved-collection-card-track::-webkit-scrollbar {
  height: 0;
}

.saved-template-grid.is-collection-grid .saved-collection-template-card {
  display: block;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  flex: 0 0 112px;
  margin: 0 !important;
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.saved-collection-template-card .template-card-title {
  text-align: center;
}

.save-collection-backdrop {
  z-index: 141;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.save-collection-backdrop.is-opening {
  animation: savedTemplatesBackdropIn 220ms ease both;
}

.save-collection-backdrop.is-opening .save-collection-modal-card {
  animation: accountMenuCardIn 0.26s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.save-collection-modal-card {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  margin: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.save-collection-head {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.save-collection-head h2 {
  margin: 0;
  color: #0a1014;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.save-collection-close-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.save-collection-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.save-collection-ratio-text {
  margin: 0;
  color: rgba(10, 16, 20, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.save-collection-options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.save-collection-option-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.save-collection-option-btn.active {
  background: #0a1014;
  color: #fff;
}

.save-collection-option-btn.is-new {
  background: #eef1fd;
  color: #2544f5;
}

.save-collection-option-btn.is-new.active {
  background: #0a1014;
  color: #fff;
}

.save-collection-option-btn:hover,
.save-collection-option-btn:active,
.save-collection-option-btn:focus,
.save-collection-option-btn:focus-visible {
  opacity: 1;
}

.save-collection-new-name-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.save-collection-new-name-wrap span {
  color: rgba(10, 16, 20, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.save-collection-new-name-wrap input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: #eff1f5;
  padding: 0 10px;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
}

.save-collection-status {
  margin: 0;
  color: #d93025;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.save-collection-confirm-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #0a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.save-collection-confirm-btn:hover,
.save-collection-confirm-btn:active,
.save-collection-confirm-btn:focus,
.save-collection-confirm-btn:focus-visible {
  background: #0a1014;
  color: #fff;
}

.save-collection-confirm-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.saved-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 10px);
  z-index: 180;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 16, 20, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.saved-toast.is-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translate(-50%, 0);
}

.saved-toast img {
  width: 16px;
  height: 16px;
  display: block;
}

.saved-toast span {
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.font-preload-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  top: auto;
  transform: translate(-50%, 8px);
  z-index: 181;
  width: auto;
  max-width: calc(100vw - 24px);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 16, 20, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.font-preload-toast.is-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translate(-50%, 0);
}

.font-preload-toast-spinner {
  width: 16px;
  height: 16px;
  position: static;
  transform: none;
  border-radius: 999px;
  border: 2px solid rgba(10, 16, 20, 0.18);
  border-top-color: #0a1014;
  animation: fontPreloadSpin 0.8s linear infinite;
}

.font-preload-toast-label {
  position: static;
  transform: none;
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@keyframes fontPreloadSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.settings-menu {
  position: fixed;
  top: calc(var(--index-header-height) + 8px);
  right: 16px;
  z-index: 70;
  width: min(220px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-credit {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.settings-credit strong {
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
}

.settings-menu-btn {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: #111;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  text-align: left;
  padding: 0 10px;
}

.settings-menu-btn:hover {
  background: #171717;
  opacity: 1;
}

.index-page.ui-light-mode {
  background: #fff;
  color: #111;
}

.index-page.ui-light-mode .index-header {
  background: #fff;
  border-bottom: 0;
}

.index-page.is-style-depth {
  background-color: #fff;
}

.index-page.is-style-depth .index-header {
  background: transparent;
}

.style-depth-bg-orbs {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  width: 100%;
  height: calc(220px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.index-page.is-style-depth .style-depth-bg-orbs {
  opacity: 1;
}

.style-depth-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.style-depth-bg-orb-a {
  width: 280px;
  height: 280px;
  top: 10px;
  left: -36px;
  background: #e7dac8;
  animation: styleDepthOrbFloatA 13s ease-in-out infinite alternate;
}

.style-depth-bg-orb-b {
  width: 300px;
  height: 300px;
  top: 8px;
  right: -42px;
  background: #cee1f4;
  animation: styleDepthOrbFloatB 16s ease-in-out infinite alternate;
}

@keyframes styleDepthOrbFloatA {
  0% {
    transform: translate3d(-12px, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(16px, 12px, 0) scale(1.06);
  }
}

@keyframes styleDepthOrbFloatB {
  0% {
    transform: translate3d(8px, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-14px, 14px, 0) scale(1.08);
  }
}

.index-page.ui-light-mode .index-logo {
  filter: brightness(0);
}

.index-page.ui-light-mode .credit-pill {
  color: #0a1014;
}

.index-page.ui-light-mode .credit-add-btn {
  background: transparent;
  color: #0a1014;
}

.index-page.ui-light-mode .credit-add-btn:hover {
  background: transparent;
  color: #0a1014;
}

.designer-page .index-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.designer-page .designer-header-top {
  grid-template-columns: 1fr;
  padding-top: 12px;
  padding-bottom: 0;
}

.designer-page .designer-header-top .index-logo-box {
  width: auto;
  justify-self: start;
  padding: 0;
}

.designer-page .index-logo {
  filter: brightness(0);
}

.designer-page .credit-pill {
  color: #0a1014;
}

.designer-page .credit-add-btn {
  background: transparent;
  color: #0a1014;
}

.designer-page .credit-add-btn:hover {
  background: transparent;
  color: #0a1014;
}

.index-page.ui-light-mode .settings-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
}

.index-page.ui-light-mode .settings-credit {
  color: rgba(0, 0, 0, 0.66);
}

.index-page.ui-light-mode .settings-credit strong {
  color: #111;
}

.index-page.ui-light-mode .settings-menu-btn {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  color: #111;
}

.index-page.ui-light-mode .settings-menu-btn:hover {
  background: #f4f4f4;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.designer-page .designer-action-bar {
  position: fixed;
  top: var(--index-header-height);
  left: 0;
  right: 0;
  z-index: 58;
  height: var(--designer-action-bar-height);
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 8px 16px;
}

.designer-page .designer-action-bar .top-bar {
  width: 100%;
  height: 100%;
  margin: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
}

.designer-page .top-actions button {
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
}

.designer-page #deployDraftBtn {
  background: #eff1f5;
  color: #0a1014;
}

.designer-page #renderNewPreviewsBtn,
.designer-page #rerenderAllPreviewsBtn {
  background: #eff1f5;
  color: #0a1014;
}

.designer-page #deployDraftBtn.is-dirty {
  background: #2544f5;
  color: #fff;
}

.designer-page #deployDraftBtn.is-busy {
  opacity: 0.88;
}

.designer-page #renderNewPreviewsBtn.is-busy,
.designer-page #rerenderAllPreviewsBtn.is-busy {
  opacity: 0.88;
}

.designer-page #deployDraftBtn:disabled {
  opacity: 0.44;
  cursor: default;
}

.designer-page #renderNewPreviewsBtn:disabled,
.designer-page #rerenderAllPreviewsBtn:disabled {
  opacity: 0.44;
  cursor: default;
}

.designer-page #resetTemplatesBtn {
  background: #ffe8e8;
  color: #cc1f1f;
}

.designer-page #resetTemplatesBtn:hover {
  background: #ffdede;
}

.designer-page .top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.designer-page .top-actions button:hover:not(#resetTemplatesBtn) {
  background: #e4e8ed;
  opacity: 1;
}

.designer-page #openCreateModalBtn {
  width: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.designer-page #openCreateModalBtn img {
  width: 16px;
  height: 16px;
  display: block;
}

input,
textarea,
button {
  font-family: inherit;
  border: none;
  outline: none;
}

button {
  background: var(--accent-weak);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
}

button:focus-visible,
.tab-btn:focus-visible,
.template-card:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.9);
  outline-offset: 1px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

input[type="text"],
textarea {
  width: 100%;
  background: #111;
  color: var(--text);
  padding: 10px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input[type="text"] {
  border-radius: 0;
}

textarea {
  min-height: 240px;
  resize: vertical;
  line-height: 1.4;
}

.button-row {
  display: flex;
  gap: 8px;
}

.z-index-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.z-index-copy-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

.z-index-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.create-modal-card {
  width: min(1080px, 100%);
}

.designer-manual-preview-section {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.designer-manual-preview-head {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.designer-manual-preview-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #0a1014;
}

.designer-manual-preview-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(10, 16, 20, 0.58);
}

.designer-manual-preview-layout {
  width: 100%;
}

.create-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.create-mode-tab-btn {
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: #eff1f5;
  color: #68717b;
  font-size: 13px;
  font-weight: 600;
}

.create-mode-tab-btn.active {
  background: #0a1014;
  color: #fff;
}

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

.create-modal-layout.is-auto-mode {
  grid-template-columns: minmax(0, 1fr);
}

.create-modal-editor {
  min-width: 0;
}

.create-mode-panel {
  min-width: 0;
}

.create-preview-panel {
  min-width: 0;
}

.auto-create-copy {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(10, 16, 20, 0.65);
}

#autoHtmlInput {
  min-height: 320px;
}

.create-preview-stage {
  width: 100%;
  aspect-ratio: 1080 / 1350;
  background: #000;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.create-preview-canvas {
  width: 1080px;
  height: 1350px;
  transform-origin: top left;
}

.create-preview-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82));
  text-align: center;
  padding: 12px;
}

.create-preview-stage.has-preview .create-preview-empty {
  display: none;
}

.button-row.right {
  justify-content: flex-end;
}

.designer-page .designer-modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.designer-page #createModal .field-label {
  color: rgba(10, 16, 20, 0.7);
}

.designer-page .designer-manual-preview-section .field-label {
  color: rgba(10, 16, 20, 0.7);
}

.designer-page #createModal .create-preview-stage {
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.designer-page .designer-manual-preview-section .create-preview-stage {
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.designer-page #createModal textarea,
.designer-page #createModal input[type="text"],
.designer-page #createModal input[type="number"] {
  background: #f3f5f7;
  color: #0a1014;
  border: 0;
}

.designer-page .designer-manual-preview-section textarea,
.designer-page .designer-manual-preview-section input[type="text"],
.designer-page .designer-manual-preview-section input[type="number"] {
  background: #f3f5f7;
  color: #0a1014;
  border: 0;
}

.designer-page #createModal textarea::placeholder,
.designer-page #createModal input[type="text"]::placeholder,
.designer-page #createModal input[type="number"]::placeholder {
  color: rgba(10, 16, 20, 0.38);
}

.designer-page .designer-manual-preview-section textarea::placeholder,
.designer-page .designer-manual-preview-section input[type="text"]::placeholder,
.designer-page .designer-manual-preview-section input[type="number"]::placeholder {
  color: rgba(10, 16, 20, 0.38);
}

.designer-page .designer-modal-actions button,
.designer-page .z-index-copy-btn {
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
}

.designer-page .designer-modal-actions button:hover,
.designer-page .z-index-copy-btn:hover {
  background: #e4e8ed;
  opacity: 1;
}

.status-text {
  margin: 0 0 12px;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.status-text.error {
  color: #b10000;
}

.style-section {
  margin-bottom: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.style-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.style-card {
  position: relative;
  background: #f1f3f5;
  border: 1px solid #d7dde5;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.style-card.is-active {
  background: #f1f3f5;
  opacity: 1;
  border-color: #d7dde5;
  box-shadow: none;
}

.style-card.is-inactive {
  background: #f1f3f5;
  border-color: #d7dde5;
  opacity: 1;
}

.style-card:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.style-card.is-active:hover {
  opacity: 1;
}

.style-card-all-badge {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  background: #dfe4ea;
  color: #0a1014;
}

.style-card.is-inactive .style-card-all-badge {
  background: #dfe4ea;
  color: #8a919a;
}

.style-card-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  z-index: 1;
}

.style-card-delete:hover {
  background: rgba(255, 255, 255, 0.24);
}

.style-card-delete:disabled {
  opacity: 0.5;
  cursor: wait;
}

.style-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.style-card-name {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8a919a;
  transition: color 0.18s ease;
}

.style-card.is-active .style-card-name {
  color: #0a1014;
}

.style-card.is-inactive .style-card-thumb {
  opacity: 0.58;
  filter: grayscale(1) brightness(0.68);
}

.style-card.is-active .style-card-thumb {
  opacity: 1;
  filter: grayscale(1) brightness(0);
}

.style-card-mode-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.style-card-mode-btn {
  height: 26px;
  border-radius: 999px;
  background: #171717;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  padding: 0;
}

.style-card-mode-btn.active {
  background: #fff;
  color: #111;
}

.style-card-mode-btn:hover {
  background: #202020;
  opacity: 1;
}

.style-card-mode-btn.active:hover {
  background: #fff;
}

.style-card-mode-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.style-thumb-preview {
  width: 92px;
  height: 92px;
  object-fit: cover;
  display: block;
  margin: 0 0 10px;
  border-radius: 8px;
}

.style-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.style-mode-btn {
  height: 34px;
  border-radius: 999px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
}

.style-mode-btn.active {
  background: #fff;
  color: #111;
}

.style-mode-btn:hover {
  background: #202020;
  opacity: 1;
}

.style-mode-btn.active:hover {
  background: #fff;
}

.style-toggle-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.template-theme-toggle-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.template-theme-toggle-btn {
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: #eff1f5;
  color: #8f98a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.template-theme-toggle-btn:hover {
  background: #e4e8ed;
  opacity: 1;
}

.template-theme-toggle-btn.active {
  background: #0a1014;
  color: #fff;
}

.template-theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.72);
}

.template-theme-toggle-btn.active .template-theme-toggle-icon {
  filter: brightness(0) invert(1);
}

.style-toggle-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.38;
  transition: opacity 0.18s ease;
}

.style-toggle-btn.active {
  background: transparent;
  opacity: 1;
}

.style-toggle-btn:not(.active) .style-toggle-thumb {
  opacity: 1;
  filter: none;
}

.style-toggle-thumb {
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex-shrink: 0;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.style-toggle-btn.active .style-toggle-thumb {
  opacity: 1;
  filter: none;
}

.ratio-toggle-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.ratio-toggle-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: #eff1f5;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b5bdc6;
}

.ratio-toggle-btn.active {
  background: #eff1f5;
  color: #0a1014;
}

.ratio-tab-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ratio-tab-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eff1f5;
  color: #b5bdc6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ratio-tab-btn.active {
  background: #eff1f5;
  color: #0a1014;
}

.ratio-toggle-icon,
.ratio-tab-icon {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-image: var(--ratio-icon-url);
  mask-image: var(--ratio-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.template-custom-height-wrap {
  margin-top: 8px;
  width: 132px;
  height: 32px;
  border-radius: 8px;
  background: #eff1f5;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #0a1014;
  gap: 8px;
}

.template-custom-height-wrap span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.template-custom-height-wrap input[type="number"] {
  width: 74px;
  border: 0;
  background: transparent;
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.designer-page #createModal .template-custom-height-wrap input[type="number"] {
  background: transparent;
}

.template-custom-height-wrap input[type="number"]::-webkit-outer-spin-button,
.template-custom-height-wrap input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
}

.filter-top {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 16px 4px;
  gap: 0;
  margin: 0;
  background: #fff;
  box-shadow: none;
}

.index-page.is-style-depth .filter-top {
  display: none;
}

.index-page.is-cards-depth .filter-top {
  display: flex;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  padding: 0 16px 4px;
  background: #fff;
  z-index: 80;
  pointer-events: auto;
}

.index-page.is-cards-depth .bottom-ratio-wrap {
  height: 100%;
  width: 100%;
  pointer-events: auto;
}

.index-page.is-cards-depth .ratio-filter-wrap {
  width: 100%;
  align-self: center;
  margin: 0;
  padding: 4px 0 0;
  pointer-events: auto;
}

.index-page.is-cards-depth .ratio-filter-tabs {
  width: 100%;
}

.index-page.is-cards-depth .ratio-filter-btn {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}

.index-page.is-cards-depth .ratio-filter-icon,
.index-page.is-cards-depth .ratio-filter-icon-img {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  flex: 0 0 16px;
}

.index-page.is-cards-depth .ratio-filter-icon-img {
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
}

.free-upgrade-strip {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 6px;
  min-height: 40px;
  height: 40px;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 81;
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  overflow: visible;
  pointer-events: auto;
  cursor: default;
}

.free-upgrade-strip::after {
  content: none;
}

.free-upgrade-strip:hover {
  opacity: 1;
}

.free-upgrade-chip {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.free-upgrade-chip.is-credit-chip {
  gap: 6px;
}

.free-upgrade-strip-add-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

.index-page.is-cards-depth .free-upgrade-chip {
  box-shadow: none;
}

.free-upgrade-strip.is-center-only {
  left: 8px;
  right: 8px;
  justify-content: center;
}

.index-page.is-cards-depth .free-upgrade-strip.is-center-only {
  top: calc((var(--index-header-row-top, 48px) - 32px) / 2);
  bottom: auto;
  left: 60px;
  right: 60px;
  min-height: 32px;
  height: 32px;
  align-items: center;
  z-index: 62;
}

.index-page.is-cards-depth .free-upgrade-strip.is-center-only .free-upgrade-chip {
  min-height: 32px;
  height: 32px;
}

.free-upgrade-strip.is-center-only .free-upgrade-side-btn {
  display: none !important;
}

.free-upgrade-strip.is-center-only .free-upgrade-chip {
  width: fit-content;
  max-width: calc(100vw - 16px);
  min-width: auto;
  flex: 0 0 auto;
  margin: 0 auto;
}

.free-upgrade-strip.is-side-stretch {
  justify-content: space-between;
  gap: 0;
}

.free-upgrade-side-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  padding: 0;
  cursor: pointer;
}

.free-upgrade-side-btn-left {
  margin-left: 12px;
}

.free-upgrade-side-btn-right {
  margin-right: 12px;
}

.free-upgrade-side-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.index-page.is-style-depth .free-upgrade-strip {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  opacity: 1;
  gap: 8px;
}

.index-page.is-style-depth .free-upgrade-side-btn {
  background: transparent !important;
  border-radius: 0;
  border: 0;
  box-shadow: none !important;
  opacity: 1;
}

.index-page.is-style-depth .free-upgrade-side-btn-left {
  margin-left: 6px;
}

.index-page.is-style-depth .free-upgrade-side-btn-right {
  margin-right: 6px;
}

.index-page.is-style-depth .free-upgrade-chip {
  background: #ffffff !important;
  opacity: 1;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.insights-bulb-mask {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  overflow: hidden;
  background: #0a1014;
  -webkit-mask-image: url("/Bulb.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-image: url("/Bulb.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 24px 24px;
}

.insights-bulb-mask::before {
  content: none;
}

@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .insights-bulb-mask {
    background: #0a1014;
    border-radius: 999px;
  }
}

.free-upgrade-strip-text {
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.free-upgrade-strip-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #0a1014;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px;
  flex: 0 0 auto;
}

.free-upgrade-strip-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  display: block;
  flex: 0 0 20px;
}

.bottom-ratio-wrap {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-grid-separator {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  z-index: 64;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.bottom-grid-separator::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  will-change: backdrop-filter;
  transform: translateZ(0);
  background: rgba(255, 255, 255, 0.01);
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.86) 36%,
    rgba(0, 0, 0, 0.34) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.86) 36%,
    rgba(0, 0, 0, 0.34) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-grid-separator::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.82) 36%,
      rgba(255, 255, 255, 0.44) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

.bottom-edge-icons {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 48px;
  height: 16px;
  z-index: 81;
  pointer-events: none;
}

.bottom-edge-icon {
  position: absolute;
  top: 0;
  height: 16px;
  width: auto;
  display: block;
}

.bottom-edge-icon-left {
  left: 0;
}

.bottom-edge-icon-center {
  left: 50%;
  transform: translateX(-50%);
}

.bottom-edge-icon-right {
  right: 0;
}

.filter-top.is-loading .bottom-hue-toggle-btn,
.filter-top.is-loading .style-filter-btn,
.filter-top.is-loading #refreshBtn {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.filter-top.is-loading .bottom-hue-toggle-btn img,
.filter-top.is-loading .bottom-hue-selected-dot,
.filter-top.is-loading .style-filter-icon,
.filter-top.is-loading #refreshBtn img {
  opacity: 0;
}

.filter-top.is-loading .bottom-hue-toggle-btn::after,
.filter-top.is-loading .style-filter-btn::after,
.filter-top.is-loading #refreshBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(226, 231, 237, 0.92) 0%,
    rgba(244, 247, 250, 0.96) 50%,
    rgba(226, 231, 237, 0.92) 100%
  );
  background-size: 220% 100%;
  animation: initialSkeletonShimmer 1.1s linear infinite;
}

.bottom-hue-wrap,
.mix-wrap {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-filter-tabs {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  justify-self: center;
}

.style-filter-tabs.is-loading {
  pointer-events: none;
}

.style-filter-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b5bdc6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.style-filter-btn:hover {
  background: transparent;
  color: #87919d;
  opacity: 1;
}

.style-filter-btn.active {
  color: #0a1014;
  opacity: 1;
}

.style-filter-btn.blur-pulse {
  animation: ratioFilterBlurPulse 0.22s ease;
}

.style-filter-icon {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask-image: var(--style-icon-url);
  mask-image: var(--style-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.bottom-hue-toggle-btn {
  width: 32px;
  height: 32px;
  padding: 6px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0a1014;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-hue-toggle-btn:hover {
  background: transparent;
  opacity: 0.82;
}

.bottom-hue-toggle-inner {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.bottom-hue-toggle-inner img {
  width: 20px;
  height: 20px;
  display: block;
}

.bottom-hue-toggle-main-icon {
  transition: filter 0.18s ease, transform 0.18s ease;
}

@keyframes hueToggleSwapBlur {
  0% {
    filter: blur(0px);
  }
  40% {
    filter: blur(2px);
  }
  100% {
    filter: blur(0px);
  }
}

.bottom-hue-toggle-btn.is-swapping .bottom-hue-toggle-main-icon {
  animation: hueToggleSwapBlur 0.24s ease;
}

.bottom-hue-selected-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(240 100% 50%);
  flex: 0 0 auto;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.bottom-hue-popover {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 120;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-hue-popover {
  position: fixed;
  left: 0;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 36px;
  max-width: 36px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  gap: 0;
}

.main-hue-popover:not(.hidden) {
  animation: mainHueDrawerIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mainHueDrawerIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    filter: blur(0);
  }
}

.main-hue-picker-shell {
  position: relative;
  width: 36px;
  height: 280px;
  --main-hue-shell-extent: 280px;
  --main-hue-slider-extent: 220px;
  display: block;
}

.main-hue-vertical-slider-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 28px;
  height: var(--main-hue-slider-extent);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bottom-hue-slider.main-hue-vertical-slider {
  width: var(--main-hue-slider-extent);
  height: 28px;
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
}

.main-hue-picker-icon-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: var(--main-hue-shell-extent);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.main-hue-picker-icon {
  width: 36px;
  height: var(--main-hue-shell-extent);
  display: block;
  object-fit: contain;
}

.bottom-hue-popover:not(.main-hue-popover):not(.hidden) {
  animation: bottomHuePopoverIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bottomHuePopoverIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.bottom-hue-slider {
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 32px;
  display: block;
  --hue-selected-color: hsl(240 100% 50%);
}

.bottom-hue-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bottom-hue-mode-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eff1f5;
  color: #9098a2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.bottom-hue-mode-btn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.56);
}

.bottom-hue-mode-btn:hover {
  background: #e4e8ed;
  opacity: 1;
}

.bottom-hue-mode-btn.active {
  background: #0a1014;
  color: #fff;
}

.bottom-hue-mode-btn.active img {
  filter: brightness(0) invert(1);
}

.hue-modal-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hue-modal-title {
  margin: 0;
  color: #0a1014;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hue-modal-close-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hue-modal-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.hue-modal-close-btn:hover {
  background: transparent;
  opacity: 0.72;
}

.hue-modal-mode-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hue-modal-mode-btn {
  position: relative;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b5bdc6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.18s ease;
}

.hue-modal-mode-btn img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.45);
  transition: filter 0.18s ease;
}

.hue-modal-mode-btn span {
  white-space: nowrap;
}

.hue-modal-mode-btn::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: #2544f5;
  transform: scaleX(0.38);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hue-modal-mode-btn.active {
  color: #0a1014;
}

.hue-modal-mode-btn.active img {
  filter: brightness(0) saturate(100%);
}

.hue-modal-mode-btn.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.bottom-hue-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 16.66%,
    #00ff00 33.33%,
    #00ffff 50%,
    #0000ff 66.66%,
    #ff00ff 83.33%,
    #ff0000 100%
  );
}

.bottom-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 32px;
  border-radius: 12px;
  margin-top: -12px;
  background: var(--hue-selected-color);
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.bottom-hue-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 16.66%,
    #00ff00 33.33%,
    #00ffff 50%,
    #0000ff 66.66%,
    #ff00ff 83.33%,
    #ff0000 100%
  );
}

.bottom-hue-slider::-moz-range-thumb {
  width: 20px;
  height: 32px;
  border-radius: 12px;
  background: var(--hue-selected-color);
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.top-hue-slider {
  height: 20px;
}

.top-hue-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.72) 0%,
    rgba(255, 255, 0, 0.72) 16.66%,
    rgba(0, 255, 0, 0.72) 33.33%,
    rgba(0, 255, 255, 0.72) 50%,
    rgba(0, 0, 255, 0.72) 66.66%,
    rgba(255, 0, 255, 0.72) 83.33%,
    rgba(255, 0, 0, 0.72) 100%
  );
}

.top-hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-top: -7px;
  background: #0a1014;
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.top-hue-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.72) 0%,
    rgba(255, 255, 0, 0.72) 16.66%,
    rgba(0, 255, 0, 0.72) 33.33%,
    rgba(0, 255, 255, 0.72) 50%,
    rgba(0, 0, 255, 0.72) 66.66%,
    rgba(255, 0, 255, 0.72) 83.33%,
    rgba(255, 0, 0, 0.72) 100%
  );
}

.top-hue-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #0a1014;
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.hue-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

#hueTrigger {
  position: relative;
  background: transparent;
  color: inherit;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

#hueTrigger:hover {
  background: transparent;
  opacity: 0.9;
}

#hueDot {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: hsl(0 100% 50%);
  border: 1px solid rgba(0, 0, 0, 0.24);
  transition: opacity 0.26s ease, filter 0.34s ease, transform 0.34s ease;
}

#hueCheck {
  position: absolute;
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.7);
  transition: opacity 0.26s ease, filter 0.34s ease, transform 0.34s ease;
}

.hue-popover {
  position: absolute;
  left: 13px;
  bottom: calc(100% + 13px);
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  filter: blur(7px);
  transition:
    width 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.3s ease,
    opacity 0.28s ease,
    filter 0.46s ease;
}

.hue-wrap.is-open #hueDot {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.72);
}

.hue-wrap.is-open #hueCheck {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.hue-wrap.is-open .hue-popover {
  left: 0;
  bottom: calc(100% + 10px);
  width: 220px;
  height: 48px;
  padding: 0 32px;
  border-radius: 14px;
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.style-picker-wrap .tab-list {
  --style-tab-gap: 8px;
  flex-wrap: nowrap;
  align-items: flex-end;
  height: 80px;
  margin-top: -32px;
  padding: 0 2px;
  gap: var(--style-tab-gap);
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.style-picker-wrap .tab-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.style-tab-spacer {
  flex: 0 0 max(0px, calc(50% - 20px - var(--style-tab-gap)));
  height: 1px;
  pointer-events: none;
}

.tab-btn {
  background: var(--accent-weak);
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.tab-btn.active {
  background: var(--accent);
  color: #111;
}

.style-tab-btn {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform-origin: center bottom;
  transform: translateY(-4px);
  will-change: transform, filter, height, border-radius;
  transition:
    width 0.22s ease,
    height 0.22s ease,
    border-radius 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease;
}

.style-tab-btn.active {
  width: 40px;
  min-width: 40px;
  height: 60px;
  border-radius: 24px;
  padding: 4px;
  background: #111;
  justify-content: flex-start;
  color: inherit;
  outline: none;
  z-index: 2;
  animation: styleTabMorphRise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.style-tab-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  display: block;
  border-radius: 999px;
  transition: border-radius 0.22s ease;
  flex: 0 0 auto;
}

.style-tab-btn.active .style-tab-thumb {
  width: 32px;
  height: 32px;
  animation: styleTabThumbFocus 0.3s ease-out both;
}

.style-tab-dot {
  margin-top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  display: none;
  pointer-events: none;
}

.style-tab-btn.active .style-tab-dot {
  display: block;
}

@keyframes styleTabMorphRise {
  from {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    transform: translateY(10px) scale(0.92);
    filter: blur(6px);
    opacity: 0.74;
  }
  72% {
    filter: blur(1px);
  }
  to {
    width: 40px;
    height: 60px;
    padding: 4px;
    border-radius: 24px;
    background: #111;
    transform: translateY(-4px) scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes styleTabThumbFocus {
  from {
    filter: blur(4px);
    transform: scale(0.95);
  }
  to {
    filter: blur(0);
    transform: scale(1);
  }
}

#refreshBtn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: #0a1014;
  border-radius: 8px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#refreshBtn:hover {
  background: transparent;
  opacity: 0.82;
}

#refreshBtn img {
  width: 20px;
  height: 20px;
  display: block;
  filter: none;
}

#refreshBtn.is-theme-switching {
  animation: shuffleButtonBlur 0.32s ease;
}

#refreshCountLabel {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.index-page.ui-light-mode #refreshBtn {
  background: transparent;
  color: #0a1014;
  border: 0;
}

.index-page.ui-light-mode #refreshBtn:hover {
  background: transparent;
  opacity: 0.82;
}

.index-page.ui-light-mode #refreshBtn img {
  filter: none;
}

.index-page.ui-light-mode #refreshCountLabel {
  color: #fff;
}

.hue-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.hue-wrap.is-open .hue-control {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

#hueValue {
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  line-height: 1;
  color: #111;
  min-width: 40px;
  text-align: right;
}

.hue-control input[type="range"] {
  width: 130px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 18px;
}

.hue-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 16.66%,
    #00ff00 33.33%,
    #00ffff 50%,
    #0000ff 66.66%,
    #ff00ff 83.33%,
    #ff0000 100%
  );
}

.hue-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: -4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

.hue-control input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 16.66%,
    #00ff00 33.33%,
    #00ffff 50%,
    #0000ff 66.66%,
    #ff00ff 83.33%,
    #ff0000 100%
  );
}

.hue-control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

.template-skeleton-tile {
  width: 100%;
  border-radius: 0;
  display: block;
}

.template-grid.is-shuffling,
.template-grid.is-theme-switching {
  animation: none;
}

.index-page.theme-mode-transitioning .index-header,
.index-page.theme-mode-transitioning .filter-top,
.index-page.theme-mode-transitioning .template-grid {
  transition: none;
}

@keyframes shuffleBlur {
  0% {
    filter: blur(0px);
    opacity: 1;
  }
  40% {
    filter: blur(2px);
    opacity: 0.92;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes shuffleButtonBlur {
  0% {
    filter: blur(0px);
    opacity: 1;
  }
  40% {
    filter: blur(1.5px);
    opacity: 0.8;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

.template-card {
  position: relative;
  padding: 8px;
  background: var(--surface);
  border-radius: 10px;
}

.template-card-designer {
  padding-top: 28px;
}

.designer-page .template-card {
  background: transparent;
  border-radius: 0;
  padding: 24px 0 0;
}

.designer-page .template-card-designer {
  padding-top: 24px;
}

.template-style-toggle-row {
  margin-top: 8px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.template-mode-toggle-row {
  margin-top: 6px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.template-title-row {
  margin-top: 6px;
  width: 100%;
}

.designer-category-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.designer-category-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.designer-category-head-left {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.designer-category-head-right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-category-cover-upload-btn {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0a1014;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.designer-category-cover-upload-btn:hover {
  background: #f5f7fa;
  opacity: 1;
}

.designer-page .designer-category-name-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 28px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0a1014;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  padding: 0 10px;
  outline: none;
  -webkit-text-fill-color: #0a1014;
  caret-color: #0a1014;
}

.designer-page .designer-category-name-input::placeholder {
  color: rgba(10, 16, 20, 0.4);
  -webkit-text-fill-color: rgba(10, 16, 20, 0.4);
}

.designer-page .designer-category-name-input:focus {
  border-color: #2544f5;
  background: #ffffff;
  color: #0a1014;
  -webkit-text-fill-color: #0a1014;
}

.designer-category-meta {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  color: rgba(10, 16, 20, 0.52);
}

.designer-category-pack-delete-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #ff4d4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.designer-category-pack-delete-btn img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.designer-category-pack-delete-btn:hover {
  background: #f03d40;
  opacity: 1;
}

.designer-category-templates {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

.template-page-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: rgba(10, 16, 20, 0.66);
}

.template-cover-chip {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0a1014;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.template-cover-chip.active {
  background: #0a1014;
  color: #ffffff;
  border-color: #0a1014;
}

.designer-page .template-title-input {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0a1014;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  padding: 0 10px;
  outline: none;
  -webkit-text-fill-color: #0a1014;
  caret-color: #0a1014;
}

.designer-page .template-title-input::placeholder {
  color: rgba(10, 16, 20, 0.4);
  -webkit-text-fill-color: rgba(10, 16, 20, 0.4);
}

.designer-page .template-title-input:focus {
  border-color: #0a1014;
  background: #ffffff;
  color: #0a1014;
  -webkit-text-fill-color: #0a1014;
}

.designer-page .designer-style-tabs-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.designer-page .designer-style-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.designer-page .designer-style-tabs {
  width: max-content;
  min-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
}

.designer-page .designer-style-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.designer-page .designer-style-tab-btn {
  height: 28px;
  min-width: 62px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  background: #fff;
  color: rgba(10, 16, 20, 0.58);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.designer-page .designer-style-tab-btn.active {
  border-color: #0a1014;
  color: #fff;
  background: #0a1014;
}

.designer-page .designer-style-tab-order {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.designer-page .designer-style-order-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 0;
  padding: 0;
  background: #eff1f5;
  color: rgba(10, 16, 20, 0.72);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.designer-page .designer-style-order-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.designer-page #designerGrid.template-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.designer-style-current-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.designer-style-current-head-left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.designer-style-current-head-right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.designer-style-current-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.designer-style-current-title {
  margin: 0;
  color: #0a1014;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.designer-style-cover-upload-btn {
  min-width: 80px;
}

.designer-template-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.designer-template-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.designer-template-section-head-left {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.designer-template-section-head-right {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-template-section-title {
  margin: 0;
  color: #0a1014;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.designer-template-section-size {
  color: rgba(10, 16, 20, 0.5);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.designer-section-action-btn {
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: #eff1f5;
  color: #0a1014;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 10px;
  white-space: nowrap;
}

.designer-section-action-btn.is-primary {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.designer-template-section-row {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 0 2px;
  scrollbar-width: thin;
}

.designer-template-section-empty {
  min-width: 168px;
  height: 140px;
  border: 1px dashed rgba(10, 16, 20, 0.22);
  border-radius: 10px;
  background: #f7f8fa;
  color: rgba(10, 16, 20, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.designer-page .designer-template-section-row .template-card-designer {
  flex: 0 0 188px;
  width: 188px;
  min-width: 188px;
  padding-top: 0;
}

.designer-page .designer-template-section-row .thumbnail-stage {
  width: 100%;
  margin: 0;
}

.template-editor-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.template-base-height-row {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.template-order-row {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.template-order-btn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: #eff1f5;
  color: #0a1014;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.template-order-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.template-base-height-label {
  flex: 0 0 auto;
  color: rgba(10, 16, 20, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.designer-page .template-base-height-input {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 0 10px;
  outline: none;
}

.designer-page .template-base-height-input:focus {
  border-color: #0a1014;
}

.designer-page #designerReviewModal {
  z-index: 160;
}

.designer-page #designerReviewModal .modal-card {
  width: min(1140px, 100%);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  color: #0a1014;
  padding: 0;
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.designer-review-modal-head {
  width: 100%;
  height: 48px;
  border-bottom: 1px solid #ececec;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.designer-review-modal-head h2 {
  margin: 0;
  color: #0a1014;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.designer-review-modal-head button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.designer-review-modal-head button img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.designer-page #designerReviewModal .designer-manual-preview-section {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 12px;
  overflow: auto;
}

.template-cover-slot-list {
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.template-cover-slot-btn {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(10, 16, 20, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0a1014;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 600;
}

.template-cover-slot-btn.is-filled {
  background: #eef1fd;
  border-color: rgba(37, 68, 245, 0.32);
  color: #2544f5;
}

.template-cover-slot-empty {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(10, 16, 20, 0.5);
}

.template-style-chip {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  opacity: 0.38;
  transition: opacity 0.18s ease;
}

.template-style-chip.active {
  background: transparent;
  opacity: 1;
  outline: none;
}

.template-style-chip:disabled {
  opacity: 0.5;
  cursor: wait;
}

.template-style-chip-thumb {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
  opacity: 1;
  transition: opacity 0.18s ease;
  filter: none;
}

.template-style-chip.active .template-style-chip-thumb {
  opacity: 1;
  filter: none;
}

.template-mode-chip {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  opacity: 0.4;
  transition: opacity 0.18s ease;
}

.template-mode-chip.active {
  opacity: 1;
}

.template-mode-chip:disabled {
  opacity: 0.5;
  cursor: wait;
}

.template-mode-chip-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.52);
}

.template-mode-chip.active .template-mode-chip-icon {
  filter: brightness(0) saturate(100%);
}

.delete-btn {
  position: static;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 8px auto 0;
  border-radius: 6px;
  background: #ff4d4f;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-btn img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.delete-btn:hover {
  background: #f03d40;
  opacity: 1;
}

.thumbnail-stage {
  width: 160px;
  height: auto;
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
  background: #000;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  margin: 0 auto;
}

.designer-page .thumbnail-stage {
  width: 100%;
  background: transparent;
}

.thumbnail-canvas {
  width: 1080px;
  height: 1350px;
  transform-origin: top left;
  pointer-events: none;
}

.thumbnail-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateZ(0);
}

.index-page .template-grid {
  display: block;
  padding: 0 12px 12px;
  column-width: 160px;
  column-gap: 6px;
}

.index-page .style-depth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
  row-gap: 6px;
  column-gap: 6px;
  column-width: auto;
}

.index-page .template-skeleton-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 6px;
  border-radius: 6px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.index-page .template-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 6px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 0 0 4px;
  background: transparent;
  border-radius: 6px;
}

.index-page .style-depth-grid .template-card {
  display: block;
  margin: 0;
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.grid-click-hint-overlay {
  position: fixed;
  left: 24px;
  top: calc(env(safe-area-inset-top, 0px) + var(--index-header-height, 56px) + 8px);
  width: 25px;
  height: 24px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 74;
}

.grid-click-hint-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.5);
}

.grid-click-hint-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(0.75);
  transform-origin: center;
  animation: cardClickHintPulse 1.6s ease-out infinite;
}

.index-page .template-card-depth-stack {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  pointer-events: none;
}

.index-page .template-card-depth-a,
.index-page .template-card-depth-b {
  display: block;
  height: 2px;
  border-radius: 0 0 2px 2px;
}

.index-page .template-card-depth-a {
  width: max(0px, calc(100% - 10px));
  background: hsl(var(--card-hue, 240) 52% 48% / 0.28);
}

.index-page .template-card-depth-b {
  width: max(0px, calc(100% - 20px));
  background: hsl(var(--card-hue, 240) 44% 58% / 0.2);
}

@keyframes cardClickHintPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0.92;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.45);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.45);
    opacity: 0;
  }
}

.top-start-tooltip {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 18px;
  pointer-events: none;
}

.style-depth-intro {
  width: 100%;
  margin: 8px 0 8px;
  padding: 0 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  text-align: center;
}

.style-depth-intro-kinds {
  margin: 0;
  color: rgba(10, 16, 20, 0.6);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.style-depth-intro-kinds span {
  color: rgba(10, 16, 20, 0.6);
  font-size: 14px;
  line-height: 1;
}

.style-depth-intro-title {
  margin: 0;
  color: #0a1014;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.top-start-tooltip .top-start-tooltip-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  max-width: min(92vw, 420px);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  animation: topStartTooltipFloat 2.8s ease-in-out infinite;
}

.top-start-tooltip .top-start-tooltip-secondary {
  display: none;
}

.index-page.is-cards-depth .top-start-tooltip .top-start-tooltip-item {
  flex: 1 1 0;
  max-width: none;
  overflow: visible;
}

.index-page.is-cards-depth .top-start-tooltip {
  display: none;
}

.index-page.is-cards-depth .top-start-tooltip .top-start-tooltip-secondary {
  display: inline-flex;
}

.top-start-tooltip.in-header {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + (var(--index-header-height, 56px) - 28px) / 2);
  transform: translateX(-50%);
  width: auto;
  margin: 0;
  z-index: 65;
}

.top-start-tooltip.in-grid {
  position: relative;
}

.top-start-tooltip.in-grid .top-start-tooltip-item {
  color: rgba(10, 16, 20, 0.74);
  font-weight: 500;
}

.index-page.is-style-depth .top-start-tooltip.in-grid .top-start-tooltip-primary {
  background: #0a1014;
  color: #fff;
  font-weight: 500;
}

.index-page.is-style-depth .top-start-tooltip.in-grid {
  animation: topStartTooltipFloat 2.8s ease-in-out infinite;
  will-change: transform;
}

.index-page.is-style-depth .top-start-tooltip.in-grid .top-start-tooltip-primary {
  animation: none;
}

.top-start-tooltip .top-start-tooltip-item::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 52%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-240%) skewX(-18deg);
  pointer-events: none;
  z-index: 0;
  animation: topStartTooltipShimmer 2.4s ease-in-out infinite;
}

.top-start-tooltip .top-start-tooltip-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #eff1f5;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  animation: topStartTooltipArrowFloat 2.8s ease-in-out infinite;
}

.index-page.is-style-depth .top-start-tooltip .top-start-tooltip-primary::after {
  content: none;
}

.index-page.is-style-depth .top-start-tooltip .top-start-tooltip-primary::before {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.index-page.is-style-depth .top-start-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #0a1014;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1.5px;
  animation: none;
}

.index-page.is-cards-depth .top-start-tooltip .top-start-tooltip-secondary::after {
  top: -5px;
  bottom: auto;
  animation: topStartTooltipArrowFloatUp 2.8s ease-in-out infinite;
}

.index-page.is-cards-depth .top-start-tooltip .top-start-tooltip-primary::after {
  bottom: -5px;
  top: auto;
  animation: topStartTooltipArrowFloat 2.8s ease-in-out infinite;
}

@keyframes topStartTooltipFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes topStartTooltipArrowFloat {
  0% {
    transform: translate(-50%, 0) rotate(45deg);
  }
  50% {
    transform: translate(-50%, -2px) rotate(45deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(45deg);
  }
}

@keyframes topStartTooltipArrowFloatUp {
  0% {
    transform: translate(-50%, 0) rotate(45deg);
  }
  50% {
    transform: translate(-50%, 2px) rotate(45deg);
  }
  100% {
    transform: translate(-50%, 0) rotate(45deg);
  }
}


@keyframes topStartTooltipShimmer {
  0% {
    transform: translateX(-240%) skewX(-18deg);
    opacity: 0;
  }
  16% {
    opacity: 0.58;
  }
  46% {
    transform: translateX(260%) skewX(-18deg);
    opacity: 0;
  }
  100% {
    transform: translateX(260%) skewX(-18deg);
    opacity: 0;
  }
}

.style-depth-panel {
  width: 100%;
  padding: 0;
}

.style-depth-grid {
  max-width: none;
}

.style-depth-grid .style-depth-card {
  cursor: pointer;
}

.style-depth-grid .style-depth-skeleton-card {
  cursor: default;
  pointer-events: none;
}

.style-depth-grid .style-depth-skeleton-stage {
  width: 100%;
  background: #e7ecf3;
}

.style-depth-grid .style-depth-skeleton-card .template-card-depth-a {
  background: rgba(10, 16, 20, 0.12);
}

.style-depth-grid .style-depth-skeleton-card .template-card-depth-b {
  background: rgba(10, 16, 20, 0.08);
}

.style-depth-grid .style-depth-card.is-style-active .thumbnail-frame {
  outline: 1px solid rgba(10, 16, 20, 0.55);
  outline-offset: 0;
}

.style-depth-grid .style-depth-card.is-style-loading {
  opacity: 0.52;
  pointer-events: none;
}

.style-depth-fallback-card .thumbnail-stage {
  background: #e7ecf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-depth-fallback-icon {
  width: 42px;
  height: 42px;
  display: block;
}

.style-depth-back-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}

.style-depth-back-btn {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: #eff1f5;
  color: #0a1014;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.index-page .template-card-meta-row {
  margin-top: 8px;
  width: 100%;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0a1014;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.index-page .template-card-meta-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.index-page .template-card-meta-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #0a1014;
  text-align: right;
}

.index-page .template-card-meta-count-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.index-page .template-card-meta-count-text {
  display: inline-block;
  line-height: 1.2;
}

.index-page .template-card-title {
  margin: 4px 0 0;
  width: 100%;
  padding: 0 4px;
  color: #68717b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-page .thumbnail-frame {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.index-page .thumbnail-stage {
  width: 100%;
  height: auto;
  margin: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 6px;
  overflow: hidden;
  clip-path: none;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.index-page .style-depth-grid .thumbnail-stage {
  background: #edf2f7;
}

.index-page .style-depth-grid .thumbnail-stage.has-preview-image {
  position: relative;
}

.index-page .style-depth-grid .thumbnail-stage.has-preview-image > .thumbnail-preview-image {
  position: relative;
  z-index: 1;
}

.index-page .thumbnail-stage.has-preview-image .thumbnail-preview-image {
  filter: hue-rotate(var(--thumbnail-hue-angle, 0deg));
}

.index-page .style-depth-grid .thumbnail-stage.has-preview-image.is-animated-hue .thumbnail-preview-image {
  filter: none;
}

.index-page .style-depth-grid .thumbnail-stage.has-preview-image.is-animated-hue {
  filter: hue-rotate(var(--thumbnail-hue-base-angle, 0deg));
  animation: styleDepthCoverHueSpin var(--style-depth-hue-duration, 5s) linear infinite;
  animation-delay: var(--style-depth-hue-delay, 0s);
  will-change: filter;
}

/* Keep the depth bars synced with the animated cover hue on style cards. */
.index-page .style-depth-grid .template-card.is-animated-card-hue .template-card-depth-stack {
  filter: hue-rotate(0deg);
  animation: styleDepthDepthHueSpin var(--style-depth-hue-duration, 5s) linear infinite;
  animation-delay: var(--style-depth-hue-delay, 0s);
  will-change: filter;
}

@keyframes styleDepthCoverHueSpin {
  from {
    filter: hue-rotate(var(--thumbnail-hue-base-angle, 0deg));
  }
  to {
    filter: hue-rotate(calc(var(--thumbnail-hue-base-angle, 0deg) + 360deg));
  }
}

@keyframes styleDepthDepthHueSpin {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

.index-page .thumbnail-stage.has-preview-image {
  box-shadow: none;
  border: 0;
}

.index-page .thumbnail-stage > .thumbnail-canvas {
  border-radius: 6px;
  overflow: hidden;
  transform: translateZ(0);
}

.index-page .thumbnail-stage > .thumbnail-canvas > .template-root {
  border-radius: 6px;
  overflow: hidden;
}

/* Keep every masonry preview tile consistently rounded. */
.index-page .thumbnail-frame,
.index-page .thumbnail-stage,
.index-page .thumbnail-stage > .thumbnail-canvas,
.index-page .thumbnail-stage > .thumbnail-canvas > .template-root {
  border-radius: 6px !important;
  overflow: hidden !important;
  background-clip: padding-box;
}

.index-page .business-info {
  margin: 12px 6px 0;
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(10, 16, 20, 0.45);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.index-page .business-info-toggle-btn {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(10, 16, 20, 0.56);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.index-page .business-info-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/Down2.svg") center / contain no-repeat;
  mask: url("/Down2.svg") center / contain no-repeat;
  transition: transform 200ms ease;
}

.index-page .business-info.is-open .business-info-toggle-icon {
  transform: rotate(180deg);
}

.index-page .business-info-details {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.index-page .business-info-details p {
  margin: 0;
  text-align: center;
}

.style-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-picker-modal {
  width: min(780px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  background: transparent;
}

.style-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.style-picker-item {
  position: relative;
  width: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #111;
  animation: stylePickerDropIn 0.28s ease both;
  animation-delay: var(--style-item-delay, 0s);
}

.style-picker-item:hover {
  background: #fff;
  opacity: 1;
}

.style-picker-item.is-selected {
  outline: 2px solid rgba(0, 0, 0, 0.82);
  outline-offset: 0;
}

.style-picker-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.style-picker-item-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.78);
  text-align: center;
  width: 100%;
  line-height: 1.2;
}

.style-picker-item-spinner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: #111;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.style-picker-item.is-loading .style-picker-item-spinner {
  opacity: 1;
  animation: stylePickerSpin 0.72s linear infinite;
}

.style-picker-item.is-loading .style-picker-item-thumb,
.style-picker-item.is-loading .style-picker-item-name {
  opacity: 0.52;
}

@keyframes stylePickerDropIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes stylePickerSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.index-page.ui-light-mode .empty-state {
  color: rgba(0, 0, 0, 0.58);
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.image-crop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}

.image-crop-card {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0a1014;
  margin: 0;
  overflow: visible;
}

.image-crop-head {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-crop-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #0a1014;
}

.image-crop-close-btn {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.image-crop-close-btn:hover {
  background: transparent;
  opacity: 0.72;
}

.image-crop-close-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.image-crop-stage {
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-crop-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.52);
  touch-action: none;
  user-select: none;
}

.image-crop-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0) 82%
  );
  transform: translateX(-120%);
  opacity: 0;
  z-index: 2;
}

.image-crop-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0.5px solid rgba(255, 255, 255, 0.58);
  z-index: 3;
}

.image-crop-image {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  z-index: 1;
}

.image-crop-slider-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-crop-tip-row {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff1f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(10, 16, 20, 0.64);
  overflow: visible;
}

.image-crop-tip-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #eff1f5;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  pointer-events: none;
}

.image-crop-tip-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) saturate(100%) opacity(0.56);
}

.image-crop-tip-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.image-crop-slider-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}

.image-crop-slider {
  flex: 1 1 auto;
  width: 100%;
  height: 24px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.image-crop-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #e5e8ed;
  border: 0;
}

.image-crop-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  margin-top: -9px;
  background: #0a1014;
  border: 2px solid #fff;
  box-shadow: none;
}

.image-crop-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e5e8ed;
  border: 0;
}

.image-crop-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0a1014;
  border: 2px solid #fff;
  box-shadow: none;
}

.image-crop-slider:focus {
  outline: none;
}

.image-crop-actions {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 2px;
}

.image-crop-actions.is-single {
  justify-content: stretch;
}

.image-crop-color-match-row {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eff1f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-crop-color-match-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0a1014;
  line-height: 1.2;
}

.image-crop-color-match-toggle {
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 2px;
  background: #cfd5dc;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background-color 140ms ease;
}

.image-crop-color-match-toggle.is-on {
  background: #0a1014;
}

.image-crop-color-match-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 140ms ease;
}

.image-crop-color-match-toggle.is-on .image-crop-color-match-toggle-thumb {
  transform: translateX(20px);
}

.image-crop-apply-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #0a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.image-crop-apply-btn:hover {
  background: #0a1014;
  opacity: 0.92;
}

.image-crop-action-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.image-crop-apply-btn .image-crop-action-icon {
  filter: brightness(0) saturate(100%) invert(1);
}

.image-crop-action-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-crop-apply-btn:disabled,
.image-crop-close-btn:disabled,
.image-crop-color-match-toggle:disabled {
  opacity: 0.5;
  cursor: default;
}

.modal-card {
  width: min(860px, 100%);
  background: #0d0d0d;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.designer-page #createModal .modal-card {
  background: #fff;
  border: 1px solid #ececec;
  color: #0a1014;
}

.designer-access-backdrop {
  z-index: 150;
  background: rgba(0, 0, 0, 0.45);
}

.designer-access-card {
  width: min(360px, 100%);
  background: #fff;
  color: #0a1014;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.designer-access-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(10, 16, 20, 0.62);
}

.designer-access-form .field-label {
  color: rgba(10, 16, 20, 0.72);
}

.designer-access-form input[type="password"] {
  width: 100%;
  height: 38px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  padding: 0 10px;
  background: #f4f6f8;
  color: #0a1014;
  font-size: 14px;
}

.designer-access-error {
  margin: 0 0 8px;
  font-size: 12px;
  color: #b10000;
}

.credit-modal-backdrop {
  z-index: 132;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.credit-modal-backdrop.is-opening {
  animation: creditBackdropIn 0.24s ease both;
}

.credit-modal-backdrop.is-opening .credit-modal-card {
  animation: creditModalRiseIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.credit-topup-backdrop {
  z-index: 133;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.credit-topup-sheet {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #fff;
  color: #0a1014;
  border: 0;
  margin: 0;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credit-topup-head {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.credit-topup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0a1014;
  line-height: 1.2;
}

.credit-topup-close-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-topup-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.credit-topup-amount {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #0a1014;
}

.credit-topup-widget-methods,
.credit-topup-widget-agreement {
  width: 100%;
}

#creditTopupWidgetAgreement,
.credit-topup-widget-agreement {
  display: none !important;
}

.credit-topup-status {
  margin: 0;
  min-height: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #c43a3a;
}

.credit-topup-status.hidden {
  display: none;
}

.credit-topup-pay-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #0a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-topup-pay-btn:disabled {
  opacity: 0.45;
}

.credit-topup-pay-btn-content {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.credit-topup-pay-logo {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.credit-topup-pay-label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

@keyframes creditBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@keyframes creditModalRiseIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.credit-modal-card {
  width: 100%;
  max-width: 100%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, #161c3f 0%, #0a1014 100%);
  border: 0;
  border-radius: 0;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
}

.pro-subscribe-modal {
  background: #000;
}

.credit-modal-head {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.credit-modal-close-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credit-modal-close-btn:hover {
  background: transparent;
  opacity: 0.7;
}

.credit-modal-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
}

.credit-plan-list {
  width: 100%;
}

.credit-plan-list:not(.credit-plan-tabs) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-plan-list:not(.credit-plan-tabs) .credit-plan-option {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: #0a1014;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.credit-plan-list:not(.credit-plan-tabs) .credit-plan-option.active {
  border-color: #2544f5;
  background: #eef1fd;
}

.credit-plan-main {
  font-size: 14px;
  font-weight: 600;
  color: #0a1014;
}

.credit-plan-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-plan-price-amount {
  font-size: 16px;
  font-weight: 600;
  color: #0a1014;
}

.credit-plan-discount {
  font-size: 16px;
  font-weight: 600;
  color: #2544f5;
}

.pro-subscribe-modal .credit-plan-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 0;
}

.pro-subscribe-modal .credit-plan-option {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #b5bdc6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, filter 0.2s ease;
}

.pro-subscribe-modal .credit-plan-option-icon {
  height: 16px;
  width: auto;
  max-width: 100%;
  display: block;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.pro-subscribe-modal .credit-plan-chip {
  margin-left: 4px;
  padding: 0 6px;
  height: 16px;
  border-radius: 4px;
  background: rgba(127, 150, 255, 0.22);
  color: #7f96ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pro-subscribe-modal .credit-plan-option.active {
  border-bottom-color: #fff;
}

.pro-subscribe-modal .credit-plan-option:hover {
  background: transparent;
}

.pro-subscribe-modal .credit-plan-option.active .credit-plan-option-icon,
.pro-subscribe-modal .credit-plan-option:hover .credit-plan-option-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.credit-modal-title-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.credit-modal-plan-logo-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.credit-modal-plan-logo {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.credit-modal-primary-price {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.credit-modal-feature-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-modal-feature-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.credit-modal-feature-text {
  display: inline-block;
}

.credit-modal-feature-item::before {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #9a9a9a;
  flex: 0 0 auto;
}

.credit-modal-feature-list .credit-modal-feature-item:first-child {
  color: #f2f6ff;
}

.credit-modal-feature-list .credit-modal-feature-item:first-child::before {
  background: rgba(242, 246, 255, 0.92);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .credit-modal-feature-list .credit-modal-feature-item:first-child .credit-modal-feature-text {
    background-image: linear-gradient(
      102deg,
      rgba(242, 246, 255, 0.55) 12%,
      rgba(255, 255, 255, 1) 50%,
      rgba(242, 246, 255, 0.55) 88%
    );
    background-size: 220% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: creditModalFirstFeatureShimmer 2.3s ease-in-out infinite;
  }
}

@keyframes creditModalFirstFeatureShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.credit-modal-feature-ebook > span {
  color: #9a9a9a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .credit-modal-feature-ebook > span {
    background-image: linear-gradient(100deg, #9a9a9a 15%, #ffffff 50%, #9a9a9a 85%);
    background-size: 220% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: creditModalEbookShimmer 2.6s ease-in-out infinite;
  }
}

@keyframes creditModalEbookShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.credit-modal-confirm-btn {
  width: auto;
  flex: 1 1 auto;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.credit-modal-confirm-btn:hover {
  background: #fff;
  opacity: 0.92;
}

.credit-modal-confirm-btn.is-disabled,
.credit-modal-confirm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.credit-modal-action-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.credit-plan-recommend-tooltip {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 28px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #131313;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.credit-plan-recommend-tooltip::before {
  content: none;
}

.credit-cycle-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.credit-cycle-label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.credit-cycle-switch {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.credit-cycle-switch:hover,
.credit-cycle-switch:focus,
.credit-cycle-switch:focus-visible,
.credit-cycle-switch:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.credit-cycle-switch-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #131313;
  position: relative;
  transition: background-color 0.18s ease;
}

.credit-cycle-switch-thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.credit-cycle-switch.is-on .credit-cycle-switch-track {
  background: #ffffff;
}

.credit-cycle-switch.is-on .credit-cycle-switch-thumb {
  background: #0a1014;
  transform: translate(20px, -50%);
}

.auth-backdrop {
  --auth-modal-shift-y: -100px;
  z-index: 130;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Contact modal also uses auth-backdrop class; keep shift neutral to prevent jump-down. */
.auth-backdrop.contact-backdrop {
  --auth-modal-shift-y: 0px;
}

.auth-backdrop.is-opening {
  animation: authBackdropIn 0.28s ease both;
}

.auth-backdrop.is-opening .auth-modal-card {
  animation: authModalRiseIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-backdrop.subscription-cancel-backdrop.is-opening .auth-modal-card.subscription-cancel-modal-card {
  animation: accountMenuCardIn 0.26s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

/* Prevent double/opening animation conflicts on contact modal card. */
.auth-backdrop.contact-backdrop.is-opening .auth-modal-card.contact-modal-card {
  animation: contactModalDropIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@keyframes authModalRiseIn {
  from {
    opacity: 0;
    transform: translateY(calc(var(--auth-modal-shift-y) - 14px)) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(var(--auth-modal-shift-y)) scale(1);
    filter: blur(0px);
  }
}

.auth-modal-card {
  width: min(380px, 100%);
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  color: #0a1014;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(var(--auth-modal-shift-y));
}

#authModal.auth-backdrop {
  --auth-modal-shift-y: 0px;
  align-items: flex-start;
  justify-content: stretch;
  padding: 0;
}

#authModal .auth-modal-card {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  margin: 0;
}

.modal-backdrop.contact-backdrop {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.auth-modal-card.contact-modal-card {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px;
  gap: 0;
  transform: none;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Keep subscription-cancel modal as a bottom sheet with no radius. */
.modal-backdrop.auth-backdrop.subscription-cancel-backdrop {
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
}

.auth-modal-card.subscription-cancel-modal-card {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 12px;
  gap: 12px;
  transform: none;
  box-sizing: border-box;
}

.auth-modal-card.subscription-cancel-modal-card .subscription-cancel-confirm-btn {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #d93025;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-card.subscription-cancel-modal-card .subscription-cancel-confirm-btn:hover,
.auth-modal-card.subscription-cancel-modal-card .subscription-cancel-confirm-btn:active,
.auth-modal-card.subscription-cancel-modal-card .subscription-cancel-confirm-btn:focus,
.auth-modal-card.subscription-cancel-modal-card .subscription-cancel-confirm-btn:focus-visible {
  background: #d93025;
  color: #fff;
}

#contactModal.contact-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  margin: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

#contactModal .contact-modal-card {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  padding: 12px;
  box-sizing: border-box;
  transform: none;
  overflow-y: auto;
  overflow-x: hidden;
}

#contactModal .contact-title-row {
  margin-bottom: 12px;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-modal-logo {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) saturate(100%);
}

.auth-close-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  transform: none;
}

.auth-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0);
}

.auth-close-btn:hover {
  background: transparent;
  opacity: 0.65;
}

.auth-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 0;
  margin-bottom: 0;
}

.auth-mode-btn {
  height: 36px;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #b5bdc6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.auth-mode-btn.active {
  color: #0a1014;
  border-bottom-color: #0a1014;
}

.auth-mode-btn:hover {
  background: transparent;
  color: #0a1014;
}

.auth-mode-btn.blur-pulse {
  animation: ratioFilterBlurPulse 0.22s ease;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.auth-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  height: 48px;
  border: 1px solid #cbd2d9;
  border-radius: 9px;
  background: #fff;
  padding: 6px 12px;
  justify-content: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.auth-field:focus-within {
  border-color: #0a1014;
  box-shadow: 0 0 0 1px rgba(10, 16, 20, 0.18);
}

.auth-field > span {
  display: block;
  height: 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #68717b;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease, height 0.18s ease;
}

.auth-field:focus-within > span {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-3px);
  height: 0;
}

.auth-field > input,
.auth-field > select,
.auth-password-row > input {
  width: 100%;
  height: 20px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #68717b;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  font-family: inherit;
}

.auth-field > input::placeholder,
.auth-field > select,
.auth-password-row > input::placeholder {
  color: #68717b;
  font-weight: 600;
  opacity: 1;
}

.auth-field > select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/Down.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px 16px;
  padding-right: 20px;
  cursor: pointer;
}

.auth-field > select:invalid {
  color: #68717b;
  font-weight: 600;
}

.auth-field > input:focus,
.auth-field > select:focus,
.auth-password-row > input:focus {
  background: transparent;
  outline: none;
}

.auth-password-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-password-row > input {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-password-eye-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #0a1014;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.auth-password-eye-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("/Eye.svg") center / 16px 16px no-repeat;
  mask: url("/Eye.svg") center / 16px 16px no-repeat;
}

.auth-password-eye-btn.is-active {
  color: #0a1014;
}

.auth-password-eye-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(37, 68, 245, 0.25);
}

.auth-password-eye-btn:disabled {
  opacity: 0.4;
}

.auth-password-policy-hint {
  margin: -4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(10, 16, 20, 0.58);
}

.auth-consent-row {
  position: relative;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.88);
  user-select: none;
  cursor: pointer;
}

.auth-consent-row > span:first-child {
  line-height: 1.3;
}

.auth-consent-row > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.auth-consent-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d2d2d2;
  position: relative;
  flex: 0 0 auto;
  transition: background-color 0.2s ease;
}

.auth-consent-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}

.auth-consent-row > input:checked + .auth-consent-switch {
  background: #111;
}

.auth-consent-row > input:checked + .auth-consent-switch::after {
  transform: translateX(18px);
}

.auth-error {
  margin: 0;
  color: #d93025;
  font-size: 12px;
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 9px;
  background: #0a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.auth-submit-btn:hover {
  background: #0a1014;
  opacity: 0.86;
}

.auth-forgot-link {
  align-self: center;
  margin-top: -2px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(10, 16, 20, 0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-password-backdrop {
  z-index: 139;
}

.forgot-password-modal-card {
  width: min(380px, calc(100vw - 24px));
}

.forgot-password-form {
  gap: 10px;
}

.forgot-password-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(10, 16, 20, 0.66);
}

.forgot-password-status.is-error {
  color: #d93025;
}

.forgot-password-status.is-success {
  color: #2544f5;
}

.reset-mail-notice-backdrop {
  z-index: 191;
}

.reset-mail-notice-modal-card {
  width: min(360px, calc(100vw - 24px));
  gap: 10px;
}

.reset-mail-notice-copy {
  margin: 0;
  color: rgba(10, 16, 20, 0.68);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.force-password-backdrop {
  z-index: 190;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.force-password-modal-card {
  width: min(380px, calc(100vw - 24px));
}

.force-password-head {
  gap: 8px;
}

.force-password-copy {
  margin: 0;
  color: rgba(10, 16, 20, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.preview-modal-card {
  width: min(440px, 100%);
  max-width: min(440px, 100%);
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: 100dvh;
  --preview-frame-width: 100%;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.preview-top-bar {
  width: var(--preview-frame-width);
  max-width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  flex: 0 0 auto;
  align-self: center;
  border-bottom: 0.5px solid rgb(218, 219, 219);
}

.preview-top-bar > * {
  align-self: center;
}

.preview-top-title {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 !important;
  margin-bottom: 0 !important;
  color: #0a1014;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding-right: 44px;
}

.preview-top-upgrade-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #0a1014;
  color: #d4d9df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 1;
  overflow: visible;
}

.preview-top-upgrade-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: #0a1014;
  border-right: 0;
  border-bottom: 0;
  pointer-events: none;
}

.preview-top-upgrade-btn .upgrade-cta-label {
  color: #d4d9df;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  background-image: linear-gradient(100deg, #bcc3cb 20%, #ffffff 50%, #bcc3cb 80%);
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: previewTopUpgradeShimmer 2.4s ease-in-out infinite;
}

.preview-top-upgrade-btn:hover {
  opacity: 0.92;
}

@keyframes previewTopUpgradeShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.preview-top-spacer {
  display: none;
}

.preview-back-btn {
  position: static;
  flex: 0 0 auto;
}

.preview-top-tooltip {
  position: absolute;
  left: 52px;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0a1014;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.preview-top-tooltip::after {
  content: none;
}

.preview-top-save-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.preview-close-btn {
  position: absolute;
  right: 16px;
}

.preview-top-actions {
  position: absolute;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.preview-top-hue-wrap {
  width: 32px;
  height: 32px;
}

.preview-top-hue-wrap .bottom-hue-toggle-btn {
  width: 32px;
  height: 32px;
}

.preview-hue-popover {
  position: absolute;
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 24px);
  width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 10px;
  z-index: 15;
}

.preview-tool-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-tool-btn:hover {
  background: transparent;
  opacity: 0.72;
}

.preview-tool-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

@keyframes previewCarouselSwitchBlur {
  0% {
    filter: blur(0px);
  }
  45% {
    filter: blur(2px);
  }
  100% {
    filter: blur(0px);
  }
}

.preview-modal-card.is-carousel-switching .preview-canvas {
  animation: previewCarouselSwitchBlur 0.18s ease both;
}

.preview-viewport {
  width: var(--preview-frame-width);
  max-width: 100%;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  align-self: center;
  position: relative;
}

.preview-modal-card.is-story-scroll-mode .preview-viewport {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.preview-modal-card.is-story-scroll-mode .preview-canvas {
  margin: 0 auto;
}

.preview-modal-card.is-story-scroll-mode .preview-carousel-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(
    env(safe-area-inset-bottom, 0px) +
    var(--preview-download-row-height, 64px) +
    var(--preview-help-row-height, 48px)
  );
  z-index: 9;
}

.preview-carousel-row {
  width: var(--preview-frame-width);
  max-width: 100%;
  min-height: 20px;
  padding: 8px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #fff;
  border-top: 0;
  border-bottom: 0;
  flex: 0 0 auto;
  align-self: center;
}

.preview-carousel-row::-webkit-scrollbar {
  display: none;
}

.preview-carousel-item {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.preview-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 16, 20, 0.28);
  transition: width 0.18s ease, height 0.18s ease, background-color 0.18s ease;
}

.preview-carousel-item.active .preview-carousel-dot {
  width: 8px;
  height: 8px;
  background: #0a1014;
}

.preview-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.preview-carousel-nav-prev {
  left: 0;
}

.preview-carousel-nav-next {
  right: 0;
}

.preview-carousel-nav-btn img {
  width: 48px;
  height: 48px;
  display: block;
}

.preview-carousel-nav-btn:disabled {
  opacity: 0.24;
  pointer-events: none;
}

.preview-modal-card.is-story-scroll-mode::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--preview-frame-width);
  max-width: min(100%, var(--preview-frame-width));
  height: calc(var(--preview-bottom-stack-height, 132px) + env(safe-area-inset-bottom, 0px) + 12px);
  background: #fff;
  z-index: 7;
  pointer-events: none;
}

.preview-download-row {
  width: var(--preview-frame-width);
  max-width: 100%;
  min-height: 48px;
  height: auto;
  padding: 8px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  border-top: 0;
  border-bottom: 0;
  background: #fff;
  flex: 0 0 auto;
  align-self: center;
}

.preview-render-info-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-credit-text {
  margin: 0;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.preview-credit-value {
  color: #2544f5;
}

.preview-render-info-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-render-info-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.preview-render-info-btn:hover {
  opacity: 0.75;
}

.preview-download-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "mode download";
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  min-width: 0;
}

.preview-download-actions.has-render-toggle {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "mode download";
}

.preview-download-actions.has-render-toggle:not(.has-save-icon) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "mode download";
}

.preview-download-actions:not(.has-render-toggle):not(.has-save-icon) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "download";
}

.index-page:not(.user-authenticated) .preview-download-actions {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "download" !important;
}

.index-page:not(.user-authenticated) .preview-download-actions .preview-render-mode-action {
  display: none !important;
}

.index-page:not(.user-authenticated) .preview-download-actions .preview-download-action {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.index-page:not(.user-authenticated) .preview-download-actions .preview-download-action-item {
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

.index-page:not(.user-authenticated) #previewDownloadBtn {
  width: 100% !important;
  min-width: 0;
}

.index-page:not(.user-authenticated) .preview-download-row {
  width: 100%;
  max-width: 100%;
}

.index-page:not(.user-authenticated) .preview-modal-card.is-story-scroll-mode > .preview-download-row,
.index-page:not(.user-authenticated) .preview-modal-card.is-story-scroll-mode > .preview-help-row {
  width: 100%;
  max-width: 100%;
}

.preview-download-action {
  grid-area: download;
}

.preview-render-mode-action {
  grid-area: mode;
}

.preview-render-mode-panel {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: #eff1f5;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.preview-render-mode-copy {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
}

.preview-render-mode-title {
  margin: 0;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.index-page:not(.user-authenticated) .preview-render-mode-title {
  font-size: 14px;
}

.preview-render-mode-remaining {
  margin: 0;
  color: rgba(10, 16, 20, 0.58);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.preview-save-action {
  grid-area: side;
}

.preview-download-action-item {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.preview-download-action-item > button {
  width: 100%;
  min-width: 0;
}

.preview-download-action {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.preview-render-mode-toggle-btn {
  width: 40px;
  min-width: 40px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0a1014;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex: 0 0 40px;
}

.preview-render-mode-toggle-btn:hover,
.preview-render-mode-toggle-btn:active,
.preview-render-mode-toggle-btn:focus,
.preview-render-mode-toggle-btn:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.preview-render-mode-toggle-label {
  margin: 0;
  width: 100%;
  text-align: left;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.preview-render-mode-toggle-switch {
  width: 40px;
  height: 20px;
  margin-bottom: 0;
  border-radius: 999px;
  background: #c3cad3;
  position: relative;
  overflow: hidden;
  transition: background-color 0.18s ease;
}

.preview-render-mode-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-50%);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.preview-render-mode-toggle-btn.is-on .preview-render-mode-toggle-switch {
  background: #0a1014;
}

.preview-render-mode-toggle-btn.is-on .preview-render-mode-toggle-thumb {
  transform: translate(20px, -50%);
  background: #ffffff;
}

.preview-render-mode-toggle-btn:hover {
  opacity: 0.95;
}

.preview-download-tier-icon {
  height: 12px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.preview-modal-card:not(.is-free-tier) .preview-download-tier-icon {
  display: none;
}

.preview-modal-card.is-free-render-mode .preview-download-tier-icon-download {
  display: block !important;
}

.preview-modal-card.is-free-render-mode .preview-download-tier-icon-upgrade {
  display: none !important;
}

.preview-download-action-item.hidden {
  display: none !important;
}

.preview-download-actions.is-single {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  gap: 0;
  grid-template-columns: none;
  grid-template-areas: none;
}

.preview-download-actions.is-single .preview-download-action-item:not(.hidden) {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.preview-download-actions.is-single .preview-download-action-item:not(.hidden) > button {
  width: 100%;
  min-width: 0;
}

.preview-pro-only-text {
  margin: 0;
  color: #0a1014;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.preview-save-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a1014;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 44px;
}

.preview-save-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 20px;
}

.preview-save-btn:hover {
  background: transparent;
  opacity: 0.95;
}

.preview-save-btn.preview-top-save-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  flex: 0 0 24px;
}

.preview-save-btn.preview-top-save-btn:hover,
.preview-save-btn.preview-top-save-btn:active,
.preview-save-btn.preview-top-save-btn:focus,
.preview-save-btn.preview-top-save-btn:focus-visible {
  background: transparent;
  box-shadow: none;
  outline: none;
  opacity: 0.72;
}

.preview-save-btn.preview-top-save-btn.is-saved {
  background: transparent;
  color: inherit;
}

.preview-save-btn.is-saved {
  background: transparent;
  color: #0a1014;
}

.preview-save-btn.is-syncing {
  position: relative;
  pointer-events: none;
  opacity: 1;
}

.preview-save-btn.is-syncing .preview-save-icon {
  opacity: 0;
}

.preview-save-btn.is-syncing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 999px;
  border: 2px solid rgba(10, 16, 20, 0.24);
  border-top-color: #0a1014;
  animation: previewSaveSpin 0.7s linear infinite;
}

@keyframes previewSaveSpin {
  to {
    transform: rotate(360deg);
  }
}

.upgrade-cta-btn {
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #eef1fd;
  color: #2544f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.upgrade-cta-btn:hover {
  opacity: 0.95;
}

.preview-upgrade-btn {
  height: 44px;
  border-radius: 10px;
  padding: 0 12px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
}

.preview-upgrade-btn:hover {
  background: #eff1f5;
  opacity: 0.95;
}

.upgrade-cta-label {
  display: inline-block;
  color: #2544f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.preview-upgrade-btn .upgrade-cta-label {
  color: #0a1014 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  background: none !important;
  -webkit-text-fill-color: #0a1014 !important;
  animation: none !important;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .upgrade-cta-label {
    background-image: linear-gradient(100deg, #2544f5 20%, rgba(255, 255, 255, 0.58) 50%, #2544f5 80%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: upgradeCtaTextShimmer 2.8s ease-in-out infinite;
  }
}

@keyframes upgradeCtaTextShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.preview-modal-card.is-story-scroll-mode > .preview-help-row,
.preview-modal-card.is-story-scroll-mode > .preview-download-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: var(--preview-frame-width);
  max-width: min(100%, var(--preview-frame-width));
  background: #fff;
}

.preview-modal-card.is-story-scroll-mode > .preview-help-row {
  margin-top: 0;
  padding-top: 4px;
  bottom: calc(
    env(safe-area-inset-bottom, 0px) + 8px + var(--preview-download-row-height, 64px)
  );
}

.preview-modal-card.is-story-scroll-mode > .preview-download-row {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.preview-help-brand {
  margin: 0;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
}

.preview-help-copy {
  position: relative;
  color: #0a1014;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgb(239, 241, 245);
  text-align: center;
  overflow: visible !important;
  text-overflow: initial !important;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
  flex: 0 0 auto;
}

.preview-help-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  background: rgb(239, 241, 245);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
}

.preview-download-row > .preview-help-row {
  width: 100%;
  margin-top: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  overflow: visible;
}

#previewDownloadBtn {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #0a1014;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  flex: 1 1 0;
  white-space: nowrap;
}

.preview-download-icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex: 0 0 16px;
}

.preview-download-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  display: none;
}

.preview-download-progress {
  display: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

#previewDownloadBtn.is-busy .preview-download-spinner {
  display: inline-block;
  animation: previewDownloadSpin 0.7s linear infinite;
}

#previewDownloadBtn.is-busy .preview-download-icon {
  display: none;
}

#previewDownloadBtn.is-busy .preview-download-progress {
  display: inline-block;
}

#previewDownloadBtn.is-busy .preview-download-label {
  display: none;
}

@keyframes previewDownloadSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#previewDownloadBtn:hover {
  background: #0a1014;
  opacity: 0.9;
}

#previewDownloadBtn:disabled {
  opacity: 1;
  background: #0a1014;
  color: #fff;
  cursor: wait;
}

.preview-canvas {
  width: 100%;
  height: 100%;
  transform-origin: top left;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: block;
  transition: opacity 0.16s ease;
}

.preview-viewport > .preview-corner-watermark {
  position: absolute !important;
  left: 0 !important;
  top: auto !important;
  bottom: var(--preview-corner-watermark-bottom-offset, 160px) !important;
  z-index: 4 !important;
  height: var(--preview-corner-watermark-height, 60px) !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: fill !important;
  display: none;
  pointer-events: none !important;
  user-select: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.preview-viewport > .preview-noshot-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.preview-modal-card.is-watermark-visible .preview-viewport > .preview-corner-watermark {
  display: block !important;
}

.preview-viewport.is-font-loading .preview-canvas {
  opacity: 0;
}

.preview-font-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
}

.preview-font-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(226, 231, 237, 0.94) 0%,
    rgba(244, 247, 250, 0.98) 50%,
    rgba(226, 231, 237, 0.94) 100%
  );
  background-size: 220% 100%;
  animation: initialSkeletonShimmer 1.1s linear infinite;
}

.preview-backdrop {
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: previewFadeIn 0.16s ease-out;
  overflow: hidden;
}

.preview-backdrop,
.preview-modal-card,
.preview-viewport,
.preview-canvas {
  touch-action: pan-y;
}

.preview-backdrop.is-opening .preview-modal-card {
  position: relative;
  z-index: 1;
  animation: previewPopIn 0.22s ease-out;
}

.preview-backdrop.is-opening .preview-canvas {
  animation: previewQuickBlurIn 0.18s ease-out 0.14s both;
}

.preview-backdrop.is-opening #closePreviewBtn {
  animation: previewQuickBlurIn 0.16s ease-out 0.20s both;
}

@media (min-width: 1134px) {
  .modal-backdrop.saved-templates-backdrop {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
  }

  .saved-templates-modal-card {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    animation: savedTemplatesSlideInLeft 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .preview-backdrop {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    pointer-events: none;
  }

  .preview-modal-card {
    width: 400px !important;
    max-width: 400px !important;
    min-width: 400px !important;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    pointer-events: auto;
  }

  .preview-backdrop.is-opening .preview-modal-card {
    animation: previewSlideInRight 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.render-info-backdrop {
  z-index: 140;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.render-info-modal-card {
  width: min(360px, 100%);
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0a1014;
}

.render-info-close-btn {
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.render-info-close-btn img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0);
}

.render-info-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #0a1014;
}

.render-info-subscribe-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: #0a1014;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.render-info-subscribe-btn:hover {
  opacity: 0.9;
}

.render-info-subscribe-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes previewPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes previewSlideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes previewQuickBlurIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.template-root {
  width: 1080px;
  height: 1350px;
  position: relative;
  overflow: hidden;
}

.template-root.hue-root {
  filter: hue-rotate(var(--template-hue-angle, 0deg));
}

.template-root.hue-root .hue-image-neutral {
  filter: hue-rotate(calc(-1 * var(--template-hue-angle, 0deg)));
}

.template-root.hue-root .hue-image-neutral .hue-image-reapply {
  filter: hue-rotate(var(--template-hue-angle, 0deg));
}

@supports (-webkit-touch-callout: none) {
  .template-root.hue-root svg.hue-webkit-svg-filter-fix {
    filter: hue-rotate(calc(2 * var(--template-hue-angle, 0deg)));
  }
}

.template-root svg,
.template-root svg * {
  pointer-events: none !important;
}

.template-root [data-svg-pass-through-wrap="1"] {
  pointer-events: none !important;
}

.template-root .editable-text-input {
  width: fit-content !important;
  display: inline-block !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.template-root .editable-text-input.editable-textarea {
  resize: none !important;
  overflow: hidden !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  min-height: 0 !important;
  height: auto !important;
}

.template-root .editable-text-input:focus {
  opacity: 0.5;
}

.template-root .editable-text-input.input-fill {
  width: 100% !important;
  display: block !important;
}

@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    .preview-modal-card .template-root .editable-text-input[data-font-family-group="pretendard"] {
      transform: translateY(0) !important;
    }
  }
}

.image-placeholder {
  position: relative;
  cursor: pointer;
}

.image-placeholder:not(.has-image) {
  background-color: hsl(
    var(--template-hue-angle, 0deg)
      var(--placeholder-bg-s, 10%)
      var(--placeholder-bg-l, 72%)
  ) !important;
  background-image: repeating-linear-gradient(
    -45deg,
    hsla(
      var(--template-hue-angle, 0deg)
        var(--placeholder-stripe-s1, 16%)
        var(--placeholder-stripe-l1, 48%) /
        var(--placeholder-stripe-a1, 0.34)
    )
      0 12px,
    hsla(
      var(--template-hue-angle, 0deg)
        var(--placeholder-stripe-s2, 10%)
        var(--placeholder-stripe-l2, 84%) /
        var(--placeholder-stripe-a2, 0.18)
    )
      12px 28px
  ) !important;
  background-size: 40px 40px !important;
}

.template-root[data-template-theme-mode="light"] {
  --placeholder-bg-s: 10%;
  --placeholder-bg-l: 90%;
  --placeholder-stripe-s1: 12%;
  --placeholder-stripe-l1: 72%;
  --placeholder-stripe-a1: 0.24;
  --placeholder-stripe-s2: 8%;
  --placeholder-stripe-l2: 97%;
  --placeholder-stripe-a2: 0.2;
}

.template-root[data-template-theme-mode="dark"] {
  --placeholder-bg-s: 9%;
  --placeholder-bg-l: 24%;
  --placeholder-stripe-s1: 12%;
  --placeholder-stripe-l1: 38%;
  --placeholder-stripe-a1: 0.36;
  --placeholder-stripe-s2: 8%;
  --placeholder-stripe-l2: 12%;
  --placeholder-stripe-a2: 0.26;
}

/* Keep empty placeholder tint stable while the root itself hue-rotates. */
.template-root.hue-root .image-placeholder:not(.has-image) {
  filter: hue-rotate(calc(-1 * var(--template-hue-angle, 0deg)));
}

.image-placeholder::after {
  content: "IMAGE";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
}

.image-placeholder.has-image::after {
  display: none;
}

.preview-canvas .image-placeholder:not(.has-image)::after {
  display: none;
}

.members-page {
  background: #fff;
  color: #0a1014;
}

.members-page .app-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: calc(var(--index-header-height) + 20px) 20px 24px;
}

.members-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.members-header-top {
  padding-top: 12px;
  padding-bottom: 0;
}

.members-header-bottom {
  padding: 0;
  justify-content: space-between;
  align-items: center;
}

.members-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0a1014;
}

.members-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.members-reload-btn {
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 14px;
  font-weight: 600;
}

.members-reload-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.members-export-btn {
  background: #f2f5ff;
  color: #2544f5;
}

.members-backup-btn {
  background: #0a1014;
  color: #fff;
}

.members-kpi-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.members-kpi-card {
  min-height: 88px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.members-kpi-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(10, 16, 20, 0.52);
  font-weight: 600;
}

.members-kpi-value {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  color: #0a1014;
  font-weight: 700;
}

.members-kpi-sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(10, 16, 20, 0.56);
  font-weight: 500;
}

.members-panel {
  width: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.members-status {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(10, 16, 20, 0.62);
  border-bottom: 1px solid #eef1f4;
}

.members-status.is-error {
  color: #b10000;
}

.members-head-row,
.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px 94px 112px 130px 130px 170px;
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
}

.members-head-row {
  background: #f7f9fb;
  border-bottom: 1px solid #eef1f4;
  color: rgba(10, 16, 20, 0.55);
  font-size: 12px;
  font-weight: 600;
}

.member-row {
  border-bottom: 1px solid #eef1f4;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-email {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  color: #0a1014;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-pro-cell {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.member-occupation-cell {
  min-width: 0;
}

.member-occupation-value {
  margin: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  padding: 0 10px;
  background: #f7f9fb;
  color: #0a1014;
  font-size: 13px;
  line-height: 30px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-pro-badge {
  margin: 0;
  min-width: 46px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.member-pro-badge.is-pro {
  background: #2544f5;
  color: #fff;
}

.member-pro-badge.is-free {
  background: #eff1f5;
  color: #6f7a87;
}

.member-download-cell {
  min-width: 0;
}

.member-credits-cell {
  min-width: 0;
}

.member-download-value {
  margin: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  padding: 0 10px;
  background: #f7f9fb;
  color: #0a1014;
  font-size: 14px;
  line-height: 30px;
  font-weight: 600;
}

.member-visit-cell {
  min-width: 0;
}

.member-visit-value {
  margin: 0;
  width: 100%;
  min-height: 32px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  padding: 0 10px;
  background: #f7f9fb;
  color: #0a1014;
  font-size: 14px;
  line-height: 30px;
  font-weight: 600;
}

.member-download-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #0a1014;
  font-size: 14px;
}

.member-credit-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #0a1014;
  font-size: 14px;
}

.member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.member-action-btn {
  height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  background: #eff1f5;
  color: #0a1014;
  font-size: 13px;
  font-weight: 600;
}

.member-action-btn.secondary {
  background: #f2f4f7;
  color: #505a67;
}

.member-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.members-empty {
  margin: 0;
  padding: 24px 14px;
  font-size: 14px;
  color: rgba(10, 16, 20, 0.6);
}

.members-access-card h2 {
  margin: 0 0 10px;
}

.playground-page {
  --index-header-row-top: 48px;
  --index-header-row-bottom: 0px;
  --index-header-height: 48px;
  background: #ffffff;
  color: #0a1014;
}

.playground-page .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: calc(var(--index-header-height) + 12px) 8px 16px;
}

.playground-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.playground-header-top {
  padding-top: 4px;
  padding-bottom: 0;
}

.playground-header-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.playground-logo-box {
  width: 32px;
  height: 32px;
}

.playground-ratio-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.playground-ratio-btn {
  min-width: 0;
  height: 32px;
  border-radius: 8px;
  padding: 0 8px;
  background: #eff1f5;
  color: #68717b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.playground-ratio-btn.active {
  background: #0a1014;
  color: #fff;
}

.playground-main {
  width: 100%;
}

.playground-stage-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.playground-stage-grid {
  width: 100%;
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.playground-frame-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.playground-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #68717b;
  font-weight: 600;
}

.playground-stage-viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f3f3;
  aspect-ratio: var(--playground-frame-ratio, 1080 / 1350);
}

.playground-stage-canvas {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}

.playground-code-label {
  margin: 0;
  font-size: 12px;
  color: #68717b;
  font-weight: 600;
}

.playground-code-area {
  width: 100%;
  min-height: 188px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background: #fff;
  color: #0a1014;
  resize: vertical;
  outline: none;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
  font-family: "IBM Plex Mono", "Pretendard Variable", monospace;
}

@media (max-width: 1133px) {
  .index-page {
    --index-header-side-width: 76px;
    --index-header-row-top: 48px;
    --index-header-row-bottom: 0px;
    --index-header-height: 48px;
  }

  .designer-page {
    --index-header-side-width: 76px;
    --index-header-row-top: 48px;
    --index-header-row-bottom: 40px;
    --index-header-height: 88px;
  }

  .app-shell {
    padding: 14px;
  }

  .designer-page .app-shell {
    padding-top: calc(var(--index-header-height) + var(--designer-action-bar-height) + 12px);
  }

  .designer-manual-preview-section {
    padding: 10px;
  }

  .designer-manual-preview-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .designer-page .designer-style-tabs {
    gap: 6px;
    padding-bottom: 6px;
  }

  .designer-page .designer-style-tab-btn {
    min-width: 56px;
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .designer-template-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .designer-template-section-head-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .designer-page .designer-template-section-row .template-card-designer {
    flex-basis: 172px;
    width: 172px;
    min-width: 172px;
  }

  .template-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }

  .index-page .template-grid {
    column-width: 160px;
  }

  .index-page .style-depth-grid {
    column-width: 104px;
  }

  .create-modal-layout {
    grid-template-columns: 1fr;
  }

  .create-preview-panel {
    width: min(240px, 100%);
  }

  .index-header {
    padding: 0 12px;
  }

  .index-page .app-shell {
    max-width: none;
    margin: 0;
  }

  .index-page .index-header,
  .index-page .filter-top {
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
  }

  .index-page .main-hue-popover {
    left: 0;
  }

  .index-header-top {
    column-gap: 8px;
  }

  .credit-pill {
    gap: 6px;
  }

  .members-page .app-shell {
    padding: calc(var(--index-header-height) + 12px) 12px 16px;
  }

  .members-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .members-kpi-card {
    min-height: 82px;
    padding: 8px;
  }

  .members-kpi-value {
    font-size: 17px;
  }

  .members-head-row,
  .member-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px 74px 76px 80px 126px;
    column-gap: 8px;
    padding: 10px;
  }

  .member-pro-cell {
    gap: 6px;
  }

  .member-pro-badge {
    min-width: 42px;
  }

  .member-action-btn {
    padding: 0 8px;
    font-size: 12px;
  }

}
