:root {
  color: #f7fbfd;
  background: #07111c;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --intro-navy: #07111c;
  --intro-panel: rgba(12, 34, 49, 0.9);
  --intro-blue: #8bdce7;
  --intro-gold: #d8c38f;
  --intro-muted: #a9bbc6;
  --selected-idea-border: rgba(216, 195, 143, 0.96);
  --selected-idea-surface: linear-gradient(180deg, rgba(245, 232, 204, 0.98), rgba(232, 211, 174, 0.94));
  --selected-idea-resting-shadow:
    0 26px 52px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(42, 158, 177, 0.15),
    0 0 28px rgba(42, 158, 177, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.62);
  --selected-idea-card-width: clamp(205px, 23vw, 260px);
  --selected-idea-card-inset: clamp(14px, 1.8vw, 20px);
  --status-badge-font-size: clamp(1.12rem, 2vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 280px;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: var(--intro-navy);
}

button {
  font: inherit;
}

.ideaFactoryIntro {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(31, 120, 139, 0.18), transparent 32%),
    linear-gradient(145deg, #07111c, #0b1d2b 58%, #07111c);
}

#ideaFactoryTunnel,
.introGrid,
.introVignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#ideaFactoryTunnel {
  display: block;
  opacity: 0.58;
  transition: opacity 620ms ease, filter 620ms ease;
}

.ideaFactoryIntro.isFactoryWorking #ideaFactoryTunnel {
  opacity: 0.96;
  filter: brightness(1.75) saturate(1.28) drop-shadow(0 0 10px rgba(139, 220, 231, 0.3));
}

.ideaFactoryIntro.isIdeaCarouselScene #ideaFactoryTunnel {
  opacity: 0;
  filter: none;
}

.introGrid {
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
}

.introVignette {
  z-index: 2;
  background:
    radial-gradient(circle at center, transparent 0 20%, rgba(4, 23, 32, 0.08) 46%, rgba(2, 8, 14, 0.76) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 32%, rgba(0, 0, 0, 0.52));
  pointer-events: none;
  transition: opacity 620ms ease;
}

.ideaFactoryIntro.isFactoryWorking .introVignette {
  opacity: 0.68;
}

.ideaFactoryIntro.isStatic *,
.ideaFactoryIntro.isStatic *::before,
.ideaFactoryIntro.isStatic *::after {
  animation-play-state: paused !important;
}

.introMotionToggle {
  position: absolute;
  right: clamp(15px, 2.2vw, 28px);
  top: clamp(12px, 1.8vw, 22px);
  bottom: auto;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
}

.introMotionToggle span {
  color: var(--intro-gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.introMotionToggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.introMotionToggle:focus-visible,
.storyTimelineItem:focus-visible,
.d3CloudWord:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.storyStage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 82px;
  left: 0;
  z-index: 5;
}

.storyScene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.8vh, 17px);
  padding: clamp(16px, 2.3vw, 30px) clamp(18px, 3.6vw, 46px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px) scale(0.985);
  transition: opacity 520ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1), visibility 520ms;
}

.storyScene.isActive {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.storySceneIdeas {
  grid-template-rows: auto minmax(0, 1fr);
}

.storyMessage {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 1120px;
  min-height: clamp(42px, 7vh, 72px);
  margin: 0 auto;
  align-content: center;
  text-align: center;
}

.storyMessage h1,
.storyMessage h2 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.14;
  white-space: normal;
}

