
.atheri-model-library {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.atheri-model-library__layout {
  display: grid;
  grid-template-columns: 394px minmax(0, 1fr);
  gap: clamp(30px, 3vw, 48px);
  align-items: stretch;
}

.atheri-model-library__sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.8vw, 26px);
  min-height: 700px;
  padding: 22px 26px 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: clamp(24px, 2.6vw, 36px);
  background:
    radial-gradient(circle at 92% 6%, rgba(69,184,229,.14), transparent 30%),
    linear-gradient(145deg, #0d1417 0%, #172226 100%);
  box-shadow: 0 28px 70px rgba(14,20,23,.13);
}

.atheri-model-library .atheri-eyebrow {
  margin: 0 0 16px;
  align-self: flex-start;
}

.atheri-model-library__preview-head p,
.atheri-model-library__face-name {
  display: none !important;
}

.atheri-model-library__intro-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.atheri-model-library__intro-main h2 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 1.45rem + 1.65vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.atheri-model-library__intro-copy {
  max-width: 34rem;
  margin: 18px 0 0;
  color: #b9c4c7;
  font-size: clamp(1rem, .94rem + .24vw, 1.12rem);
  line-height: 1.62;
}

.atheri-model-library__chooser {
  min-width: 0;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.atheri-model-library__chooser-label,
.atheri-model-library__preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.atheri-model-library__chooser-label { margin-bottom: 16px; }
.atheri-model-library__chooser-kicker,
.atheri-model-library__preview-step {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(69,184,229,.36);
  border-radius: 999px;
  color: var(--atheri-blue);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 780;
}
.atheri-model-library__chooser-label strong {
  color: #fff;
  font-size: clamp(.94rem, .88rem + .22vw, 1.08rem);
  line-height: 1.35;
}
.atheri-model-library__faces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.atheri-model-library__face {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  color: #fff;
  background: #11191c;
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.atheri-model-library__face::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
  content: '';
}
.atheri-model-library__face img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 420ms var(--atheri-ease);
}
.atheri-model-library__face:hover { transform: translateY(-2px); }
.atheri-model-library__face:hover img { transform: scale(1.035); }
.atheri-model-library__face.is-active {
  border-color: var(--atheri-blue);
  box-shadow: 0 0 0 3px rgba(69,184,229,.2);
}
.atheri-model-library__face.is-active::before {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #061117;
  background: var(--atheri-blue);
  font-size: .78rem;
  font-weight: 900;
  content: '✓';
}

.atheri-model-library__preview {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.atheri-model-library__preview-head {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0; justify-content: flex-start;
}
.atheri-model-library__preview-head p {
  margin: 0;
  color: #526267;
  font-size: .92rem;
}
.atheri-model-library__preview-head strong { color: #0d789f; }
.atheri-model-library__preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .82fr);
  grid-template-rows: repeat(2, minmax(350px, 1fr));
  gap: clamp(16px, 1.5vw, 22px);
  min-height: 720px;
}
.atheri-model-library__preview-image {
  overflow: hidden;
  height: 100%;
  margin: 0;
  border-radius: clamp(20px, 2vw, 28px);
  background: #dfe3e1;
}
.atheri-model-library__preview-image.is-primary { grid-row: 1 / span 2; }
.atheri-model-library__preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}
.atheri-model-library__preview-grid.is-model-switching img { opacity: .28; }

@media (max-width: 1120px) {
  .atheri-model-library__layout {
    grid-template-columns: minmax(360px, .84fr) minmax(0, 1.16fr);
  }
  .atheri-model-library__preview-grid {
    grid-template-columns: minmax(0, 1.44fr) minmax(240px, .7fr);
    grid-template-rows: repeat(2, minmax(300px, 1fr));
    min-height: 600px;
  }
}

