@font-face {
  font-family: "HulyDisplay";
  src: url("./assets/huly/fonts/14d7ce3e41dcbb66-s.p.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "HulyDisplay";
  src: url("./assets/huly/fonts/e8b276476c0ac6fa-s.p.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "HulyDisplay";
  src: url("./assets/huly/fonts/1b0b3615811be75b-s.p.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "HulyInter";
  src: url("./assets/huly/fonts/e4af272ccee01ff0-s.p.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

.jewelx-library-page {
  --library-bg: #090909;
  --library-card: #292929;
  --library-card-soft: #202020;
  --library-border: rgba(255, 255, 255, 0.1);
  --library-border-strong: rgba(255, 255, 255, 0.18);
  --library-text: #f6f3ee;
  --library-muted: rgba(246, 243, 238, 0.62);
  --library-faint: rgba(246, 243, 238, 0.4);
  --library-mint: #b8e6df;
  --library-gold: #e3be75;
  --library-rose: #d78abf;
  position: relative;
  overflow-x: hidden;
  background: #090a0c;
  color: var(--library-text);
  font-family: "HulyInter", "Inter", "Source Han Sans SC", "PingFang SC", sans-serif;
}

.jewelx-library-page::before {
  opacity: 0.08;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 52%);
  background-size: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.library-nav {
  position: fixed;
  top: 16px;
  right: 0;
  left: 0;
  z-index: 3000;
}

.library-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 96px;
}

.library-hero {
  --library-hero-mask-x: 50%;
  --library-hero-mask-y: 36%;
  --library-hero-mask-size: 300px;
  position: relative;
  height: clamp(880px, 113vw, 1438px);
  min-height: 880px;
  margin: 0;
  padding-top: clamp(96px, 12vw, 184px);
  background: #090a0c;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.library-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(9, 10, 12, 0.32), rgba(9, 10, 12, 0) 35%),
    linear-gradient(90deg, rgba(9, 10, 12, 0.52) 0%, rgba(9, 10, 12, 0) 42%, rgba(9, 10, 12, 0.18) 100%);
}

.library-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.library-hero-video {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: clamp(1165px, 124vw, 1920px);
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%);
}

.library-hero-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 56%, rgba(35, 83, 214, 0.42), transparent 31%),
    radial-gradient(circle at 70% 91%, rgba(255, 137, 100, 0.24), transparent 23%),
    linear-gradient(180deg, rgba(9, 10, 12, 0) 0%, rgba(9, 10, 12, 0.34) 64%, rgba(9, 10, 12, 0.88) 100%);
}

.library-hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
  -webkit-mask-image: radial-gradient(
    circle var(--library-hero-mask-size) at var(--library-hero-mask-x) var(--library-hero-mask-y),
    #000 18%,
    rgba(0, 0, 0, 0.9) 34%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle var(--library-hero-mask-size) at var(--library-hero-mask-x) var(--library-hero-mask-y),
    #000 18%,
    rgba(0, 0, 0, 0.9) 34%,
    transparent 72%
  );
}

.library-hero.is-reveal-active .library-hero-reveal {
  opacity: 0.72;
}

.library-hero-reveal img {
  position: absolute;
  top: clamp(68px, 8vw, 132px);
  left: 50%;
  width: min(1574px, 122vw);
  max-width: none;
  height: auto;
  transform: translateX(-39%);
  user-select: none;
}

.library-hero-reveal-lines {
  opacity: 0.54;
}

.library-hero-reveal-glow {
  opacity: 0.5;
}

.library-hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  height: 340px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0) 0%, #090a0c 50%);
}

