/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/modules/elleyx-ai/storybooks/storybook-showcase.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************/
.sb-showcase {
  --sb-sc-text: #1f1f1f;
  --sb-sc-muted: #5f6368;
  --sb-sc-surface: #ffffff;
  --sb-sc-card-shadow: rgba(15, 23, 42, 0.14);
  --sb-sc-dot: #d2d5db;
  --sb-sc-dot-active: #1f1f1f;
  --sb-sc-nav-bg: rgba(255, 255, 255, 0.92);
  --sb-sc-nav-border: rgba(15, 23, 42, 0.1);
  --sb-sc-nav-ink: #1f1f1f;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--sb-sc-text);
}

[data-theme="dark"] .agent-studio .sb-showcase,
.nextgen-v0 .sb-showcase,
.loisax-home .sb-showcase {
  --sb-sc-text: var(--console-text, #ffffff);
  --sb-sc-muted: var(--console-muted, #9aa0a6);
  --sb-sc-surface: var(--console-surface, #000000);
  --sb-sc-card-shadow: rgba(0, 0, 0, 0.72);
  --sb-sc-dot: rgba(255, 255, 255, 0.22);
  --sb-sc-dot-active: #ffffff;
  --sb-sc-nav-bg: rgba(0, 0, 0, 0.92);
  --sb-sc-nav-border: rgba(255, 255, 255, 0.14);
  --sb-sc-nav-ink: #ffffff;
}

.loisax-home .sb-editorial-light .sb-showcase {
  --sb-sc-text: #1f1f1f;
  --sb-sc-muted: #5f6368;
  --sb-sc-surface: #ffffff;
  --sb-sc-card-shadow: rgba(15, 23, 42, 0.14);
  --sb-sc-dot: #d2d5db;
  --sb-sc-dot-active: #1f1f1f;
  --sb-sc-nav-bg: rgba(255, 255, 255, 0.94);
  --sb-sc-nav-border: rgba(15, 23, 42, 0.08);
  --sb-sc-nav-ink: #1f1f1f;
}

.loisax-home .sb-showcase-header h1 {
  font-weight: 400;
  letter-spacing: -0.03em;
}

.sb-showcase-header {
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
}

.sb-showcase-header h1 {
  margin: 0;
  font-family: var(--font-jakarta), var(--font-dm-sans), 'Google Sans', system-ui, sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--sb-sc-text);
}

.sb-showcase-header p {
  margin: 14px auto 0;
  max-width: 680px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.55;
  color: var(--sb-sc-muted);
}

.sb-showcase.is-compact .sb-showcase-header h1 {
  font-size: clamp(26px, 3vw, 38px);
}

.sb-showcase.is-compact .sb-showcase-header p {
  margin-top: 10px;
  font-size: 14px;
}

/* Carousel shell */
.sb-carousel-wrap {
  position: relative;
  width: 100%;
  margin-top: 34px;
}

.sb-showcase.is-compact .sb-carousel-wrap {
  margin-top: 22px;
}

.sb-carousel-track {
  display: flex;
  gap: 36px;
  padding: 18px clamp(24px, 6vw, 96px) 32px clamp(24px, 11vw, 175px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.sb-carousel-track:active {
  cursor: grabbing;
}

.sb-carousel-track::-webkit-scrollbar {
  display: none;
}

.sb-showcase.is-compact .sb-carousel-track {
  gap: 22px;
  padding: 10px 28px 22px;
}

/* Tactile 3D Hardcover Book Card */
.sb-book-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(260px, 24vw, 352px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 5px 16px 16px 5px;
  background: #e7e5e4;
  overflow: visible;
  text-align: center;
  scroll-snap-align: center;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
  box-shadow:
    3px 0 0 #fafaf9,
    5px 0 0 #d6d3d1,
    6px 0 0 rgba(0, 0, 0, 0.08),
    0 18px 36px -8px var(--sb-sc-card-shadow),
    0 4px 10px -2px rgba(0, 0, 0, 0.08);
}

.sb-showcase.is-compact .sb-book-card {
  width: clamp(200px, 18vw, 248px);
}

.sb-book-card:hover {
  transform: translateY(-6px) scale(1.014);
}

.sb-book-card:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 5px;
}

.sb-book-card-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

.sb-book-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-book-card:hover .sb-book-card-cover {
  transform: scale(1.03);
}

/* Frosted white bottom title band matching Gemini's Storybooks */
.sb-book-card-band {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 5.5%;
  min-height: 22%;
  padding: 12px 18px 13px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.45), 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sb-book-card-title {
  margin: 0;
  font-family: Georgia, var(--font-instrument-serif), 'Times New Roman', serif;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.24;
  color: #202124;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.sb-showcase.is-compact .sb-book-card-band {
  padding: 10px 14px 10px 18px;
}

.sb-showcase.is-compact .sb-book-card-title {
  font-size: 14px;
}

/* Realistic spine hinge crease running over the cover and band */
.sb-book-card-spine {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 22px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25) 0px,
    rgba(0, 0, 0, 0.24) 4px,
    rgba(255, 255, 255, 0.36) 7px,
    rgba(0, 0, 0, 0.14) 11px,
    rgba(255, 255, 255, 0.1) 14px,
    transparent 22px
  );
}

.sb-book-card-gloss {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
}

.sb-book-card-pill {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.sb-book-card:hover .sb-book-card-pill,
.sb-book-card:focus-visible .sb-book-card-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel prev/next buttons */
.sb-carousel-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-58%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sb-sc-nav-border);
  background: var(--sb-sc-nav-bg);
  color: var(--sb-sc-nav-ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.sb-carousel-arrow:hover:not(:disabled) {
  transform: translateY(-58%) scale(1.06);
}

.sb-carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.sb-carousel-arrow.is-prev {
  left: clamp(10px, 2vw, 24px);
}

.sb-carousel-arrow.is-next {
  right: clamp(10px, 2vw, 24px);
}

/* Pagination dots */
.sb-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
}

.sb-carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sb-sc-dot);
  transition: width 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.sb-carousel-dot.is-active {
  width: 22px;
  background: #8ab4f8;
}

