/* Three flowing prompt rows with a stationary reduced-motion fallback. */
.usecases-section {
  min-height: 100svh;
  padding-bottom: 28px;
}
.usecases-section[data-prompt-palette="pearl"] {
  --prompt-fill: linear-gradient(
    165deg,
    #ffffff8a 0%,
    #b2bccb38 48%,
    #a5b4c726 100%
  );
  --prompt-ink: #3d4652;
  --prompt-border: #f6fbffb8;
  --prompt-shadow:
    inset 0 1px 0 #ffffff96, inset 0 -1px 0 #ffffff1f,
    0 7px 20px -14px #342a4630;
  --prompt-hover-fill: linear-gradient(165deg, #ffffffb3, #bac8da57);
  --prompt-hover-ink: #3d4652;
  --prompt-hover-border: #a7b9cda8;
  --prompt-hover-shadow: inset 0 1px 0 #ffffffb3, 0 9px 24px -14px #342a4640;
  --prompt-pressed-fill: linear-gradient(165deg, #f4faffbd, #a9bcd06b);
  --prompt-pressed-ink: #3d4652;
  --prompt-pressed-border: #a7b9cda8;
  --prompt-pressed-shadow: inset 0 1px 0 #ffffffa8, 0 8px 22px -13px #342a463d;
  --prompt-focus-ring: #7890aa;
  --prompt-symbol: #687e95;
  --prompt-symbol-active: #687e95;
  --prompt-icon-filter: none;
  --prompt-icon-opacity: 0.68;
}
.uc-prompt-region {
  max-width: 1600px;
  padding: 0 32px;
  margin-top: 22px;
  min-height: 0;
}
.uc-prompt-field {
  position: relative;
  margin: 0 auto;
  min-height: 144px;
}
.uc-bubble {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 21px;
  border: 1px solid var(--prompt-border);
  border-radius: 32px;
  background: var(--prompt-fill);
  box-shadow: var(--prompt-shadow);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  color: var(--prompt-ink);
  font-family: Instrument, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    color 0.25s;
}
.uc-bubble-symbol {
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  color: var(--prompt-symbol);
}
.uc-bubble-symbol svg {
  width: 23px;
  height: 23px;
}
.uc-bubble-open {
  display: grid;
  place-items: center;
  flex: 0 0 15px;
  font-size: 15px;
  color: var(--prompt-symbol);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.uc-bubble-open svg { width: 15px; height: 15px; }
.uc-bubble:hover,
.uc-bubble:focus-visible {
  background: var(--prompt-hover-fill);
  color: var(--prompt-hover-ink);
  border-color: var(--prompt-hover-border);
  box-shadow: var(--prompt-hover-shadow);
}
.uc-bubble:focus-visible {
  outline: 2px solid var(--prompt-focus-ring);
  outline-offset: 3px;
}
.uc-bubble:hover .uc-bubble-open,
.uc-bubble:focus-visible .uc-bubble-open {
  opacity: 1;
}
.uc-bubble[data-copied="true"] {
  color: var(--prompt-pressed-ink);
  border-color: var(--prompt-pressed-border);
  background: var(--prompt-pressed-fill);
  box-shadow: var(--prompt-pressed-shadow);
}
.uc-bubble[data-copied="true"] .uc-bubble-symbol {
  color: var(--prompt-symbol-active);
}
.uc-bubble-cloud {
  max-width: 1240px;
  margin: auto;
  display: grid;
  gap: 13px;
}
.uc-cloud-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.uc-cloud-row:nth-child(2) {
  padding: 0 5px;
}
.uc-cloud-row:nth-child(3) {
  padding: 0 40px;
}
.uc-cloud-row:nth-child(4) {
  padding: 0 80px;
}
.uc-bubble-entry {
  min-width: 0;
  flex: 0 1 315px;
}
.uc-cloud-row:nth-child(2) .uc-bubble-entry {
  flex-basis: 290px;
}
.uc-copy-status {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: -38px;
  margin: 0;
  padding: 8px 17px;
  border-radius: 24px;
  background: rgb(38 36 33 / .88);
  color: #fff;
  font: 400 13px/1.25 Instrument, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--uc-ease);
}
.uc-copy-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Three endlessly looping lanes: no progress bar and no prompt tabs. */
.uc-prompt-ribbons {
  padding: 9px 0;
  display: grid;
  gap: 17px;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.uc-ribbon-lane {
  overflow: hidden;
  padding: 6px 0 12px;
}
.uc-ribbon-track {
  display: flex;
  width: max-content;
  animation: uc-ribbon var(--duration) linear infinite;
  will-change: transform;
}
.uc-ribbon-lane:nth-child(2) .uc-ribbon-track {
  animation-direction: reverse;
}
.uc-ribbon-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
.uc-ribbon-group .uc-bubble {
  width: auto;
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
  min-height: 70px;
  padding: 17px 24px;
  font-size: 16px;
  border-radius: 36px;
}
.uc-ribbon-group .uc-bubble-open {
  display: none;
}

/* A keyboard-focused lane becomes a readable, stationary wrapping list. */
.uc-ribbon-lane:has(.uc-bubble:focus-visible) {
  overflow: visible;
}
.uc-ribbon-lane:has(.uc-bubble:focus-visible) .uc-ribbon-track {
  animation: none;
  width: 100%;
  transform: none;
}
.uc-ribbon-lane:has(.uc-bubble:focus-visible) .uc-ribbon-group {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.uc-ribbon-lane:has(.uc-bubble:focus-visible)
  .uc-ribbon-group[aria-hidden="true"] {
  display: none;
}

.uc-ribbon-lane:has(.uc-bubble:focus-visible) .uc-loop-copy {
  display: none;
}
[data-motion="paused"] .uc-ribbon-track {
  animation-play-state: paused;
  will-change: auto;
}
@keyframes uc-ribbon {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 1100px) {
  .uc-prompt-region {
    padding: 0 22px;
  }
  .uc-bubble {
    padding: 14px 16px;
    font-size: 14px;
    gap: 8px;
  }
  .uc-bubble-open {
    display: none;
  }
  .uc-cloud-row {
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .uc-prompt-region {
    margin-top: -30px;
    padding: 0 16px;
  }
  .uc-prompt-field {
    min-height: 350px;
  }
  .uc-bubble-cloud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .uc-cloud-row {
    display: contents;
  }
  .uc-bubble-entry {
    min-width: 0;
  }
  .uc-bubble {
    height: 100%;
    padding: 13px;
    font-size: 12px;
    gap: 7px;
    border-radius: 24px;
  }
  .uc-bubble-symbol {
    flex-basis: 18px;
  }
  .uc-bubble-symbol svg {
    width: 18px;
    height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-ribbon-track {
    animation: none;
    width: 100%;
    transform: none;
  }
  .uc-ribbon-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .uc-ribbon-group[aria-hidden="true"] {
    display: none;
  }
  .uc-ribbon-group .uc-bubble {
    white-space: normal;
    max-width: 340px;
  }
  .uc-prompt-ribbons {
    mask-image: none;
  }
  .uc-bubble-entry {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.uc-idea-stream {
  gap: 8px;
  padding: 0;
  animation: uc-idea-bob 5.6s ease-in-out infinite alternate;
}
.uc-idea-stream .uc-ribbon-lane {
  padding: 4px 0;
}
.uc-idea-stream .uc-ribbon-group {
  min-width: 0;
  justify-content: flex-start;
  gap: 16px;
  padding-right: 16px;
}
.uc-idea-stream .uc-ribbon-track {
  animation-delay: var(--lane-delay, 0s);
}
.uc-idea-stream .uc-idea-entry {
  flex: 0 0 auto;
}
.uc-idea-stream .uc-bubble {
  /* The translucent fill sits over diffuse light; moving tiles need no live backdrop capture. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  width: min(360px, 86vw);
  max-width: none;
  white-space: normal;
  min-height: 78px;
  height: 100%;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.32;
  gap: 8px;
  border-radius: 27px;
  animation: none;
}
.uc-idea-entry:nth-child(2n) .uc-bubble {
  animation-delay: -2.4s;
}
.uc-idea-stream .uc-bubble-symbol {
  flex-basis: 17px;
}
.uc-idea-stream .uc-bubble > span:nth-child(2) {
  min-width: 0;
}
.uc-idea-stream .uc-bubble-symbol svg {
  width: 17px;
  height: 17px;
}
[data-motion="paused"] .uc-idea-stream,
[data-motion="paused"] .uc-idea-entry .uc-bubble {
  animation-play-state: paused;
}
@keyframes uc-idea-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}
@media (min-width: 1800px) {
  .uc-idea-stream .uc-bubble {
    font-size: 14px;
    min-height: 78px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-idea-stream,
  .uc-idea-entry .uc-bubble {
    animation: none;
  }
}

/* A short introduction, then a longer pinned screen for scene interaction. */
.usecases-section {
  height: 360svh;
  min-height: 0;
  padding: 0;
  overflow: clip;
}
.uc-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}
.uc-pin .uc-heading {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: var(--uc-title-opacity, 0);
  transform: none;
  filter: none;
  transition: none;
  pointer-events: none;
  z-index: 1;
}
.uc-pin .uc-heading h2 {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 3px 30px #fff;
}
.uc-title-phrase { display: inline-block; }
.uc-pin .uc-heading p {
  margin-top: 20px;
  font-size: clamp(20px, 1.7vw, 26px);
}
.uc-title-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion-rise-ms) var(--motion-rise-ease);
  mask-image: radial-gradient(ellipse 42% 24% at 50% 49%, transparent 12%, #0006 60%, #000 100%);
}
[data-chapter="title"] .uc-title-backdrop { opacity: 0.72; }
.uc-title-curves { display: block; width: 100%; height: 100%; }
.uc-scene-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0;
  opacity: var(--uc-stage-opacity, 0);
  transform: none;
  visibility: hidden;
}
.uc-scene-stage .uc-carousel {
  width: 100%;
  flex: 0 0 auto;
  height: clamp(300px, 48.244svh, 434.2px);
  opacity: 1;
  transform: none;
  transition: none;
  transform-style: flat;
}
@media (max-width: 700px) {
  .uc-pin .uc-heading h2 { font-size: clamp(30px, 8.4vw, 44px); white-space: normal; line-height: 1.2; }
  .uc-pin .uc-heading p { max-width: 320px; font-size: 18px; }
  .uc-title-backdrop { mask-image: radial-gradient(ellipse 65% 28% at 50% 49%, transparent 20%, #000 100%); }
}
.uc-scene-stage .uc-prompt-region {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 22px;
  opacity: 1;
  transform: none;
  transition: none;
}
@media (min-width: 701px) and (max-height: 800px) {
  .uc-scene-stage {
    padding: 24px 0;
  }
  .uc-scene-stage .uc-carousel {
    height: clamp(270px, 42svh, 310px);
  }
  .uc-scene-stage .uc-prompt-region {
    margin-top: 14px;
  }
  .uc-idea-stream .uc-ribbon-lane {
    padding: 4px 0;
  }
}
/* Keep full source copy reachable when the stationary list needs more room. */
[data-all-ideas="true"] .uc-scene-stage .uc-prompt-region,
.uc-scene-stage .uc-prompt-region:has(.uc-bubble:focus-visible) {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.uc-bubble-cloud {
  max-width: 1140px;
  gap: 12px;
  padding: 6px 24px;
}
.uc-cloud-row {
  padding: 0;
}
.uc-bubble-cloud .uc-bubble {
  min-height: 52px;
  padding: 12px 16px;
  font-size: 14px;
}
/* Brand SVGs keep their native 16 px geometry inside the prompt's icon slot. */
.uc-bubble-symbol img {
  display: block;
  max-width: none;
  filter: var(--prompt-icon-filter);
  opacity: var(--prompt-icon-opacity);
}
.uc-bubble:hover .uc-bubble-symbol img,
.uc-bubble[aria-pressed="true"] .uc-bubble-symbol img {
  opacity: 0.9;
}
/* The compact chapter has a single photo, a six-scene index and a reading window. */
.uc-thumbnails { display: none; }
[data-mobile-ideas] .uc-scene-stage {
  --photo-height: clamp(178px, 46svh, 510px);
  --photo-width: 100%;
  display: grid;
  grid-template: var(--photo-height) auto minmax(0, 1fr) / minmax(0, 1fr);
  align-content: center;
  gap: 11px;
  padding: clamp(42px, 6svh, 60px) 0 calc(68px + env(safe-area-inset-bottom));
}
[data-mobile-ideas] .uc-scene-stage .uc-carousel {
  width: var(--photo-width);
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}
[data-mobile-ideas] .uc-scene {
  border-radius: inherit;
  box-shadow: none;
}
[data-mobile-ideas] .uc-scene .uc-scene-label {
  left: 15px;
  top: 16px;
  transform: none;
  width: max-content;
  max-width: calc(100% - 30px);
  height: auto;
  padding: 6px 13px 6px 7px;
  display: inline-flex;
  flex-direction: row;
  gap: 7px;
  border-radius: 30px;
  background: #fffaf1f2;
  color: #302b31;
}
[data-mobile-ideas] .uc-scene-label .uc-scene-art { width: 29px; height: 29px; }
[data-mobile-ideas] .uc-scene-label strong {
  display: block; width: auto; min-height: 0;
  font-size: clamp(16px,4.2vw,21px);
  text-align: start;
}
[data-mobile-ideas] .uc-scene-label .uc-label-dot { display: none; }
[data-mobile-ideas] .uc-scene[data-slot="0"] .uc-chat {
  left: 16px; top: auto; bottom: 16px; transform: none; background: #fffaf1e6;
}
[data-mobile-ideas] .uc-thumbnails {
  display: flex; gap: clamp(3px,1.4vw,9px);
  justify-content: safe center;
  align-items: center; padding: 3px 8px;
  width: 100%; overflow-x: auto; scrollbar-width: none;
}
.uc-thumbnail {
  position: relative; flex: 0 0 clamp(44px,12vw,60px); aspect-ratio: 1;
  padding: 2px; border: 2px solid transparent; border-radius: 12px;
  background: transparent; touch-action: manipulation;
}
.uc-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; opacity: .75; }
.uc-thumbnail .is-rotated { transform: rotate(-90deg); }
.uc-thumbnail[aria-pressed="true"] { background: #fff8ec; border-color: #473747; }
.uc-thumbnail[aria-pressed="true"] img { opacity: 1; }
.uc-thumbnail:focus-visible { outline: 2px solid #543676; outline-offset: 1px; }
[data-mobile-ideas][data-all-ideas="true"] .uc-scene-stage .uc-prompt-region {
  width: 100%; height: 100%; min-height: 0; max-height: none;
  align-self: center; margin: 0 auto; padding: 0 16px; overflow-y: auto;
  overscroll-behavior-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, black 14px, black calc(100% - 20px), transparent);
  mask-image: linear-gradient(transparent, black 14px, black calc(100% - 20px), transparent);
}
[data-mobile-ideas] .uc-prompt-field { min-height: 0; isolation: isolate; }
.uc-mobile-prompts { display: grid; gap: 8px; padding-block: 12px 18px; }
.uc-mobile-prompts > .uc-prompt-pending:not(:focus-visible) { opacity: 0; }
.uc-prompt-outgoing { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.uc-prompt-outgoing > .uc-mobile-prompts { position: absolute; inset-inline: 0; }
.uc-mobile-prompts .uc-bubble {
  width: 100%; min-height: 48px; height: auto; border-radius: 19px;
  padding: 12px 14px; font-size: 15px; line-height: 1.4;
  text-align: start; justify-content: start; white-space: normal;
  background: var(--prompt-fill);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.uc-mobile-prompts .uc-bubble > span:nth-child(2) { min-width: 0; }
[data-mobile-ideas] .uc-prompt-region .uc-copy-status {
  position: sticky; left: auto; bottom: 14px; margin: auto; padding-block: 0; width: max-content; max-width: 100%; transform: none; white-space: normal;
}
[data-mobile-ideas] .uc-prompt-region .uc-copy-status.is-visible { padding-block: 6px; }

[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene-stage {
  --photo-height: clamp(174px, min(70vw,36svh), 400px);
}
/* A short, white-edged print with its title and voice prompt centered together. */
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene-stage { --photo-width: calc(100% - 20px); }
[data-mobile-scene="album"] [data-mobile-ideas] .uc-carousel {
  container-type: inline-size; border-radius: 16px; box-shadow: 0 8px 24px -15px #422d465c;
}
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene {
  border: 5px solid #fffcf6; background: #fffcf6; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(7px, 1.15svh, 12px);
}
[data-mobile-scene="album"] [data-mobile-ideas] .uc-photo { border-radius: 11px; }
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene::after {
  background: radial-gradient(ellipse 85% 64% at 50% 42%, #211b278a, #211b2726 64%, transparent);
}
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene .uc-scene-label {
  position: relative; inset: auto; transform: none; max-width: calc(100% - 24px);
  background: transparent; color: #fffcf6; padding: 0; gap: 6px;
  text-shadow: 0 1px 4px #211827b3;
}
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene-label strong {
  font-size: clamp(18px, 6.3cqi, 29px); line-height: 1.08; text-align: center; text-wrap: balance;
}
[data-mobile-scene="album"] [data-mobile-ideas] .uc-scene[data-slot] .uc-chat {
  position: relative; inset: auto; transform: none; flex: none;
}
[data-mobile-scene="album"] .uc-mobile-prompts .uc-bubble { width: 92%; border-radius: 20px 20px 20px 6px; }
[data-mobile-scene="album"] .uc-mobile-prompts .uc-bubble:nth-child(even) {
  justify-self: end; border-radius: 20px 20px 6px 20px;
  background: #fffaf0e8; color: #342b33;
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) {
  [data-mobile-ideas] .uc-scene-stage {
    grid-template: minmax(85px, 1fr) auto / minmax(0,1.12fr) minmax(0,1fr);
    gap: 5px 10px; align-items: stretch;
    padding: 44px 12px 52px;
  }
  [data-mobile-ideas] .uc-carousel { grid-column: 1; grid-row: 1; }
  [data-mobile-ideas] .uc-thumbnails { grid-column: 1; grid-row: 2; }
  [data-mobile-ideas][data-all-ideas="true"] .uc-scene-stage .uc-prompt-region {
    grid-column: 2; grid-row: 1 / 3; padding: 0 4px;
  }
  [data-mobile-ideas] .uc-thumbnail { flex-basis: 44px; }
}
@media (max-width:700px) and (max-height:380px) and (orientation:landscape) {
  [data-mobile-scene="album"] [data-mobile-ideas] .uc-scene .uc-scene-label {
    gap: 4px;
  }
  [data-mobile-scene="album"] [data-mobile-ideas] .uc-scene-label .uc-scene-art { width: 20px; height: 20px; }
}