.storyMessage.isUpdating {
  animation: topMessageIn 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.storyScene:not(.isActive) .storyMessage {
  visibility: hidden;
  opacity: 0;
}

.resumeSignalCanvas,
.topicCloudPanel,
.ideaCarouselCanvas,
.postGenerationCanvas,
.resultCanvas {
  position: relative;
  width: min(100%, 1120px);
  min-height: 0;
  margin: 0 auto;
}

.resumeSignalCanvas {
  display: grid;
  grid-template-columns: minmax(160px, 205px) clamp(175px, 22vw, 240px) minmax(160px, 205px);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0;
}

.signalSourceCard,
.topicCloudPanel,
.ideaCarouselCanvas,
.generatedPostPreview,
.generatedImagePreview {
  border: 1px solid rgba(139, 220, 231, 0.25);
  background: linear-gradient(150deg, rgba(17, 45, 63, 0.94), rgba(8, 25, 37, 0.96));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.signalSourceCard {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: clamp(165px, 22vh, 190px);
  min-height: 0;
  padding: clamp(13px, 1.45vw, 18px);
  overflow: hidden;
  border-radius: 16px;
  filter: blur(8px);
  opacity: 0;
  will-change: opacity, filter, transform;
}

.resumeTopicSource {
  transform: translate3d(-92px, 8px, 0) scale(0.92);
}

.industryTrendSource {
  transform: translate3d(92px, 8px, 0) scale(0.92);
}

.storySceneResume.isActive .resumeTopicSource {
  animation: profileSourceFloatIn 1400ms 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResume.isActive .industryTrendSource {
  animation: industrySourceFloatIn 1400ms 3900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sourceMeaning {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  min-height: 0;
  text-align: center;
}

.sourceMeaningCopy {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.sourceMeaningCopy strong {
  color: #fff;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 850;
}

.sourceMeaningCopy small {
  color: var(--intro-muted);
  font-size: 0.68rem;
}

.resumeProfileGraphic,
.industryMomentumGraphic {
  position: relative;
  width: 64px;
  height: 50px;
  border: 1px solid rgba(139, 220, 231, 0.4);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(139, 220, 231, 0.12), rgba(7, 25, 37, 0.54));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.resumeProfileGraphic::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid rgba(139, 220, 231, 0.36);
  border-left: 1px solid rgba(139, 220, 231, 0.36);
  border-radius: 0 10px 0 6px;
  background: rgba(216, 195, 143, 0.16);
  content: '';
}

.resumeProfileBadge {
  position: absolute;
  top: 13px;
  left: 9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8c38f, #8bdce7);
  color: #0a2130;
  font-size: 0.5rem;
  font-weight: 900;
}

.resumeProfileDetail {
  position: absolute;
  top: 16px;
  right: 8px;
  display: grid;
  width: 19px;
  gap: 4px;
}

.resumeProfileDetail i {
  height: 2px;
  border-radius: 999px;
  background: rgba(216, 236, 241, 0.72);
}

.resumeProfileDetail i:nth-child(2) { width: 76%; }
.resumeProfileDetail i:nth-child(3) { width: 88%; }

.industryMomentumGraphic {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px 8px;
  overflow: hidden;
}

.industryMomentumGraphic i {
  z-index: 1;
  width: 7px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #79dcc8, rgba(139, 220, 231, 0.34));
  box-shadow: 0 0 12px rgba(121, 220, 200, 0.22);
}

.industryMomentumGraphic i:nth-child(1) { height: 12px; }
.industryMomentumGraphic i:nth-child(2) { height: 21px; }
.industryMomentumGraphic i:nth-child(3) { height: 31px; }

.industryMomentumGraphic::after {
  position: absolute;
  top: 22px;
  left: 8px;
  width: 47px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 195, 143, 0.26), #d8c38f);
  box-shadow: 0 0 10px rgba(216, 195, 143, 0.32);
  content: '';
  transform: rotate(-25deg);
}

.postAvatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8c38f, #8bdce7);
  color: #0a2130;
  font-weight: 900;
}

.generatedPostPreview header > div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.generatedPostPreview header > span {
  padding: 5px 8px;
  border: 1px solid rgba(216, 195, 143, 0.35);
  border-radius: 999px;
  color: var(--intro-gold);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sourceSignalFlow {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 0 3px;
  overflow: hidden;
}

.sourceSignalFlow > span {
  position: relative;
  display: block;
  width: var(--signal-width, 75%);
  height: 2px;
  border-radius: 999px;
  opacity: 0.72;
  transform: scaleX(0);
}

.resumeSignalFlow > span {
  justify-self: end;
  background: linear-gradient(90deg, transparent, rgba(139, 220, 231, 0.82));
  transform-origin: left center;
}

.industrySignalFlow > span {
  justify-self: start;
  background: linear-gradient(90deg, rgba(121, 220, 200, 0.82), transparent);
  transform-origin: right center;
}

.resumeSignalFlow > span:nth-child(1) {
  --signal-width: 72%;
  --signal-delay: 0ms;
}

.resumeSignalFlow > span:nth-child(2) {
  --signal-width: 91%;
  --signal-delay: 340ms;
}

.resumeSignalFlow > span:nth-child(3) {
  --signal-width: 63%;
  --signal-delay: 680ms;
}

.industrySignalFlow > span:nth-child(1) {
  --signal-width: 68%;
  --signal-delay: 160ms;
}

.industrySignalFlow > span:nth-child(2) {
  --signal-width: 88%;
  --signal-delay: 500ms;
}

.industrySignalFlow > span:nth-child(3) {
  --signal-width: 58%;
  --signal-delay: 840ms;
}

.sourceSignalFlow i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px var(--intro-blue);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.resumeSignalFlow i { left: 0; }
.industrySignalFlow i { right: 0; transform: translate(50%, -50%); }

.storySceneResume.isActive .resumeSignalFlow > span {
  animation: sourceSignalLineReveal 900ms calc(1800ms + var(--signal-delay, 0ms)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResume.isActive .industrySignalFlow > span {
  animation: sourceSignalLineReveal 900ms calc(5400ms + var(--signal-delay, 0ms)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResume.isActive .resumeSignalFlow i {
  animation: resumeSourceSignalTravel 3.45s calc(2200ms + var(--signal-delay, 0ms)) linear infinite;
}

.storySceneResume.isActive .industrySignalFlow i {
  animation: industrySourceSignalTravel 3.45s calc(5800ms + var(--signal-delay, 0ms)) linear infinite;
}

.topicMatchEngine {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.matchEngineCore {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(148px, 18vw, 200px);
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(216, 195, 143, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 88, 103, 0.92), rgba(7, 25, 37, 0.97) 70%);
  box-shadow: 0 0 0 10px rgba(139, 220, 231, 0.04), 0 0 42px rgba(139, 220, 231, 0.2);
}

.matchEngineCore::before,
.matchEngineCore::after {
  position: absolute;
  z-index: -1;
  inset: -13px;
  border: 2px solid rgba(139, 220, 231, 0.74);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  content: '';
}

.matchEngineCore::after {
  inset: -25px;
  border-color: rgba(216, 195, 143, 0.56);
}

.storySceneResume.isFactoryWorking .matchEngineCore {
  animation: matchCoreWorkHard 950ms ease-in-out infinite;
}

.storySceneResume.isFactoryWorking .matchEngineCore::before {
  animation: matchCoreAuraRing 1.65s ease-out infinite;
}

.storySceneResume.isFactoryWorking .matchEngineCore::after {
  animation: matchCoreAuraRing 1.65s 820ms ease-out infinite;
}

.matchEngineCore img {
  width: clamp(52px, 6.8vw, 72px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 9px rgba(139, 220, 231, 0.56));
}

.matchEngineCore small {
  color: var(--intro-gold);
  font-size: clamp(0.62rem, 0.86vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.matchEngineCore strong {
  max-width: 82%;
  color: #fff;
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  line-height: 1.08;
  text-align: center;
}

.matchSignal {
  position: absolute;
  top: 50%;
  width: calc(50% - clamp(74px, 9vw, 100px));
  height: 2px;
  overflow: visible;
  background: linear-gradient(90deg, rgba(139, 220, 231, 0.16), var(--intro-blue));
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

.matchSignalLeft { left: 0; }
.matchSignalRight { right: 0; transform: scaleX(-1); }

.matchSignal i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--intro-blue);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.storySceneResume.isActive .matchSignalLeft {
  animation: matchConnectionReveal 1050ms 1950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResume.isActive .matchSignalRight {
  animation: matchConnectionReveal 1050ms 5600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResume.isActive .matchSignalLeft i {
  animation: matchSignalTravel 3.1s 2400ms linear infinite;
}

.storySceneResume.isActive .matchSignalLeft i:nth-child(2) {
  animation-delay: 3650ms;
}

.storySceneResume.isActive .matchSignalRight i {
  animation: matchSignalTravel 3.1s 6050ms linear infinite;
}

.storySceneResume.isActive .matchSignalRight i:nth-child(2) {
  animation-delay: 7300ms;
}

.topicCloudPanel > header,
.ideaCarouselCanvas > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topicCloudPanel header span,
.ideaCarouselCanvas header span {
  color: var(--intro-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topicCloudPanel header small i,
.resultReadyBadge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #79dcc8;
  box-shadow: 0 0 10px rgba(121, 220, 200, 0.78);
}

.topicCloudPanel,
.ideaCarouselCanvas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(15px, 2vw, 24px);
  overflow: hidden;
  border-radius: 20px;
}

.storySceneIdeas .ideaCarouselCanvas {
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.topicCloudPanel > header > div {
  display: grid;
  gap: 3px;
}

.topicCloudPanel header strong {
  font-size: clamp(0.78rem, 1.4vw, 1rem);
}

.topicCloudPanel header small {
  color: #b8c8d1;
  font-size: 0.62rem;
  font-weight: 700;
}

.d3TopicCloud {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(78, 185, 203, 0.13), transparent 46%),
    repeating-radial-gradient(circle at center, transparent 0 46px, rgba(139, 220, 231, 0.07) 47px 48px);
}

.d3CloudWord {
  position: absolute;
  top: var(--word-y);
  left: var(--word-x);
  max-width: 31%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--word-color, #b7edf1);
  font-weight: var(--word-weight, 700);
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 0 18px rgba(139, 220, 231, 0.25);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.62);
  transition: color 200ms ease, text-shadow 200ms ease;
}

.storySceneCloud.isActive .d3CloudWord {
  animation: cloudWordIn 620ms var(--word-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d3CloudWord:hover,
.d3CloudWord.isSelected {
  color: #fff4cf;
  text-shadow: 0 0 22px rgba(216, 195, 143, 0.78);
}

.d3CloudWord.isSelected::after {
  position: absolute;
  right: -8px;
  bottom: -6px;
  left: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--intro-gold);
  content: "";
}

.topicCloudPanel > footer,
.generatedImagePreview > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--intro-muted);
  font-size: clamp(0.66rem, 1.1vw, 0.78rem);
}

.topicCloudPanel > footer strong {
  color: var(--intro-gold);
  font-size: clamp(0.7rem, 1.2vw, 0.84rem);
}

.ideaCarouselCanvas > header > div {
  display: grid;
  gap: 3px;
}

.ideaCarouselCanvas > header strong {
  color: #fff;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
}

.ideaCarouselCanvas > header small {
  color: var(--intro-muted);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 700;
}

.ideaCarouselCanvas > header small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #79dcc8;
  box-shadow: 0 0 10px rgba(121, 220, 200, 0.78);
}

.ideaCarouselViewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  perspective: 1100px;
}

.ideaCarouselLead {
  position: absolute;
  top: 50%;
  left: var(--idea-lead-x, 8%);
  z-index: 45;
  width: max-content;
  max-width: 72%;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-shadow: 0 0 26px rgba(139, 220, 231, 0.52);
  white-space: nowrap;
  opacity: var(--idea-lead-opacity, 0);
  pointer-events: none;
  transform: translateY(-50%);
  will-change: left, opacity;
}

.storySceneIdeas.isActive .ideaCarouselLead {
  animation: ideaCarouselLeadAura 1600ms ease-in-out infinite;
}

.ideaCarouselTrack {
  position: absolute;
  inset: calc(var(--selected-idea-card-inset) + 1px) 0;
  transform-style: preserve-3d;
}

.ideaCarouselCard {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--idea-z, 1);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: var(--selected-idea-card-width);
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(65, 111, 146, 0.38);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(220, 235, 246, 0.98), rgba(194, 218, 235, 0.94));
  color: #172733;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.55);
  opacity: var(--idea-opacity, 0);
  filter: saturate(var(--idea-saturation, 0.72)) brightness(var(--idea-brightness, 0.8));
  transform: translate3d(-50%, -50%, var(--idea-depth, 0)) translateX(var(--idea-x, 0%)) rotateY(var(--idea-rotate, 0deg)) scale(var(--idea-scale, 0.88));
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 620ms ease,
    filter 620ms ease,
    border-color 220ms ease,
    box-shadow 280ms ease;
  will-change: transform, opacity, filter;
}

.ideaHandoffCard {
  position: absolute;
  z-index: 80;
  margin: 0;
  border-color: var(--selected-idea-border);
  background: var(--selected-idea-surface);
  box-shadow: var(--selected-idea-resting-shadow);
  opacity: 1;
  filter: saturate(1.08) brightness(1.04);
  transform: none;
  transform-origin: top left;
  transition: none;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.storySceneIdeas.isCarouselAutoScrolling .ideaCarouselCard {
  transition: none;
}

.storySceneIdeas[data-carousel-phase="intro"] .ideaCarouselCard {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.storySceneIdeas.isActive .ideaCarouselCardBody,
.storySceneIdeas.isActive .ideaCarouselBookmark,
.storySceneIdeas.isActive .ideaCarouselUseAction {
  animation: ideaCarouselContentGenerated 560ms var(--card-delay, 0ms) cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.ideaCarouselCard::before {
  position: absolute;
  z-index: 0;
  top: -20%;
  left: -16%;
  width: 70%;
  height: 42%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(30px);
  pointer-events: none;
  content: "";
}

.ideaCarouselCard:nth-child(1) { --card-delay: 180ms; }
.ideaCarouselCard:nth-child(2) { --card-delay: 300ms; }
.ideaCarouselCard:nth-child(3) { --card-delay: 420ms; }
.ideaCarouselCard:nth-child(4) { --card-delay: 540ms; }
.ideaCarouselCard:nth-child(5) { --card-delay: 660ms; }
.ideaCarouselCard:nth-child(6) { --card-delay: 780ms; }

.ideaCarouselCard:nth-child(2) {
  border-color: rgba(91, 134, 98, 0.38);
  background: linear-gradient(180deg, rgba(225, 240, 223, 0.98), rgba(199, 224, 201, 0.94));
}

.ideaCarouselCard:nth-child(3) {
  border-color: rgba(159, 124, 68, 0.38);
  background: var(--selected-idea-surface);
}

.ideaCarouselCard:nth-child(4) {
  border-color: rgba(116, 99, 157, 0.36);
  background: linear-gradient(180deg, rgba(232, 225, 247, 0.98), rgba(213, 203, 235, 0.94));
}

.ideaCarouselCard:nth-child(5) {
  border-color: rgba(153, 99, 88, 0.36);
  background: linear-gradient(180deg, rgba(248, 224, 218, 0.98), rgba(235, 201, 193, 0.94));
}

.ideaCarouselCard:nth-child(6) {
  border-color: rgba(64, 132, 135, 0.38);
  background: linear-gradient(180deg, rgba(218, 240, 240, 0.98), rgba(190, 223, 224, 0.94));
}

.ideaCarouselCard.isCarouselActive {
  border-color: rgba(42, 158, 177, 0.9);
  box-shadow: var(--selected-idea-resting-shadow);
}

.ideaCarouselCard.isIdeaSelected {
  border-color: var(--selected-idea-border);
  filter: saturate(1.08) brightness(1.04);
  animation: ideaCarouselSelectionAura 480ms ease-in-out 2;
}

.ideaCarouselCardBody {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: clamp(7px, 1.2vh, 11px);
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.4vw, 26px) 10px;
}

.ideaCarouselCardBody small {
  color: rgba(16, 44, 61, 0.62);
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ideaCarouselCardBody h3 {
  max-width: 90%;
  margin: 0;
  color: #102c3d;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  white-space: normal;
}

.ideaCarouselCardBody p {
  margin: 0;
  color: rgba(16, 44, 61, 0.82);
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  line-height: 1.45;
}

.ideaCarouselBookmark {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #17354b;
}

.ideaCarouselBookmark svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ideaCarouselUseAction {
  position: relative;
  z-index: 2;
  justify-self: end;
  margin: 0 16px 14px 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: #17354b;
  color: #fff;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 800;
}

.ideaCarouselUseAction i {
  margin-left: 4px;
  font-style: normal;
}

.ideaCarouselSelectionStatus {
  position: absolute;
  right: 50%;
  bottom: clamp(10px, 2vh, 18px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid rgba(216, 195, 143, 0.9);
  border-radius: 999px;
  background: rgba(7, 25, 37, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), 0 0 38px rgba(139, 220, 231, 0.34);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px) scale(0.9);
}

.ideaCarouselSelectionStatus i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #79dcc8;
  box-shadow: 0 0 12px rgba(121, 220, 200, 0.9);
}

.ideaCarouselSelectionStatus span {
  color: #fff;
  font-size: var(--status-badge-font-size);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.storySceneIdeas.isIdeaSelectionLocked .ideaCarouselSelectionStatus {
  animation:
    ideaCarouselSelectionStatusIn 280ms cubic-bezier(0.16, 1, 0.3, 1) both,
    ideaCarouselSelectionStatusFlash 480ms ease-in-out 2;
}

.storySceneIdeas.isIdeaSelectionLocked .ideaCarouselSelectionStatus i {
  animation: ideaCarouselSelectionDot 480ms ease-in-out 2;
}

.selectedIdeaCardStatus {
  bottom: calc(clamp(10px, 2vh, 18px) - (var(--selected-idea-card-inset) + 2px));
  z-index: 100;
  opacity: 1;
  transform: translate(50%, 0) scale(1);
  white-space: nowrap;
}

.storySceneIdeas.isIdeaSelectionLocked .ideaCarouselCard.isIdeaSelected > .ideaCarouselUseAction,
.ideaHandoffCard > .ideaCarouselUseAction,
.selectedIdeaFlow > .ideaCarouselUseAction {
  visibility: hidden;
}

.ideaHandoffCard > .selectedIdeaCardStatus,
.selectedIdeaFlow > .selectedIdeaCardStatus {
  bottom: clamp(10px, 1.5vh, 14px);
}

.postGenerationCanvas {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: calc(var(--selected-idea-card-inset) + 1px) 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.generationFlowLayout {
  display: grid;
  grid-template-columns: var(--selected-idea-card-width) clamp(110px, 10vw, 150px) clamp(250px, 32vw, 360px);
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 22px);
  min-height: 0;
  perspective: 1300px;
}

.selectedIdeaFlow {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: center;
  gap: clamp(8px, 1.25vh, 13px);
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 1.7vw, 19px);
  overflow: hidden;
  border: 1px solid var(--selected-idea-border);
  border-radius: 17px;
  background: var(--selected-idea-surface);
  box-shadow: var(--selected-idea-resting-shadow);
  color: #102c3d;
  opacity: 0;
  transform: translateX(-68px) rotateY(12deg) scale(0.9);
  transform-origin: right center;
  will-change: opacity, transform;
}

.selectedIdeaFlow::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 91, 47, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 91, 47, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  content: "";
}

.selectedIdeaFlow::after {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -62%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
  content: "";
}

.selectedIdeaFlow > header,
.selectedIdeaFlow > footer,
.selectedIdeaFlow > strong,
.selectedIdeaFlow > p,
.selectedIdeaGlyph {
  position: relative;
  z-index: 1;
}

.selectedIdeaFlow > header,
.selectedIdeaFlow > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.selectedIdeaFlow > header > span {
  color: #12627d;
  font-size: clamp(0.58rem, 0.86vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.selectedIdeaFlow > header > small {
  color: #176b60;
  font-size: clamp(0.52rem, 0.76vw, 0.62rem);
  font-weight: 900;
}

.selectedIdeaFlow > header > small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #20a98d;
  box-shadow: 0 0 9px rgba(32, 169, 141, 0.72);
}

.selectedIdeaGlyph {
  display: grid;
  width: clamp(42px, 4.8vw, 56px);
  height: clamp(42px, 4.8vw, 56px);
  place-items: center;
  border: 1px solid rgba(17, 110, 143, 0.3);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 28px rgba(18, 98, 125, 0.12);
}

.selectedIdeaGlyph i {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(18, 98, 125, 0.42);
  border-radius: 50%;
}

.selectedIdeaGlyph b {
  color: #12627d;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.selectedIdeaFlow > strong {
  color: #102c3d;
  font-size: clamp(0.94rem, 1.5vw, 1.14rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
  white-space: normal;
}

.selectedIdeaFlow > p {
  align-self: start;
  margin: 0;
  color: rgba(16, 44, 61, 0.78);
  font-size: clamp(0.62rem, 0.94vw, 0.74rem);
  line-height: 1.42;
}

.selectedIdeaFlow > footer {
  padding-top: 9px;
  border-top: 1px solid rgba(18, 98, 125, 0.16);
}

.selectedIdeaFlow > footer span {
  color: rgba(16, 44, 61, 0.58);
  font-size: clamp(0.5rem, 0.74vw, 0.59rem);
  font-weight: 800;
  text-transform: uppercase;
}

.selectedIdeaFlow > footer b {
  color: #12627d;
  font-size: clamp(0.52rem, 0.78vw, 0.62rem);
}

.selectedIdeaFlow {
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0;
  padding: 0;
  border-radius: 20px;
  box-shadow: var(--selected-idea-resting-shadow);
  filter: saturate(1.08) brightness(1.04);
}

.selectedIdeaFlow::before {
  top: -20%;
  right: auto;
  bottom: auto;
  left: -16%;
  width: 70%;
  height: 42%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(30px);
}

.storySceneResult.isActive .selectedIdeaFlow {
  animation: generationIdeaSourceIn 720ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ideaFactoryIntro.isPreparingIdeaHandoff .storySceneResult,
.ideaFactoryIntro.isIdeaHandoffActive .storySceneResult {
  transform: translateX(0) scale(1);
  transition: opacity 520ms ease, visibility 520ms;
}

.ideaFactoryIntro.isPreparingIdeaHandoff .selectedIdeaFlow,
.ideaFactoryIntro.isIdeaHandoffActive .selectedIdeaFlow {
  animation: none !important;
  opacity: 0;
  transform: none;
}

.ideaFactoryIntro.isMeasuringIdeaHandoff .selectedIdeaFlow {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.storySceneResult.isActive .selectedIdeaFlow.isSharedIdeaArrived {
  animation: none !important;
  opacity: 1;
  transform: none;
}

.storySceneResult.isActive .selectedIdeaFlow::after {
  animation: generationIdeaSweep 980ms 560ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResult.isActive .selectedIdeaGlyph i {
  animation: generationIdeaOrbit 8s 720ms linear infinite;
}

.generationTransformBridge {
  position: relative;
  min-width: 0;
  min-height: 0;
  opacity: 0;
}

.generationBridgeLabel {
  position: absolute;
  top: calc(50% - 52px);
  left: 50%;
  color: #dcebf0;
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.generationBridgeLine {
  position: absolute;
  top: 50%;
  right: -24px;
  left: -24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 195, 143, 0.35), #8bdce7 48%, rgba(139, 220, 231, 0.28));
  box-shadow: 0 0 13px rgba(139, 220, 231, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
}

.generationBridgeCore {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(38px, 4.5vw, 50px);
  height: clamp(38px, 4.5vw, 50px);
  place-items: center;
  border: 1px solid rgba(139, 220, 231, 0.64);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 74, 94, 0.98), rgba(4, 18, 29, 0.98));
  box-shadow: 0 0 0 0 rgba(139, 220, 231, 0.22), 0 0 28px rgba(139, 220, 231, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
}

.generationBridgeCore i {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(216, 195, 143, 0.58);
  border-radius: 50%;
}

.generationBridgeCore b {
  color: #f4e6b7;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  text-shadow: 0 0 14px rgba(244, 230, 183, 0.72);
}

.generationFlowParticle {
  position: absolute;
  top: 50%;
  left: -10px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9faff;
  box-shadow: 0 0 6px #fff, 0 0 15px #8bdce7;
  opacity: 0;
  transform: translate(-50%, var(--flow-y, 0)) scale(0.5);
}

.generationFlowParticle:nth-of-type(1) {
  --flow-delay: 0ms;
  --flow-y: -10px;
}

.generationFlowParticle:nth-of-type(2) {
  --flow-delay: 260ms;
  --flow-y: 8px;
}

.generationFlowParticle:nth-of-type(3) {
  --flow-delay: 520ms;
  --flow-y: -2px;
}

.generationOutputBurst {
  position: absolute;
  top: 50%;
  right: -27px;
  width: 64px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139, 220, 231, 0.52), rgba(139, 220, 231, 0.11) 38%, transparent 70%);
  filter: blur(3px);
  opacity: 0;
  transform: translateY(-50%) scale(0.25);
}

.storySceneResult.isActive .generationTransformBridge {
  animation: generationBridgeIn 260ms 630ms ease forwards;
}

.storySceneResult.isActive .generationBridgeLine {
  animation: generationLineGrow 720ms 690ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResult.isActive .generationBridgeCore {
  animation:
    generationCoreIgnite 620ms 930ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
    generationCorePulse 2.4s 1600ms ease-in-out infinite;
}

.storySceneResult.isActive .generationBridgeCore i {
  animation: generationIdeaOrbit 7s 1280ms linear infinite;
}

.storySceneResult.isActive .generationFlowParticle {
  animation: generationParticleTravel 1.25s calc(980ms + var(--flow-delay, 0ms)) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.storySceneResult.isActive .generationOutputBurst {
  animation: generationOutputBurst 950ms 1320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.generationResultGrid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  perspective: 1100px;
}

.generatedLinkedInPost {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  filter: blur(6px);
  opacity: 0;
  -webkit-clip-path: inset(0 100% 0 0 round 16px);
  clip-path: inset(0 100% 0 0 round 16px);
  transform-origin: left center;
  will-change: opacity, filter, transform, clip-path;
}

.generatedLinkedInPost {
  --post-card-gutter: clamp(12px, 1.4vw, 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-self: center;
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  padding: 0;
  background: #fff;
  color: #253746;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  font-family: Arial, Helvetica, sans-serif;
  transform: translate3d(-90px, 18px, -80px) rotateY(-14deg) scale(0.82);
}

.storySceneResult.isActive .generatedLinkedInPost {
  animation: generationPostMaterialize 900ms 1460ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.generatedLinkedInPost > header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: var(--post-card-gutter) var(--post-card-gutter) 0;
}

.generatedPostAvatar {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a66c2, #53a6e7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.generatedLinkedInPost > header > div:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.generatedLinkedInPost > header strong {
  color: #172733;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
}

.generatedLinkedInPost > header span {
  overflow: hidden;
  color: #667884;
  font-size: clamp(0.54rem, 0.8vw, 0.64rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generatedLinkedInPost > header small {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8f2f8;
  color: #0a66c2;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.generatedLinkedInCopy {
  padding: clamp(9px, 1.2vh, 13px) var(--post-card-gutter) 8px;
  color: #263442;
  font-size: clamp(0.61rem, 0.92vw, 0.72rem);
  line-height: 1.36;
}

.generatedLinkedInCopy p {
  margin: 0 0 5px;
  opacity: 0;
  transform: translateY(7px);
}

.generatedLinkedInCopy > strong {
  display: block;
  color: #0a66c2;
  font-size: clamp(0.58rem, 0.85vw, 0.68rem);
  opacity: 0;
  transform: translateY(7px);
}

.storySceneResult.isActive .generatedLinkedInCopy p,
.storySceneResult.isActive .generatedLinkedInCopy > strong {
  animation: generationCopyIn 430ms forwards;
}

.storySceneResult.isActive .generatedLinkedInCopy p:nth-child(1) { animation-delay: 2220ms; }
.storySceneResult.isActive .generatedLinkedInCopy p:nth-child(2) { animation-delay: 2370ms; }
.storySceneResult.isActive .generatedLinkedInCopy p:nth-child(3) { animation-delay: 2520ms; }
.storySceneResult.isActive .generatedLinkedInCopy > strong { animation-delay: 2670ms; }

.generatedLinkedInPost > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 72px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #075ba1;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.storySceneResult.isActive .generatedLinkedInPost > img {
  animation: generationImageReveal 820ms 2780ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.generatedLinkedInPost > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px var(--post-card-gutter) var(--post-card-gutter);
  color: #667884;
  font-size: clamp(0.54rem, 0.8vw, 0.64rem);
}

.generatedLinkedInPost > footer strong {
  color: #0a66c2;
}

.finalEditingReady {
  position: absolute;
  bottom: clamp(12px, 1.8vh, 18px);
  left: 50%;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 10px 16px;
  border: 1px solid rgba(216, 195, 143, 0.72);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(9, 35, 48, 0.97), rgba(12, 63, 73, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 28px rgba(121, 220, 200, 0.3);
  color: #fff;
  font-size: var(--status-badge-font-size);
  font-weight: 900;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.94);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.finalEditingReady i {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #79dcc8;
  box-shadow: 0 0 16px rgba(121, 220, 200, 0.78);
  color: #082330;
  font-size: 0.82rem;
  font-style: normal;
}

.finalEditingReady.isVisible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.resultCanvas {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(12px, 2vw, 22px);
}

.generatedPostPreview,
.generatedImagePreview {
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
}

.storySceneResult.isActive .generatedPostPreview,
.storySceneResult.isActive .generatedImagePreview {
  animation: resultPanelIn 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.storySceneResult.isActive .generatedImagePreview { animation-delay: 220ms; }

.generatedPostPreview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(14px, 1.8vw, 21px);
}

.generatedPostPreview > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.postAvatar {
  width: 34px;
  height: 34px;
  font-size: 0.62rem;
}

.generatedPostPreview header strong {
  font-size: clamp(0.7rem, 1.2vw, 0.84rem);
}

.generatedPostPreview header small {
  color: var(--intro-muted);
  font-size: 0.55rem;
}

.generatedPostCopy {
  display: grid;
  align-content: center;
  gap: clamp(7px, 1.2vh, 11px);
  padding: clamp(12px, 2vh, 20px) 0;
}

.generatedPostCopy strong {
  color: #fff;
  font-size: clamp(0.78rem, 1.55vw, 1.05rem);
  line-height: 1.25;
}

.generatedPostCopy p {
  margin: 0;
  color: #c9d8de;
  font-size: clamp(0.6rem, 1.05vw, 0.72rem);
  line-height: 1.42;
}

.generatedPostCopy small {
  color: var(--intro-blue);
  font-size: clamp(0.54rem, 0.95vw, 0.65rem);
  font-weight: 700;
}

.generatedPostPreview > footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--intro-gold);
  font-size: 0.58rem;
  font-weight: 700;
}

.generatedImagePreview {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #07111c;
}

.generatedImagePreview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.88) contrast(1.04);
}

.generatedImagePreview::after {
  position: absolute;
  inset: 0 0 38px;
  border: 1px solid rgba(139, 220, 231, 0.38);
  background: linear-gradient(180deg, transparent 58%, rgba(4, 16, 25, 0.68));
  content: "";
  pointer-events: none;
}

.generatedImageOverlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(139, 220, 231, 0.42);
  border-radius: 999px;
  background: rgba(5, 20, 30, 0.72);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.generatedImageOverlay i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--intro-blue);
  box-shadow: 0 0 10px var(--intro-blue);
}

.generatedImagePreview > footer {
  position: relative;
  z-index: 2;
  padding: 11px 14px;
  background: #0b2231;
}

.generatedImagePreview > footer strong {
  color: var(--intro-gold);
}

.resultReadyBadge {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 4px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 195, 143, 0.5);
  border-radius: 12px;
  background: rgba(7, 22, 33, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  opacity: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.storySceneResult.isActive .resultReadyBadge {
  animation: outcomeIn 520ms 920ms ease forwards;
}

.resultReadyBadge i {
  grid-row: 1 / 3;
  align-self: center;
  margin: 0 3px 0 0;
}

.resultReadyBadge span {
  font-size: 0.62rem;
  font-weight: 800;
}

.resultReadyBadge strong {
  color: var(--intro-gold);
  font-size: 0.52rem;
}

.storyTimeline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 82px;
  padding: 12px clamp(16px, 3vw, 34px) 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(0deg, rgba(4, 14, 23, 0.96), rgba(4, 14, 23, 0.72));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.storyTimelineItem {
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 5px auto;
  align-items: center;
  gap: 7px 8px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #8398a5;
  text-align: left;
  cursor: pointer;
}

.storyTimelineTrack {
  position: relative;
  grid-column: 1 / -1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.storyTimelineTrack i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--intro-blue), var(--intro-gold));
  transform: scaleX(var(--stage-progress, 0));
  transform-origin: left;
}

.storyTimelineItem small {
  color: var(--intro-gold);
  font-size: clamp(0.76rem, 1vw, 0.86rem);
  font-weight: 900;
}

.storyTimelineItem strong {
  overflow: hidden;
  font-size: clamp(0.84rem, 1.25vw, 1rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storyTimelineItem.isCurrent,
.storyTimelineItem.isComplete {
  color: #fff;
}

@keyframes topMessageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes matchSignalTravel {
  0% { left: 0; opacity: 0; }
  14%, 82% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes profileSourceFloatIn {
  to {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes industrySourceFloatIn {
  to {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sourceSignalLineReveal {
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes matchConnectionReveal {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes matchCoreWorkHard {
  0%, 100% {
    box-shadow: 0 0 0 10px rgba(139, 220, 231, 0.08), 0 0 46px rgba(139, 220, 231, 0.32), inset 0 0 24px rgba(139, 220, 231, 0.08);
  }
  50% {
    box-shadow: 0 0 0 22px rgba(139, 220, 231, 0.08), 0 0 92px rgba(139, 220, 231, 0.82), 0 0 132px rgba(216, 195, 143, 0.34), inset 0 0 38px rgba(139, 220, 231, 0.2);
  }
}

@keyframes matchCoreAuraRing {
  0% { opacity: 0.92; transform: scale(0.72); }
  68% { opacity: 0.46; }
  100% { opacity: 0; transform: scale(1.48); }
}

@keyframes trendPulse {
  50% { opacity: 0.55; transform: scale(1.45); }
}

@keyframes resumeSourceSignalTravel {
  0% { left: 0; opacity: 0; }
  15%, 84% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes industrySourceSignalTravel {
  0% { right: 0; opacity: 0; }
  15%, 84% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

@keyframes cloudWordIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes ideaCarouselContentGenerated {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes ideaCarouselSelectionAura {
  0%, 100% {
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.32), 0 0 0 3px rgba(216, 195, 143, 0.45), 0 0 36px rgba(139, 220, 231, 0.4);
  }

  50% {
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.4), 0 0 0 12px rgba(216, 195, 143, 0.38), 0 0 105px rgba(139, 220, 231, 0.98);
  }
}

@keyframes ideaCarouselLeadAura {
  0%, 100% {
    text-shadow: 0 0 18px rgba(139, 220, 231, 0.28);
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 22px rgba(139, 220, 231, 0.5),
      0 0 42px rgba(139, 220, 231, 0.2);
    filter: brightness(1.06);
  }
}

@keyframes ideaCarouselSelectionStatusIn {
  to { opacity: 1; transform: translate(50%, 0) scale(1); }
}

@keyframes ideaCarouselSelectionStatusFlash {
  0%, 100% {
    border-color: rgba(216, 195, 143, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), 0 0 38px rgba(139, 220, 231, 0.34);
  }
  50% {
    border-color: #fff0b8;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 68px rgba(139, 220, 231, 0.84), 0 0 0 6px rgba(216, 195, 143, 0.18);
  }
}

@keyframes ideaCarouselSelectionDot {
  0%, 100% { opacity: 0.4; transform: scale(0.62); }
  50% { opacity: 1; transform: scale(1.62); }
}

@keyframes generationIdeaSourceIn {
  0% {
    opacity: 0;
    filter: blur(8px) saturate(1.08) brightness(1.04);
    transform: translateX(-68px) rotateY(12deg) scale(0.9);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1.08) brightness(1.04);
    transform: translateX(0) rotateY(0deg) scale(1);
  }
}

@keyframes generationIdeaSweep {
  0% { left: -62%; opacity: 0; }
  22%, 72% { opacity: 0.78; }
  100% { left: 132%; opacity: 0; }
}

@keyframes generationIdeaOrbit {
  to { transform: rotate(360deg); }
}

@keyframes generationBridgeIn {
  to { opacity: 1; }
}

@keyframes generationLineGrow {
  to { transform: scaleX(1); }
}

@keyframes generationCoreIgnite {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes generationCorePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(139, 220, 231, 0.18), 0 0 28px rgba(139, 220, 231, 0.28);
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    box-shadow: 0 0 0 13px rgba(139, 220, 231, 0), 0 0 42px rgba(139, 220, 231, 0.48);
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes generationParticleTravel {
  0% {
    left: -10px;
    opacity: 0;
    transform: translate(-50%, var(--flow-y, 0)) scale(0.45);
  }

  16%, 78% {
    opacity: 1;
  }

  55% {
    transform: translate(-50%, var(--flow-y, 0)) scale(1.18);
  }

  100% {
    left: calc(100% + 10px);
    opacity: 0;
    transform: translate(-50%, var(--flow-y, 0)) scale(0.4);
  }
}

@keyframes generationOutputBurst {
  0% { opacity: 0; transform: translateY(-50%) scale(0.25); }
  42% { opacity: 0.95; transform: translateY(-50%) scale(1.22); }
  100% { opacity: 0.28; transform: translateY(-50%) scale(1); }
}

@keyframes generationPostMaterialize {
  0% {
    filter: blur(6px);
    opacity: 0;
    -webkit-clip-path: inset(0 100% 0 0 round 16px);
    clip-path: inset(0 100% 0 0 round 16px);
    transform: translate3d(-90px, 18px, -80px) rotateY(-14deg) scale(0.82);
  }

  100% {
    filter: blur(0);
    opacity: 1;
    -webkit-clip-path: inset(0 0 0 0 round 16px);
    clip-path: inset(0 0 0 0 round 16px);
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  }
}

@keyframes generationFlowIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes generationPanelIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes generationCopyIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes generationImageReveal {
  to {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes resultPanelIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .ideaFactoryIntro {
    --selected-idea-card-width: clamp(92px, 28vw, 180px);
    --selected-idea-card-inset: 9px;
  }

  .introMotionToggle {
    right: 10px;
    top: 8px;
    bottom: auto;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .storyStage {
    top: 0;
    bottom: 72px;
  }

  .storyScene {
    gap: 8px;
    padding: 11px 10px;
  }

  .storyMessage h1,
  .storyMessage h2 {
    font-size: clamp(0.94rem, 4.2vw, 1.38rem);
  }

  .resumeSignalCanvas {
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .signalSourceCard,
  .topicCloudPanel,
  .ideaCarouselCanvas,
  .generatedPostPreview {
    padding: 9px;
    border-radius: 12px;
  }

  .signalSourceCard {
    height: clamp(165px, 35vh, 200px);
    min-height: 0;
  }

  .sourceMeaning {
    gap: 5px;
  }

  .topicCloudPanel header small,
  .ideaCarouselCanvas > header small {
    display: none;
  }

  .sourceMeaningCopy strong {
    font-size: 0.68rem;
  }

  .sourceMeaningCopy small {
    font-size: 0.54rem;
  }

  .resumeProfileGraphic,
  .industryMomentumGraphic {
    width: 43px;
    height: 35px;
    border-radius: 8px;
  }

  .resumeProfileBadge {
    top: 8px;
    left: 6px;
    width: 18px;
    height: 18px;
    font-size: 0.4rem;
  }

  .resumeProfileDetail {
    top: 10px;
    right: 5px;
    width: 13px;
    gap: 3px;
  }

  .industryMomentumGraphic {
    gap: 3px;
    padding: 6px 8px 5px;
  }

  .industryMomentumGraphic i {
    width: 5px;
  }

  .industryMomentumGraphic i:nth-child(1) { height: 8px; }
  .industryMomentumGraphic i:nth-child(2) { height: 14px; }
  .industryMomentumGraphic i:nth-child(3) { height: 21px; }

  .industryMomentumGraphic::after {
    top: 15px;
    left: 5px;
    width: 32px;
  }

  .sourceSignalFlow {
    gap: 6px;
    padding: 5px 0 2px;
  }

  .sourceSignalFlow i {
    width: 5px;
    height: 5px;
  }

  .matchEngineCore {
    width: 76px;
  }

  .matchEngineCore img {
    width: 34px;
  }

  .matchEngineCore small {
    display: none;
  }

  .matchEngineCore strong {
    max-width: 88%;
    font-size: 0.5rem;
  }

  .matchSignal {
    width: calc(50% - 38px);
  }

  .topicCloudPanel > footer {
    padding-top: 8px;
  }

  .ideaCarouselCard {
    width: var(--selected-idea-card-width);
    height: 100%;
    min-height: 0;
    border-radius: 14px;
  }

  .ideaCarouselLead {
    max-width: 86%;
    font-size: clamp(0.92rem, 4vw, 1.2rem);
  }

  .ideaCarouselCardBody {
    gap: 6px;
    padding: 18px 16px 8px;
  }

  .ideaCarouselCardBody h3 {
    font-size: 0.84rem;
  }

  .ideaCarouselCardBody p {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .ideaCarouselBookmark {
    top: 8px;
    right: 8px;
  }

  .ideaCarouselUseAction {
    margin: 0 10px 9px 0;
    padding: 6px 9px;
    font-size: 0.56rem;
  }

  .postGenerationCanvas {
    padding: calc(var(--selected-idea-card-inset) + 1px) 0;
    border-radius: 0;
  }

  .generationFlowLayout {
    grid-template-columns: var(--selected-idea-card-width) 30px minmax(0, 1fr);
    gap: 4px;
  }

  .selectedIdeaFlow {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    border-radius: 14px;
  }

  .selectedIdeaFlow > header {
    display: block;
  }

  .selectedIdeaFlow > header > span {
    font-size: 0.5rem;
    line-height: 1.15;
  }

  .selectedIdeaFlow > header > small {
    display: none;
  }

  .selectedIdeaGlyph {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .selectedIdeaGlyph i {
    inset: 5px;
  }

  .selectedIdeaGlyph b {
    font-size: 0.86rem;
  }

  .selectedIdeaFlow > strong {
    font-size: 0.59rem;
    line-height: 1.18;
  }

  .selectedIdeaFlow > p {
    display: none;
  }

  .selectedIdeaFlow > footer {
    padding-top: 6px;
  }

  .selectedIdeaFlow > footer span {
    display: none;
  }

  .selectedIdeaFlow > footer b {
    font-size: 0.46rem;
    line-height: 1.15;
  }

  .generationBridgeLabel {
    display: none;
  }

  .generationBridgeLine {
    right: -4px;
    left: -4px;
  }

  .generationBridgeCore {
    width: 28px;
    height: 28px;
  }

  .generationBridgeCore i {
    inset: -4px;
  }

  .generationBridgeCore b {
    font-size: 0.72rem;
  }

  .generationFlowParticle {
    width: 5px;
    height: 5px;
  }

  .generationOutputBurst {
    right: -14px;
    width: 38px;
    height: 110px;
  }

  .generationResultGrid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .generatedLinkedInPost {
    border-radius: 10px;
  }

  .generatedLinkedInPost {
    --post-card-gutter: 7px;
    grid-template-columns: minmax(0, 1fr) minmax(68px, 0.62fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    column-gap: 6px;
    padding: 7px;
  }

  .generatedPostAvatar {
    width: 24px;
    height: 24px;
    font-size: 0.48rem;
  }

  .generatedLinkedInPost > header {
    grid-column: 1;
    grid-row: 1;
    gap: 5px;
    padding: 0;
  }

  .generatedLinkedInPost > header strong {
    font-size: 0.56rem;
  }

  .generatedLinkedInPost > header span {
    display: none;
  }

  .generatedLinkedInPost > header small {
    display: none;
  }

  .generatedLinkedInCopy {
    grid-column: 1;
    grid-row: 2;
    padding: 6px 0 4px;
    font-size: 0.5rem;
    line-height: 1.28;
  }

  .generatedLinkedInCopy p {
    margin-bottom: 4px;
  }

  .generatedLinkedInCopy p:nth-child(3) {
    display: none;
  }

  .generatedLinkedInCopy > strong {
    display: none;
  }

  .generatedLinkedInPost > img {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin-inline: 0;
    border-radius: 4px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .generatedLinkedInPost > footer {
    grid-column: 1;
    grid-row: 3;
  }

  .generatedLinkedInPost > footer {
    gap: 4px;
    padding: 5px 0 0;
    font-size: 0.46rem;
  }

  .generatedLinkedInPost > footer span {
    display: none;
  }

  .finalEditingReady {
    bottom: 7px;
    gap: 6px;
    max-width: calc(100% - 10px);
    padding: 6px 9px;
    border-radius: 8px;
    font-size: var(--status-badge-font-size);
  }

  .finalEditingReady i {
    width: 17px;
    height: 17px;
    font-size: 0.6rem;
  }

  .resultCanvas {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 8px;
  }

  .generatedPostCopy p:nth-of-type(2),
  .generatedPostPreview > footer span:first-child,
  .generatedImagePreview > footer span,
  .resultReadyBadge {
    display: none;
  }

  .generatedImagePreview {
    border-radius: 12px;
  }

  .generatedImagePreview > footer {
    justify-content: center;
    padding: 9px;
  }

  .storyTimeline {
    min-height: 72px;
    padding: 10px 8px 9px;
  }

  .storyTimelineItem {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
    padding: 0 4px;
    text-align: center;
  }

  .storyTimelineItem strong {
    display: none;
  }

  .storyTimelineItem small {
    font-size: clamp(0.68rem, 2.5vw, 0.78rem);
  }
}

@media (max-height: 545px) and (min-width: 650px) {
  .storyTimeline {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 7px;
  }

  .introMotionToggle {
    top: 8px;
    bottom: auto;
  }

  .storyStage {
    top: 0;
    bottom: 64px;
  }

  .storyScene {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .signalSourceCard {
    height: clamp(150px, 42vh, 178px);
    min-height: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .storyScene,
  .storyMessage,
  .signalSourceCard,
  .trendPulse i,
  .sourceSignalFlow > span,
  .sourceSignalFlow i,
  .matchEngineCore,
  .matchEngineCore::before,
  .matchEngineCore::after,
  .matchSignal,
  .matchSignal i,
  .d3CloudWord,
  .ideaCarouselLead,
  .ideaCarouselCard,
  .ideaCarouselCardBody,
  .ideaCarouselBookmark,
  .ideaCarouselUseAction,
  .ideaCarouselSelectionStatus,
  .ideaCarouselSelectionStatus i,
  .selectedIdeaFlow,
  .selectedIdeaFlow::after,
  .selectedIdeaGlyph i,
  .generationTransformBridge,
  .generationBridgeLine,
  .generationBridgeCore,
  .generationBridgeCore i,
  .generationFlowParticle,
  .generationOutputBurst,
  .generatedLinkedInPost,
  .generatedLinkedInCopy p,
  .generatedLinkedInCopy > strong,
  .generatedLinkedInPost > img,
  .generatedPostPreview,
  .generatedImagePreview,
  .resultReadyBadge,
  .finalEditingReady {
    animation: none !important;
    transition: none !important;
  }

  .storyScene.isActive,
  .storySceneCloud.isActive .d3CloudWord,
  .storySceneResult.isActive .selectedIdeaFlow,
  .storySceneResult.isActive .generationTransformBridge,
  .storySceneResult.isActive .generatedLinkedInPost,
  .storySceneResult.isActive .generatedLinkedInCopy p,
  .storySceneResult.isActive .generatedLinkedInCopy > strong,
  .storySceneResult.isActive .generatedPostPreview,
  .storySceneResult.isActive .generatedImagePreview,
  .storySceneResult.isActive .resultReadyBadge {
    opacity: 1;
    -webkit-clip-path: none;
    clip-path: none;
    filter: none;
    transform: none;
  }

  .storySceneIdeas.isIdeaSelectionLocked .ideaCarouselSelectionStatus {
    opacity: 1;
    transform: translate(50%, 0) scale(1);
  }

  .storySceneResume.isActive .signalSourceCard {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .storySceneResume.isActive .sourceSignalFlow > span {
    transform: scaleX(1);
  }

  .storySceneResume.isActive .matchSignal {
    -webkit-clip-path: none;
    clip-path: none;
    opacity: 1;
  }

  .storySceneResult.isActive .generationBridgeLine {
    transform: scaleX(1);
  }

  .storySceneResult.isActive .generationBridgeCore {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .storySceneResult.isActive .generationOutputBurst {
    opacity: 0.28;
    transform: translateY(-50%) scale(1);
  }

  .storySceneResult.isActive .generatedLinkedInPost > img {
    -webkit-clip-path: none;
    clip-path: none;
  }
}

/* Compact phone composition, scoped to the embedding page's mobile layout. */
.ideaFactoryIntro.isMobileLayout {
  --selected-idea-card-width: clamp(180px, 68vw, 320px);
  --status-badge-font-size: 0.72rem;
}

.isMobileLayout .storyMessage {
  padding-right: 32px;
}

.isMobileLayout .storyMessage :is(h1, h2) {
  font-size: clamp(0.88rem, 3.8vw, 1.1rem);
}

.isMobileLayout .ideaCarouselCardBody h3 {
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.18;
}

.isMobileLayout .ideaCarouselCardBody p {
  font-size: 0.72rem;
  line-height: 1.4;
}

.isMobileLayout .ideaCarouselCardBody small { padding-right: 20px; }
.isMobileLayout .ideaCarouselUseAction { font-size: 0.68rem; }

.isMobileLayout .ideaCarouselLead {
  top: 0;
  left: 50%;
  max-width: 100%;
  font-size: 0.86rem;
  text-align: center;
  white-space: normal;
  transform: translateX(-50%);
}

.isMobileLayout .ideaCarouselTrack { top: 28px; }

.isMobileLayout .ideaCarouselSelectionStatus {
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 6px 10px;
  white-space: normal;
  text-align: center;
}

.isMobileLayout .postGenerationCanvas { padding: 0; }

.isMobileLayout .generationFlowLayout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 66px minmax(0, 1fr);
  gap: 8px;
}

.isMobileLayout .generationTransformBridge { display: none; }

.isMobileLayout .selectedIdeaFlow {
  display: block;
  border-radius: 10px;
}

.isMobileLayout .selectedIdeaFlow .ideaCarouselCardBody {
  gap: 4px;
  padding: 8px 12px;
}

.isMobileLayout .selectedIdeaFlow .ideaCarouselCardBody small {
  padding-right: 110px;
  font-size: 0.5rem;
}

.isMobileLayout .selectedIdeaFlow .ideaCarouselCardBody h3 {
  font-size: 0.78rem;
  line-height: 1.18;
}

.isMobileLayout .selectedIdeaFlow :is(.ideaCarouselCardBody p, .ideaCarouselBookmark, .ideaCarouselUseAction) {
  display: none;
}

.isMobileLayout .selectedIdeaFlow > .selectedIdeaCardStatus {
  top: 4px;
  right: 6px;
  bottom: auto;
  gap: 4px;
  padding: 3px 6px;
  border-width: 1px;
  border-radius: 6px;
  transform: none;
  box-shadow: none;
}

.isMobileLayout .selectedIdeaCardStatus span { font-size: 0.6rem; }
.isMobileLayout .selectedIdeaCardStatus i { width: 6px; height: 6px; flex-shrink: 0; }

.isMobileLayout .generationResultGrid {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
}

.isMobileLayout .generatedLinkedInPost {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  padding: 7px;
  border-radius: 10px;
}

.isMobileLayout .generatedLinkedInPost > header {
  grid-column: 1;
  grid-row: 1;
}

.isMobileLayout .generatedLinkedInPost > header strong {
  font-size: 0.65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.isMobileLayout .generatedLinkedInCopy {
  grid-column: 1;
  grid-row: 2;
  padding: 4px 0;
  font-size: 0.63rem;
  line-height: 1.25;
}

.isMobileLayout .generatedLinkedInCopy p { margin-bottom: 2px; }

.isMobileLayout .generatedLinkedInPost > img {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #eaf3f8;
}

.isMobileLayout .generatedLinkedInPost > footer { display: none; }

.isMobileLayout .finalEditingReady {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 5px 8px;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  transform: translateY(8px);
}

.isMobileLayout .finalEditingReady.isVisible { transform: none; }
.isMobileLayout .finalEditingReady span { min-width: 0; }