/* Sample Reader Modal */
.sb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 28px);
}

.sb-modal-panel {
  width: min(1080px, 100%);
  max-height: calc(100dvh - 28px);
  background: #141519;
  color: #f4f4f5;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-modal-toolbar {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #141519;
}

.sb-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.sb-modal-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-modal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.sb-modal-nav span {
  min-width: 58px;
  text-align: center;
  font-size: 13px;
  color: #9aa0a6;
}

.sb-modal-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b4b7c0;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.sb-modal-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sb-modal-icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.sb-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.sb-modal-listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #101114;
  font-size: 13px;
  font-weight: 500;
}

.sb-modal-listen:hover {
  background: rgba(255, 255, 255, 0.9);
}

.sb-modal-inspire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: #1b1c22;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.sb-modal-inspire:hover {
  background: #252730;
}

.sb-modal-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 3.5vh, 38px) clamp(16px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.sb-modal-book {
  position: relative;
  width: min(860px, 100%);
  aspect-ratio: 1.46;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d5d0c5;
  background: #fafaf8;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.sb-modal-book.is-cover {
  width: min(390px, 90%);
  aspect-ratio: 3 / 4;
  grid-template-columns: 1fr;
  border-radius: 5px 16px 16px 5px;
  box-shadow:
    -5px 0 0 #666,
    -8px 0 0 #444,
    0 24px 48px rgba(15, 23, 42, 0.24);
}

.sb-modal-book-art {
  position: relative;
  overflow: hidden;
  background: #ece7dc;
}

.sb-modal-book-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sb-modal-book-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  text-align: center;
}

.sb-modal-book-band h2 {
  margin: 0;
  font-family: Georgia, var(--font-instrument-serif), serif;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 400;
  line-height: 1.25;
  color: #202124;
}

.sb-modal-book-band span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #5f6368;
}

.sb-modal-book-page {
  position: relative;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #dedede 0%, #f7f7f5 8%, #fcfcfa 92%, #efefec 100%);
  color: #292929;
}

.sb-modal-page-kicker {
  position: absolute;
  top: 20px;
  left: 26px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  text-align: right;
}

.sb-modal-page-copy p {
  margin: 0 0 14px;
  font-family: Georgia, var(--font-instrument-serif), serif;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.62;
  color: #262626;
}

.sb-modal-page-copy p:last-child {
  margin-bottom: 0;
}

.sb-modal-page-num {
  position: absolute;
  bottom: 18px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 12px;
  color: #777;
}

.sb-modal-book-spine {
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 50%;
  width: 34px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.16) 44%,
    rgba(0, 0, 0, 0.24) 49%,
    rgba(255, 255, 255, 0.5) 52%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent
  );
}

.sb-modal-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9aa0a6;
  background: #141519;
}

@media (max-width: 780px) {
  .sb-carousel-arrow {
    display: none;
  }

  .sb-modal-toolbar {
    grid-template-columns: 1fr auto;
  }

  .sb-modal-nav {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .sb-modal-inspire span {
    display: none;
  }

  .sb-modal-book:not(.is-cover) {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .sb-modal-book:not(.is-cover) .sb-modal-book-art {
    aspect-ratio: 4 / 3;
  }

  .sb-modal-book:not(.is-cover) .sb-modal-book-spine {
    display: none;
  }
}

/* ==========================================================================
   Studio integration (/nextgen/ai/storybooks empty showcase state)
   ========================================================================== */

.agent-studio .sb-chat.is-showcase .agent-chat-center.is-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 24px !important;
}

.agent-studio .sb-chat.is-showcase .agent-chat-actions {
  width: 100% !important;
  flex-shrink: 0 !important;
}

.agent-studio .sb-chat.is-showcase .sb-studio-showcase-slot {
  width: 100%;
  margin: auto 0;
  padding: 8px 0 18px;
  flex-shrink: 0;
}

.agent-studio .sb-chat.is-showcase form.agent-chat-composer {
  width: calc(100% - 48px) !important;
  max-width: 720px !important;
  margin: 0 auto auto !important;
  flex-shrink: 0 !important;
}

@media (max-width: 760px) {
  .agent-studio .sb-chat.is-showcase form.agent-chat-composer {
    width: calc(100% - 24px) !important;
  }
}