.library-hero-copy {
  position: relative;
  z-index: 8;
  width: min(1230px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
}

.library-powered {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #a9a9aa;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
}

.library-powered strong {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.library-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 616px;
  margin: 0;
  color: transparent;
  background: linear-gradient(to right bottom, #fff 30%, #d5d8f6 80%, #fdf7fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Instrument Serif", serif;
  font-size: clamp(56px, 5.42vw, 84px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.04em;
  text-shadow: none;
  filter: none;
  font-synthesis: none;
}

.library-title span {
  color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.library-title span:last-child {
  text-shadow: none;
}

.library-subtitle {
  max-width: 560px;
  margin: 20px 0 0;
  color: #e5e5e7;
  font-family: "HulyInter", "Inter", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: -0.04em;
}

.library-subtitle p {
  margin: 0;
}

.library-subtitle p + p {
  margin-top: 6px;
}

.library-hero-actions {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 34px;
}

.library-huly-cta {
  isolation: isolate;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 168px;
  min-height: 52px;
  padding: 0 28px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  font-family: "Barlow", "HulyInter", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  transition:
    transform 180ms ease,
    gap 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.library-huly-cta::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  padding: 3px;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(245, 244, 255, 0.42) 14%,
      rgba(175, 220, 255, 0.4) 30%,
      rgba(225, 188, 255, 0.34) 46%,
      rgba(255, 225, 176, 0.28) 62%,
      rgba(192, 255, 242, 0.26) 78%,
      rgba(255, 255, 255, 0.02) 100%
    );
  background-size: 240% 240%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  filter: blur(9px);
  animation: metal-fx-flow 4.2s linear infinite;
  pointer-events: none;
}

.library-huly-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(245, 244, 255, 0.92) 12%,
      rgba(175, 220, 255, 0.88) 26%,
      rgba(225, 188, 255, 0.84) 42%,
      rgba(255, 225, 176, 0.82) 58%,
      rgba(192, 255, 242, 0.78) 72%,
      rgba(255, 255, 255, 0.08) 100%
    );
  background-size: 240% 240%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter:
    drop-shadow(0 0 10px rgba(190, 223, 255, 0.22))
    drop-shadow(0 0 20px rgba(231, 198, 255, 0.16));
  animation: metal-fx-flow 4.2s linear infinite;
  pointer-events: none;
}

.library-huly-cta span {
  position: relative;
  z-index: 2;
}

.library-huly-cta span:first-child {
  min-width: 0;
}

.library-huly-cta:hover {
  gap: 14px;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(184, 230, 223, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.library-huly-cta:hover::before,
.library-huly-cta:hover::after {
  animation-duration: 3s;
}

.library-hero-visual {
  position: absolute;
  top: 50.6%;
  left: max(32px, calc((100vw - 1230px) / 2));
  z-index: 5;
  width: min(1024px, calc(100vw - 120px));
  min-height: 0;
  pointer-events: none;
}

.library-hero-product {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.56),
    0 0 24px rgba(255, 255, 255, 0.38),
    0 0 46px rgba(86, 131, 218, 0.46);
  opacity: 0.94;
}

.library-hero-caption {
  position: absolute;
  left: max(32px, calc((100vw - 1230px) / 2));
  bottom: 74px;
  z-index: 8;
  width: min(534px, calc(100% - 64px));
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: "HulyInter", "Inter", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

@keyframes libraryHulyCtaGlow {
  from {
    opacity: 0.72;
    transform: translateY(-50%) translateX(-2px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(6px) scale(1.08);
  }
}

.library-preview-frame {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(620px, 100%);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 18px 0 0;
  background: #111111;
  box-shadow: rgba(0, 0, 0, 0.5) 0 6px 25px;
}

.library-preview-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(86, 131, 218, 0.22), transparent 36%, rgba(255, 137, 100, 0.22)),
    radial-gradient(circle at 72% 8%, rgba(255, 137, 100, 0.16), transparent 24%);
}

.library-preview-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #95979e;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: -0.12px;
}

.library-preview-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #4a4b50;
}

.library-preview-topbar span:first-child {
  background: #ff8964;
}

.library-preview-topbar span:nth-child(2) {
  background: #d1d1d1;
}

.library-preview-topbar span:nth-child(3) {
  background: #5683da;
}

.library-preview-topbar strong {
  margin-left: 8px;
  color: #d1d1d1;
  font-weight: 600;
}

.library-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 172px 172px;
  gap: 12px;
  padding: 16px;
}

.library-preview-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #0b0d10;
}

.library-preview-card--large {
  grid-row: span 2;
}

.library-preview-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.94;
}

.library-preview-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(9, 10, 12, 0.82));
}

.library-preview-command {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px 16px;
  min-height: 42px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.13px;
}

.library-preview-command i {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #5683da, #ff8964);
  box-shadow: 0 0 24px rgba(86, 131, 218, 0.42);
}

.library-primary-cta,
.library-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.library-primary-cta {
  gap: 8px;
  color: #0b0b0b;
  background: linear-gradient(90deg, #fff 0%, #dceaff 100%);
  box-shadow: 0 18px 46px rgba(220, 234, 255, 0.14);
}

.library-secondary-cta {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--library-border);
}