@media (max-width: 900px) {
  .atheri-model-library__layout {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin-inline: auto;
  }
  .atheri-model-library__sidebar {
    min-height: auto;
  }
  .atheri-model-library__chooser {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .atheri-model-library__sidebar {
    padding: 20px;
    border-radius: 24px;
  }
  .atheri-model-library__faces { gap: 10px; }
  .atheri-model-library__face img { aspect-ratio: 1 / 1; }
  .atheri-model-library__preview-head {
    padding-inline: 2px;
  }
  .atheri-model-library__preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .atheri-model-library__preview-image,
  .atheri-model-library__preview-image.is-primary {
    grid-row: auto;
    min-height: min(118vw, 520px);
  }
  .atheri-model-library__preview-image:not(.is-primary) {
    min-height: min(76vw, 330px);
  }
}


/* v5.4.3 — wider SORA gallery; the left panel keeps its desktop width. */
.atheri-model-library__preview-head,
.atheri-model-library__preview-step {
  display: none !important;
}

@media (min-width: 1121px) {
  .atheri-model-library__sidebar {
    width: 394px;
    min-width: 394px;
    max-width: 394px;
  }
}


/* v5.4.4 — balanced left SORA panel without the numbered marker. */
.atheri-model-library__sidebar {
  justify-content: space-between;
}

.atheri-model-library__intro-main {
  flex: 0 0 auto;
}

.atheri-model-library__chooser {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  margin-top: auto;
  padding-top: clamp(22px, 2.4vw, 30px);
}

.atheri-model-library__chooser-label {
  margin-bottom: 18px;
  padding-inline: 0;
}

.atheri-model-library__chooser-label strong {
  width: 100%;
  max-width: 25ch;
  font-size: clamp(1rem, .93rem + .18vw, 1.12rem);
  line-height: 1.42;
}

.atheri-model-library__chooser-kicker {
  display: none !important;
}

@media (min-width: 901px) {
  .atheri-model-library__sidebar {
    min-height: 720px;
  }
}

@media (max-width: 900px) {
  .atheri-model-library__chooser {
    margin-top: 12px;
  }
}


/* v5.4.4.1 — editable CTA in the intentional free area of the SORA sidebar. */
.atheri-model-library__cta-wrap {
  margin-top: clamp(28px, 3.2vw, 48px);
}

.atheri-model-library__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .76rem 1.15rem;
  border-radius: 999px;
  color: #071318;
  background: var(--atheri-blue);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.atheri-model-library__cta:hover {
  transform: translateY(-1px);
  background: #72c9eb;
}

@media (max-width: 900px) {
  .atheri-model-library__cta-wrap { margin-top: 24px; }
}

/* v5.4.4.3 — scale the whole SORA composition, preserving card proportions. */
@media (min-width: 1121px) {
  .atheri-model-library {
    max-width: 1360px !important;
  }

  .atheri-model-library__layout {
    grid-template-columns: 340px minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  .atheri-model-library__sidebar {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    min-height: 590px !important;
    padding: 20px 22px 22px !important;
  }

  .atheri-model-library__preview-grid {
    grid-template-columns: minmax(0, 1.68fr) minmax(250px, .8fr) !important;
    grid-template-rows: repeat(2, minmax(280px, 1fr)) !important;
    min-height: 590px !important;
    gap: 18px !important;
  }
}


/* v5.4.4.4 — make the SORA copy panel visually match the children-assortment copy panel more closely. */
.atheri-model-library__sidebar {
  padding: clamp(30px, 4vw, 56px);
  border-radius: var(--atheri-radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(69,184,229,.14), transparent 30%),
    linear-gradient(145deg, #0d1417 0%, #172226 100%);
}
.atheri-model-library .atheri-eyebrow {
  margin: 0 0 1.1rem;
}
.atheri-model-library__intro-main h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 1.5rem + 1.5vw, 3.15rem);
  line-height: 1.02;
}
.atheri-model-library__intro-copy {
  margin-top: 1.4rem;
  color: var(--atheri-muted-light);
}
.atheri-model-library__cta-wrap {
  margin-top: clamp(30px, 3vw, 42px);
}
.atheri-model-library__chooser {
  padding-top: clamp(22px, 2.4vw, 30px);
}
@media (min-width: 1121px) {
  .atheri-model-library__sidebar {
    padding: 38px !important;
  }
}
@media (max-width: 760px) {
  .atheri-model-library__sidebar {
    padding: 24px;
  }
}

/* v5.4.4.5 — keep the live LoRA/SORA text panel consistent with its Gutenberg preview. */
.atheri-model-library__sidebar {
  padding: 22px !important;
  border-radius: 18px;
}
.atheri-model-library__intro-main {
  display: grid;
  gap: 14px;
  align-items: start;
}
.atheri-model-library .atheri-eyebrow,
.atheri-model-library__intro-main h2,
.atheri-model-library__intro-copy,
.atheri-model-library__cta-wrap {
  margin: 0;
}
.atheri-model-library__intro-main h2 {
  width: 100%;
  max-width: none;
  font-size: clamp(32px, 2.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -.045em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.atheri-model-library__intro-copy {
  max-width: none;
  color: #c7d1d5;
}
.atheri-model-library__cta-wrap {
  margin-top: 10px;
}
.atheri-model-library__chooser {
  padding-top: 22px;
}
@media (max-width: 760px) {
  .atheri-model-library__sidebar {
    padding: 22px !important;
  }
  .atheri-model-library__intro-main h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
}
