/* One quiet surface, clear progress, and an abstract light field — never a selfie. */
:root { --accent-dark: #245d89; --accent-soft: #eaf2fa; }
.wordmark { font-family: inherit; }
.app-shell { width: 100%; }
.preview-waiting .topbar, .preview-waiting .wishlist-nav { position: relative; top: auto; }
.section-heading .step { background: #eef4fb; color: var(--accent); }
.section-heading h2, .length-choice-card b { font-family: inherit; font-weight: 600; }
.length-choice-card b { letter-spacing: -.03em; }
.method-card-media::after { background: linear-gradient(180deg, transparent, #f5f5f780 65%, #f5f5f7); }
.method-card-copy { margin-top: 0; }
.progress-panel {
  --waiting-ink: #253547;
  --waiting-muted: #5c6b7b;
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  min-height: 0;
  align-items: center;
  background: radial-gradient(ellipse at 12% 28%, #e9f5f2aa, transparent 60%),
    radial-gradient(ellipse at 86% 94%, #eeedfaaa, transparent 60%), #fafbfd;
  border: 1px solid #e4e9ee;
  border-radius: 28px;
  box-shadow: 0 12px 40px #263b5306, inset 0 1px 0 #fff;
  text-align: left;
  scroll-margin-top: 96px;
}
.progress-panel[hidden] { display: none; }
.progress-panel .development-stage { width: 100%; align-self: center; max-width: none; }
.progress-panel .developing-card { width: 100%; max-width: none; padding: 0; }
.progress-panel .developing-card-top {
  height: auto;
  padding: 0 4px 16px;
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--waiting-muted);
}
.progress-panel .developing-card-top i { font-size: 10px; letter-spacing: .08em; color: #287a70; }
.progress-panel .developing-card-top i::before { box-shadow: none; }
.progress-panel .developing-window {
  aspect-ratio: 1 / 1.08;
  max-height: none;
  border-radius: 32px;
  border: 0;
  background: radial-gradient(circle at 45% 40%, #fff9, transparent 65%),
    linear-gradient(140deg, #e4f3ef, #eaf0f8 54%, #ecebf6);
  box-shadow: inset 0 0 40px #ffffff8c;
  /* Fade the field into the parent surface instead of drawing another box. */
  mask-image: radial-gradient(ellipse 70% 76% at 50% 50%, #000 45%, #000d 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 50% 50%, #000 45%, #000d 68%, transparent 100%);
}
.progress-panel .development-atmosphere { filter: blur(34px) brightness(calc(.97 + var(--bloom-opacity) * .22)) saturate(.52); }
.progress-panel .development-lightfield { opacity: .38; }
.progress-panel .development-particles { opacity: .58; }
.progress-panel .development-orbit { opacity: .12; border-color: #7d9eb959; }
.progress-panel .development-core { top: 48%; width: 23%; opacity: .6; filter: blur(1px); }
.progress-panel .development-core i { border-color: #73aab340; }
.progress-panel .development-bloom { opacity: .55; }
.progress-panel .developing-card-bottom { justify-content: center; padding: 16px 4px 0; }
.progress-panel .developing-card-bottom > span:first-child {
  white-space: normal;
  text-align: center;
  line-height: 1.7;
  color: var(--waiting-muted);
  font-size: 12px;
  letter-spacing: 0;
}
.progress-panel .progress-copy { padding: 0; max-width: none; align-self: center; }
.progress-copy .kicker { font-size: 10px; color: #486777; letter-spacing: .14em; }
.progress-panel .progress-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--waiting-ink);
  text-wrap: balance;
}
.progress-panel .waiting-detail {
  min-height: 3.1em;
  margin: 0 0 24px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--waiting-muted);
}
.progress-panel .generation-progress { margin: 0 0 24px; }
.progress-panel .generation-progress-heading { align-items: center; margin-bottom: 12px; gap: 12px; }
.progress-panel #generationStatus { color: #354a61; font-size: 13px; font-weight: 600; }
.progress-panel .waiting-elapsed { display: flex; gap: 7px; align-items: baseline; flex-shrink: 0; font-size: 12px; color: var(--waiting-muted); }
.waiting-elapsed b { color: #354a61; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.progress-panel .development-steps {
  width: 100%;
  height: 8px;
  background: #dfe8ee;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 1px 1px #253b5105;
}
.progress-panel .development-steps > span {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #9acacb60, #6fa7cc90, #a6b8d270);
  animation: none;
  transform: none;
}
.progress-panel .development-steps > span::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, #378fbe 42%, #63b8b2 58%, transparent 100%);
  width: 54%;
  transform: none;
  animation: waiting-shimmer 2.2s ease-in-out infinite alternate;
}
.progress-panel[data-mode="queued"] .development-steps > span::after { animation-duration: 3.2s; }
.progress-panel[data-mode="finishing"] .development-steps > span { background: #4d9e95; }
.progress-panel[data-mode="finishing"] .development-steps > span::after { display: none; }
.waiting-stages { display: flex; list-style: none; padding: 0; margin: 12px 0 0; justify-content: space-between; gap: 8px; }
.waiting-stages li { display: flex; align-items: center; gap: 7px; color: #697789; font-size: 12px; }
.waiting-stages li > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e9edf1; font-size: 10px; }
.waiting-stages li[data-state="current"] { color: #24678d; font-weight: 600; }
.waiting-stages li[data-state="current"] > span { background: #e0eef7; box-shadow: inset 0 0 0 1px #a7c9df; }
.waiting-stages li[data-state="complete"] { color: #287b70; }
.waiting-stages li[data-state="complete"] > span { background: #e0f0eb; font-size: 0; }
.waiting-stages li[data-state="complete"] > span::after { content: '✓'; font-size: 12px; }
.progress-panel .selection-story {
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid #e4e9efa6;
  border-radius: 20px;
  background: #ffffffa6;
  box-shadow: 0 2px 10px #35527302;
}
.progress-panel .selection-story-heading { font-size: 10px; letter-spacing: .075em; color: var(--waiting-muted); margin-bottom: 10px; }
.progress-panel .selection-story > strong { font-size: 19px; line-height: 1.3; color: var(--waiting-ink); letter-spacing: -.025em; }
.progress-panel .selection-story p { margin: 10px 0 16px; min-height: 4.8em; font-size: 14px; line-height: 1.6; color: var(--waiting-muted); }
.progress-panel .selection-story-nav { gap: 6px; flex-wrap: wrap; }
.progress-panel .selection-story-nav button { min-height: 36px; padding: 8px 11px; background: #edf1f4; color: #596b7e; font-size: 10px; letter-spacing: .035em; }
.progress-panel .selection-story-nav button.active { background: #e0edf5; color: #236589; }
.progress-panel .flow-playground { background: #ffffff61; border: 1px solid #e4e9efa6; box-shadow: none; border-radius: 20px; }
.progress-panel .flow-playground-header { padding: 15px 18px 8px; }
.progress-panel .flow-playground-header strong { color: #4b6c7a; font-size: 10px; letter-spacing: .08em; }
.progress-panel .flow-playground-header small { font-size: 12px; line-height: 1.5; color: var(--waiting-muted); }
.progress-panel .flow-palette-label { font-size: 9px; color: #596c7e; border: 0; background: #eef2f5; padding: 6px 8px; }
.progress-panel .flow-canvas { height: 82px; background: transparent; }
.progress-panel .waiting-actions { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
.progress-panel .preview-cancel { margin: 0; padding: 10px 16px; min-height: 44px; border-radius: 12px; background: #ffffffa6; border: 1px solid #d6e0e8; color: #3e627d; font-size: 13px; flex-shrink: 0; }
.progress-panel .progress-hint { border: 0; padding: 0; margin: 0; font-size: 11px; line-height: 1.6; color: var(--waiting-muted) !important; }
@keyframes waiting-shimmer { from { transform: translateX(-10%); } to { transform: translateX(95%); } }
@media (max-width: 760px) {
  .progress-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .progress-panel .progress-copy { display: contents; }
  .progress-panel .progress-copy > .kicker { order: 0; }
  .progress-panel .progress-copy > h2 { order: 1; margin: 0; }
  .progress-panel .waiting-detail { order: 2; margin: 0; }
  .progress-panel .generation-progress { order: 3; margin: 4px 0; }
  .progress-panel .development-stage { order: 4; }
  .progress-panel .selection-story { order: 5; margin: 0; }
  .progress-panel .flow-playground { order: 6; }
  .progress-panel .waiting-actions { order: 7; margin: 0; }
  .progress-panel .development-stage { width: 100%; max-width: 360px; }
  .progress-panel .developing-window { aspect-ratio: 2.2 / 1; }
  .progress-panel .developing-card-top { display: none; }
  .progress-panel .developing-card-bottom { padding-top: 8px; }
  .progress-panel .waiting-detail { min-height: 0; }
  .progress-panel .selection-story p { min-height: 0; }
  .progress-panel .selection-story-nav button { min-height: 44px; }
  .progress-panel .flow-palette-label { display: inline-block; }
  .progress-panel .generation-progress-heading { flex-wrap: nowrap; }
  .progress-panel .waiting-actions { align-items: center; }
  .advisor-embedded .progress-panel { padding: 20px; }
  .advisor-embedded .developing-card { padding: 0; }
}
@media (max-width: 380px) {
  .progress-panel, .advisor-embedded .progress-panel { padding: 18px; }
  .progress-panel .waiting-actions { flex-direction: column; gap: 10px; }
  .progress-panel .waiting-stages li { gap: 5px; font-size: 11px; }
  .progress-panel .generation-progress-heading { align-items: flex-start; }
  .progress-panel #generationStatus { max-width: 65%; }
  .progress-panel .waiting-elapsed > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-panel *, .progress-panel *::before, .progress-panel *::after { animation: none !important; transition: none !important; }
  .progress-panel .development-steps > span { width: 100%; }
  .progress-panel .development-steps > span::after { transform: translateX(42%); }
}