.library-pricing-flow-cta {
  min-width: 150px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.library-board {
  position: relative;
  width: min(1376px, calc(100vw - 64px));
  margin: 0 auto;
}

.library-toolbar {
  position: sticky;
  top: 92px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  pointer-events: none;
}

.library-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.library-filter,
.library-toolbar-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--library-border);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(32, 32, 32, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.library-filter:hover,
.library-filter.is-active {
  color: #111;
  background: linear-gradient(90deg, var(--library-mint), #f0f7e9);
  border-color: rgba(184, 230, 223, 0.62);
}

.library-filter:active {
  transform: translateY(1px);
}

.library-toolbar-meta {
  gap: 8px;
  min-width: 96px;
  pointer-events: auto;
}

.library-toolbar-meta span:first-child {
  color: #fff;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 4px;
  gap: 12px;
  align-items: stretch;
}

.library-card {
  grid-row: span 23;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--library-card);
  color: var(--library-text);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.library-card--tall {
  grid-row: span 43;
}

.library-card--wide {
  grid-column: span 2;
  grid-row: span 30;
}

.library-card.is-hidden {
  display: none;
}

.library-card:hover,
.library-card:focus-visible {
  border-color: var(--library-border-strong);
  background: #303030;
  transform: translateY(-2px);
  outline: none;
}

.library-card-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #0c0c0c;
}

.library-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.library-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 360ms ease;
}

.library-card:hover .library-card-media img,
.library-card:focus-visible .library-card-media img {
  transform: scale(1.045);
}

.library-card-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 84px;
  padding: 16px;
  background: var(--library-card);
}

.library-card-meta h2 {
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.library-card-meta p {
  margin: 7px 0 0;
  color: var(--library-muted);
  font-size: 14px;
  font-weight: 700;
}

.library-card-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  min-height: 36px;
  max-width: 116px;
  padding: 0 14px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.library-card-action:hover,
.library-card-action.is-copied {
  color: #111;
  background: #f4f4f4;
}

.library-card-action.is-copied::before {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #16a34a;
  border-width: 0 3px 3px 0;
  border-radius: 1px;
  transform: rotate(45deg) translateY(-1px);
}

.library-card-action.is-copy-failed {
  color: #5f1515;
  background: #ffe9e9;
}

.library-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.library-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.library-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.library-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  width: min(896px, 100%);
  height: 442px;
  max-height: 90vh;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(48, 48, 48);
  border-radius: 24px;
  background: rgb(41, 41, 41);
  box-shadow: rgba(0, 0, 0, 0.34) 0 20px 72px;
  color: rgb(245, 245, 245);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.library-modal.is-open .library-modal-panel {
  transform: translateY(0) scale(1);
}

.library-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: rgb(212, 212, 212);
  background: rgba(23, 23, 23, 0.62);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.library-modal-close:hover {
  color: #111;
  background: #f7f7f7;
}

.library-modal-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 300px;
  width: 300px;
  overflow-y: auto;
  max-height: 90vh;
  padding: 24px;
  border-right: 1px solid rgb(48, 48, 48);
}

