/* Generated examples share the homepage's visual rhythm. */
body[data-nelu-page="home"] .ns-hero-art img[data-hero-style="cinema"] { --ns-image-flip: 1; }
.ns-hero-scene > .ns-generated-badge {
  display: inline-block;
  margin-left: 14px;
  padding: 5px 8px;
  border: 1px solid #c9fce136;
  border-radius: 5px;
  background: #15241d75;
  color: #d0ecdc;
  font: 500 8px/1.3 'Space Mono', monospace;
  letter-spacing: .04em;
  vertical-align: 1px;
}
#nsGallery.ns-collections { padding: 26px 0 48px; }
.ns-generated-note {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: -8px 0 25px;
  color: #b4a9bf;
  font: 400 12px/1.6 'Outfit', sans-serif;
}
.ns-generated-note > span {
  flex: none;
  color: #b4f8d4;
  font: 500 9px/1.6 'Space Mono', monospace;
  letter-spacing: .035em;
}
.ns-generated-note a { color: #c3e6d4; text-underline-offset: 3px; }
.ns-generated-note a:hover { color: #fff; }
#nsGallery .ns-collection-grid { gap: 14px; }
#nsGallery .ns-collection-card { height: auto; aspect-ratio: 1.2; }
#nsHome .nc-more-inspiration.ns-latest {
  margin: 0 0 18px;
  padding: 32px 0 52px;
  border-top: 1px solid #d9bfef26;
  border-bottom: 0;
}
#nsHome .ns-latest-grid { gap: 12px; }
#nsHome .ns-latest-card { height: auto; aspect-ratio: 1.12; }
#nsHome .ns-latest-card strong { font-size: clamp(18px, 1.65vw, 24px); }
#nsHome .ns-latest-card .ns-collection-label { font-size: 8px; }
#nsHome .ns-collection-shade {
  background: linear-gradient(0deg, #05030bea, #05030b08 42%, #05030b50);
}
#nsHome .ns-collection-card img[src$="s09-editorial.webp"],
#nsHome .ns-latest-card img[src$="s09-editorial.webp"],
#nsHome .ns-collection-card img[src$="s01-western.webp"],
#nsHome .ns-latest-card img[src$="s01-western.webp"],
#nsHome .ns-collection-card img[src$="s02-gritty.webp"],
#nsHome .ns-latest-card img[src$="s02-gritty.webp"],
#nsHome .ns-collection-card img[src$="s03-sketch.webp"],
#nsHome .ns-latest-card img[src$="s03-sketch.webp"],
#nsHome .ns-collection-card img[src$="s04-chromium.webp"],
#nsHome .ns-latest-card img[src$="s04-chromium.webp"],
#nsHome .ns-collection-card img[src$="s13-niji-flat12.webp"],
#nsHome .ns-latest-card img[src$="s13-niji-flat12.webp"] { object-position: center 14%; }
@media (max-width: 760px) {
  #nsGallery.ns-collections { padding-top: 22px; padding-bottom: 36px; }
  #nsGallery .ns-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #nsGallery .ns-collection-card { height: auto; aspect-ratio: .95; }
  #nsGallery .ns-collection-card strong { font-size: clamp(18px, 3.2vw, 25px); left: 13px; bottom: 16px; right: 35px; }
  #nsGallery .ns-collection-label { left: 13px; top: 13px; font-size: 7px; }
  #nsHome .nc-more-inspiration.ns-latest { padding: 25px 0 36px; margin-bottom: 10px; }
  #nsHome .ns-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #nsHome .ns-latest-card { aspect-ratio: 1; }
  #nsHome .ns-latest-card strong { font-size: 18px; left: 13px; bottom: 15px; right: 32px; }
  #nsHome .ns-latest-card .ns-collection-label { left: 13px; top: 13px; font-size: 7px; }
  .ns-generated-note { margin-bottom: 20px; font-size: 11px; gap: 6px 10px; }
}
@media (max-width: 440px) {
  #nsHome .ns-latest-card strong { font-size: 16px; }
  #nsGallery .ns-collection-card i, #nsHome .ns-latest-card i { right: 11px; bottom: 12px; font-size: 21px; }
  #nsHome .ns-latest-actions { flex-wrap: wrap; gap: 10px; }
}

/* The story viewer preserves the full frame, including landscape images. */
#nsStoryOverlay { padding: 24px; }
#nsStoryOverlay .ns-story-panel {
  --ns-story-aside: clamp(310px, 30vw, 380px);
  --ns-story-header: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ns-story-aside);
  grid-template-rows: var(--ns-story-header) minmax(0, 1fr);
  width: min(1280px, 100%);
  height: min(820px, calc(100dvh - 48px));
  min-height: 0;
  border: 1px solid #d9c6ef35;
  border-radius: 22px;
  background: #14101c;
  box-shadow: 0 38px 110px #000b, inset 0 1px 0 #ffffff0b;
}
#nsStoryOverlay .ns-story-panel > img {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 24px 58px;
  object-fit: contain;
  object-position: center;
  background: radial-gradient(ellipse at 50% 45%, #1c1824, #08070d 80%);
}
#nsStoryOverlay .ns-story-gradient { display: none; }
#nsStoryOverlay .ns-story-progress { top: 15px; left: 24px; right: 24px; gap: 6px; }
#nsStoryOverlay .ns-story-progress span { height: 2px; background: #d8c8e42b; }
#nsStoryOverlay .ns-story-bar {
  top: 26px;
  left: 24px;
  right: 24px;
  min-height: 40px;
  gap: 16px;
  color: #d0c3de;
  font-size: 9px;
  line-height: 1.5;
  text-shadow: none;
}
#nsStoryOverlay .ns-story-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-color: #dec9f338;
  background: #ffffff06;
}
#nsStoryOverlay .ns-story-close:hover { background: #e9e0f2; color: #16101e; }
#nsStoryOverlay .ns-story-nav {
  top: calc(50% + var(--ns-story-header) / 2);
  width: 42px;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid #e7d7fb2b;
  border-radius: 10px;
  background: #16111dcc;
  font-size: 31px;
}
#nsStoryOverlay .ns-story-prev { left: 9px; }
#nsStoryOverlay .ns-story-next { right: calc(var(--ns-story-aside) + 9px); }
#nsStoryOverlay .ns-story-nav:hover { border-color: #b7ffdb7a; background: #292132; }
#nsStoryOverlay .ns-story-copy {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 3vw, 42px) clamp(24px, 2.7vw, 36px);
  border-left: 1px solid #d9c6ef1c;
  background: linear-gradient(150deg, #201729, #17121e 70%);
  text-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #6b557b #17121e;
}
#nsStoryOverlay .ns-story-copy > span { font-size: 9px; }
#nsStoryOverlay .ns-story-copy h3 {
  margin: 17px 0 16px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: normal;
}
#nsStoryOverlay .ns-story-copy > p { margin-bottom: 27px; color: #c4b7d2; font-size: 14px; line-height: 1.65; }
#nsStoryOverlay .nc-story-recipe { margin-bottom: 25px; padding: 14px; border-color: #aa88ca35; background: #100c1680; }
#nsStoryOverlay .nc-story-recipe summary { min-height: 22px; font-size: 12px; }
#nsStoryOverlay .nc-story-recipe p { max-height: none; overflow: visible; margin: 12px 0; font-size: 12px; line-height: 1.7; color: #d1c5dc; }
#nsStoryOverlay .nc-story-recipe small { display: block; font-size: 10px; line-height: 1.6; color: #a997b8; }
#nsStoryOverlay .ns-story-try { min-height: 48px; padding: 15px; border-radius: 9px; font-size: 12px; }
#nsStoryOverlay .nc-story-recipe summary:focus-visible { outline: 2px solid var(--ns-mint); outline-offset: 5px; }
@media (max-width: 900px) {
  #nsStoryOverlay { padding: 12px; }
  #nsStoryOverlay .ns-story-panel {
    --ns-story-header: 76px;
    --ns-story-image-height: clamp(220px, 48dvh, 480px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--ns-story-header) var(--ns-story-image-height) max-content;
    width: min(700px, 100%);
    height: calc(100dvh - 24px);
    max-height: 1000px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    scrollbar-width: thin;
    scrollbar-color: #6b557b #14101c;
  }
  #nsStoryOverlay .ns-story-panel > img { padding: 18px 52px; }
  #nsStoryOverlay .ns-story-progress {
    position: sticky;
    top: 14px;
    left: auto;
    right: auto;
    z-index: 6;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: 14px 18px 0;
  }
  #nsStoryOverlay .ns-story-bar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 5;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    padding: 26px 18px 10px;
    background: #14101cf5;
    border-bottom: 1px solid #d9c6ef1c;
    backdrop-filter: blur(16px);
  }
  #nsStoryOverlay .ns-story-nav { top: calc(var(--ns-story-header) + var(--ns-story-image-height) / 2); }
  #nsStoryOverlay .ns-story-prev { left: 6px; }
  #nsStoryOverlay .ns-story-next { right: 6px; }
  #nsStoryOverlay .ns-story-copy {
    grid-column: 1;
    grid-row: 3;
    overflow: visible;
    padding: 28px;
    border-left: 0;
    border-top: 1px solid #d9c6ef1c;
  }
  #nsStoryOverlay .ns-story-copy h3 { max-width: 550px; font-size: clamp(29px, 5vw, 39px); margin-top: 12px; }
  #nsStoryOverlay .ns-story-copy > p { margin-bottom: 21px; }
  #nsStoryOverlay .nc-story-recipe { margin-bottom: 21px; }
}
@media (max-width: 480px) {
  #nsStoryOverlay { padding: 0; }
  #nsStoryOverlay .ns-story-panel {
    --ns-story-header: calc(76px + env(safe-area-inset-top, 0px));
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  #nsStoryOverlay .ns-story-progress { top: calc(14px + env(safe-area-inset-top, 0px)); margin-top: calc(14px + env(safe-area-inset-top, 0px)); }
  #nsStoryOverlay .ns-story-bar { padding-top: calc(26px + env(safe-area-inset-top, 0px)); font-size: 8px; letter-spacing: .06em; }
  #nsStoryOverlay .ns-story-copy { padding: 25px 22px calc(30px + env(safe-area-inset-bottom, 0px)); }
}