.library-modal-info h2 {
  margin: 0;
  padding-right: 8px;
  color: rgb(245, 245, 245);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

.library-modal-type {
  margin: 2px 0 24px;
  color: rgb(163, 163, 163);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.library-modal-likes {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: rgb(163, 163, 163);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.library-modal-likes span:first-child {
  font-size: 24px;
  line-height: 1;
}

.library-modal-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgb(23, 23, 23);
  background: rgb(245, 245, 245);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: opacity 160ms ease;
}

.library-modal-copy.is-copied {
  background: linear-gradient(90deg, var(--library-mint), #f3f5dd);
}

.library-modal-copy.is-copy-failed {
  color: #661616;
  background: #ffe9e9;
}

.library-modal-copy:hover {
  opacity: 0.92;
}

.library-modal-copy-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.library-modal-copy-icon::before {
  content: "";
  position: absolute;
  inset: 3px 4px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.library-modal-copy[data-action-mode="member"] .library-modal-copy-icon::before {
  inset: 7px 3px 2px;
  border-radius: 3px;
}

.library-modal-copy[data-action-mode="member"] .library-modal-copy-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.library-modal-copy.is-copied .library-modal-copy-icon {
  color: #16a34a;
}

.library-modal-copy.is-copied .library-modal-copy-icon::before {
  inset: auto;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.library-modal-copy.is-copied .library-modal-copy-icon::after {
  content: none;
}

.library-modal-media {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #111;
}

.library-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 442px;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

body.library-modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .library-shell {
    width: 100%;
  }

  .library-hero {
    --library-hero-mask-size: 240px;
    height: clamp(880px, 113vw, 1180px);
  }

  .library-title {
    font-size: clamp(56px, 7vw, 72px);
  }

  .library-hero-visual {
    width: min(900px, calc(100vw - 120px));
  }

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

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

  .library-hero {
    --library-hero-mask-size: 210px;
    height: 880px;
    min-height: 880px;
    padding-top: 96px;
    padding-bottom: 0;
  }

  .library-hero-copy {
    width: calc(100% - 64px);
    max-width: none;
  }

  .library-hero-video {
    width: 1165px;
  }

  .library-hero-reveal {
    display: none;
  }

  .library-title {
    max-width: min(616px, calc(100vw - 64px));
    font-size: 56px;
    line-height: 1.5;
    letter-spacing: -0.04em;
  }

  .library-subtitle {
    max-width: min(698px, calc(100vw - 64px));
    margin-top: 16px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.035em;
  }

  .library-subtitle p + p {
    margin-top: 2px;
  }

  .library-hero-actions {
    margin-top: 32px;
  }

  .library-hero-visual {
    top: 50.6%;
    left: 32px;
    width: min(657px, calc(100vw - 120px));
    min-height: 0;
  }

  .library-hero-caption {
    left: 32px;
    bottom: 75px;
    width: min(534px, calc(100% - 64px));
  }

  .library-toolbar {
    position: relative;
    top: auto;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }

  .library-filter-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-filter {
    padding: 0 10px;
  }

  .library-toolbar-meta {
    align-self: flex-start;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-card--wide {
    grid-column: span 2;
  }

  .library-modal-panel {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 88vh;
    overflow-y: auto;
  }

  .library-modal-info {
    border-right: 0;
    border-bottom: 1px solid var(--library-border);
  }

  .library-modal-media {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .jewelx-library-page {
    background: #090a0c;
  }

  .library-shell {
    width: 100%;
    padding-bottom: 84px;
  }

  .library-hero {
    height: 760px;
    min-height: 760px;
    padding-top: 92px;
    padding-bottom: 0;
  }

  .library-hero-video {
    width: 1060px;
  }

  .library-powered {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .library-title {
    max-width: calc(100vw - 40px);
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.5;
    letter-spacing: -0.04em;
  }

  .library-title span:first-child {
    font-size: 0.88em;
  }

  .library-subtitle {
    max-width: calc(100vw - 40px);
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .library-hero-actions {
    width: calc(100vw - 40px);
    margin-top: 22px;
  }

  .library-huly-cta {
    width: 220px;
    min-width: 0;
  }

  .library-hero-visual {
    top: 54%;
    left: 20px;
    width: calc(100vw - 40px);
    min-height: 0;
  }

  .library-hero-caption {
    left: 20px;
    bottom: 58px;
    width: calc(100vw - 40px);
  }

  .library-primary-cta,
  .library-secondary-cta,
  .library-pricing-flow-cta {
    width: 100%;
  }

  .library-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid {
    display: block;
  }

  .library-card,
  .library-card--tall,
  .library-card--wide {
    display: flex;
    min-height: auto;
    margin-bottom: 14px;
  }

  .library-card-media {
    flex: none;
    aspect-ratio: 1 / 0.72;
  }

  .library-card--tall .library-card-media {
    aspect-ratio: 1 / 1.18;
  }

  .library-card--wide .library-card-media {
    aspect-ratio: 1 / 0.7;
  }

  .library-card-meta {
    min-height: 94px;
    padding: 18px 16px;
  }

  .library-card-meta h2 {
    font-size: 20px;
  }

  .library-card-action {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .library-modal {
    align-items: flex-end;
    padding: 14px;
  }

  .library-modal-panel {
    width: min(100%, 420px);
    max-height: 88vh;
    min-height: 0;
    border-radius: 20px;
    flex-direction: column;
  }

  .library-modal-close {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 24px;
  }

  .library-modal-info {
    flex: 0 0 auto;
    width: 100%;
    padding: 20px 20px 18px;
    border-right: 0;
    border-bottom: 0;
  }

  .library-modal-info h2 {
    padding-right: 40px;
    font-size: 28px;
    line-height: 1.15;
  }

  .library-modal-type {
    margin: 5px 0 18px;
    font-size: 16px;
    line-height: 1.25;
  }

  .library-modal-likes {
    margin-bottom: 18px;
    gap: 8px;
    font-size: 17px;
    line-height: 1.25;
  }

  .library-modal-likes span:first-child {
    font-size: 28px;
  }

  .library-modal-copy {
    min-height: 54px;
    border-radius: 16px;
    font-size: 18px;
  }

  .library-modal-media {
    min-height: 0;
  }

  .library-modal-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .library-card,
  .library-card-media img,
  .library-modal,
  .library-modal-panel,
  .library-filter {
    transition: none;
  }
}
