.chat-creation {
  --creation-ink: #262329;
  --creation-muted: #77717e;
  --creation-line: #ece8f0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  color: var(--creation-ink);
  font-family: inherit;
  text-align: left;
}
.chat-creation *, .chat-creation *::before, .chat-creation *::after { box-sizing: border-box; }
.chat-creation [hidden] { display: none !important; }
.chat-creation button, .chat-creation input, .chat-creation textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.chat-creation button { -webkit-tap-highlight-color: transparent; }
.chat-creation svg { display: block; flex: 0 0 auto; width: 19px; height: 19px; }
.chat-creation button:focus-visible, .chat-creation input:focus-visible, .chat-creation textarea:focus-visible { outline: 3px solid #a391c5; outline-offset: 3px; }
.chat-creation__history { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 19px 3px 16px 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ded8e5 transparent; }
.chat-creation__intro { margin-bottom: 24px; }
.chat-creation__intro-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chat-creation__approved { display: inline-flex; align-items: center; gap: 6px; color: #625970; font-size: 11px; font-weight: 650; }
.chat-creation__approved svg { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: #e9f2df; color: #547438; }
.chat-creation__badge, .chat-creation__format-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border: 1px solid #ebe6f0; border-radius: 7px; background: #faf8fc; color: #807786; font-size: 10px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.chat-creation__intro-copy { margin: 9px 0 0; color: #4a454e; font-size: 14px; line-height: 1.6; }
.chat-creation__user-message { width: fit-content; max-width: 85%; margin: -6px 0 18px auto; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #f2eff5; color: #524859; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-creation__stage { min-width: 0; }
.chat-creation__result-heading, .chat-creation__editor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.chat-creation__heading { margin: 0; color: #2e2835; font-size: 18px; line-height: 1.35; letter-spacing: -.5px; font-weight: 700; }
.chat-creation__results { display: grid; grid-template-columns: minmax(0, 27fr) minmax(0, 73fr); gap: 23px; align-items: start; min-width: 0; }
.chat-creation__original, .chat-creation__proposals { min-width: 0; }
.chat-creation__section-label { margin: 0; color: #7a727f; font-size: 11px; font-weight: 600; line-height: 30px; }
.chat-creation__source-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-top: 9px; overflow: hidden; border: 1px solid #e9e4ec; border-radius: 15px; background: radial-gradient(ellipse at 50% 66%, #f0ecf4 0, #faf9fc 67%); }
.chat-creation__product-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.chat-creation__source-caption { max-width: 155px; margin: 10px 0 0; color: #928a97; font-size: 11px; line-height: 1.55; }
.chat-creation__proposal-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.chat-creation__carousel-controls { display: flex; align-items: center; gap: 5px; }
.chat-creation__carousel-counter { margin-right: 4px; color: #a099a6; font-size: 10px; font-variant-numeric: tabular-nums; }
.chat-creation .chat-creation__icon-button { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid #e8e2ed; border-radius: 50%; background: #fff; color: #66596f; cursor: pointer; box-shadow: none; }
.chat-creation__icon-button svg { width: 13px; height: 13px; }
.chat-creation .chat-creation__icon-button:disabled { opacity: .33; cursor: default; }
.chat-creation__carousel { position: relative; display: flex; gap: 13px; min-width: 0; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 3px 5px; scroll-snap-type: x mandatory; scroll-padding-left: 3px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chat-creation__carousel::-webkit-scrollbar { display: none; }
.chat-creation__carousel::after { content: ''; flex: 0 0 calc(100% - min(82%, 250px) - 13px); }
.chat-creation .chat-creation__card { display: flex; flex: 0 0 min(82%, 250px); flex-direction: column; min-width: 0; padding: 0; border: 0; border-radius: 13px; background: transparent; color: #4f4558; text-align: left; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: normal; box-shadow: none; }
.chat-creation__card-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 1px 3px; font-size: 11px; font-weight: 550; line-height: 1.35; }
.chat-creation__card-caption svg { width: 13px; height: 13px; color: #918598; }
.chat-creation__carousel-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: #918796; font-size: 10px; line-height: 1.45; }
.chat-creation__dots { display: flex; align-items: center; gap: 2px; }
.chat-creation .chat-creation__dot { position: relative; display: block; width: 18px; height: 20px; min-height: 0; padding: 0; border: 0; border-radius: 20px; background: transparent; cursor: pointer; box-shadow: none; }
.chat-creation__dot::after { position: absolute; top: 7px; left: 6px; width: 5px; height: 5px; border-radius: 5px; background: #d9d1e2; content: ''; }
.chat-creation__dot[aria-pressed='true']::after { left: 4px; width: 10px; background: #715086; }

/* Each composition uses the same image. Geometry and typography are separate. */
.chat-creation__art { container-type: inline-size; position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 11px; background: #784ea2; color: #faf6ff; text-align: left; }
.chat-creation__art[data-format='story'] { aspect-ratio: 9 / 16; }
.chat-creation__art-brand { position: absolute; z-index: 4; top: 6%; left: 7%; font-size: 3.2cqw; font-weight: 650; letter-spacing: .15em; }
.chat-creation__art-headline { position: absolute; z-index: 3; top: 15%; left: 7%; max-width: 88%; color: inherit; font-family: Arial, Helvetica, sans-serif; font-size: 15cqw; font-weight: 900; line-height: .91; letter-spacing: -.055em; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-creation__art-product { position: absolute; z-index: 2; top: 30%; left: 8%; width: 86%; height: 62%; object-fit: contain; transform: rotate(-13deg) scale(var(--creation-product-scale, 1)); filter: drop-shadow(2cqw 4cqw 3cqw #2b0a492b); }
.chat-creation__art-shape { position: absolute; z-index: 0; top: 46%; left: -15%; width: 135%; height: 40%; background: var(--creation-accent); transform: rotate(-16deg); }
.chat-creation__art-orbit { display: none; }
.chat-creation__art-stamp { position: absolute; z-index: 4; top: 36%; right: 6%; padding: 2.3cqw 3cqw; border: 1px solid #f5e9ff70; border-radius: 2px; color: #fff; font-size: 3.4cqw; font-weight: 650; letter-spacing: .05em; transform: rotate(7deg); white-space: pre-line; }
.chat-creation__art-footer { position: absolute; z-index: 4; right: 7%; bottom: 6%; left: 7%; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-top: 3.5cqw; border-top: 1px solid #ffffff68; font-size: 3cqw; letter-spacing: .06em; font-weight: 600; }
.chat-creation__art-footer svg { width: 7cqw; height: 7cqw; }
.chat-creation__art--arch { background: #e9dcf4; color: #502568; }
.chat-creation__art--arch .chat-creation__art-brand { right: 7%; text-align: center; }
.chat-creation__art--arch .chat-creation__art-headline { top: 15%; right: 7%; font-size: 14cqw; text-align: center; }
.chat-creation__art--arch .chat-creation__art-shape { top: 37%; left: 12%; width: 76%; height: 55%; border-radius: 50% 50% 0 0; background: #8f61b3; transform: none; }
.chat-creation__art--arch .chat-creation__art-product { top: 31%; left: 14%; width: 72%; height: 58%; transform: scale(var(--creation-product-scale, 1)); }
.chat-creation__art--arch .chat-creation__art-stamp { top: 68%; right: 4%; display: grid; place-items: center; width: 22%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--creation-accent); color: #502568; font-size: 3cqw; transform: rotate(12deg); }
.chat-creation__art--arch .chat-creation__art-footer { bottom: 5%; border: 0; }
.chat-creation__art--orbit { background: #322043; }
.chat-creation__art--orbit .chat-creation__art-headline { top: 15%; font-size: 14cqw; color: var(--creation-accent); }
.chat-creation__art--orbit .chat-creation__art-shape { top: 33%; left: 2%; width: 95%; height: 57%; border-radius: 50%; background: #9f71bd; transform: rotate(-29deg); }
.chat-creation__art--orbit .chat-creation__art-orbit { position: absolute; z-index: 3; top: 37%; left: -11%; display: block; width: 123%; height: 44%; border: 1px solid #e8c9fd75; border-radius: 50%; transform: rotate(36deg); }
.chat-creation__art--orbit .chat-creation__art-product { top: 32%; left: 7%; width: 87%; height: 62%; transform: rotate(13deg) scale(var(--creation-product-scale, 1)); }
.chat-creation__art--orbit .chat-creation__art-stamp { top: 70%; right: 6%; border: 0; border-radius: 50%; background: var(--creation-accent); color: #3a224d; width: 24%; padding: 4cqw 1cqw; aspect-ratio: 1; font-size: 3cqw; line-height: 1.4; text-align: center; transform: rotate(-12deg); }
.chat-creation__art--editorial { background: #f3edfa; color: #643285; }
.chat-creation__art--editorial .chat-creation__art-headline { top: 16%; font-size: 10.5cqw; line-height: 1; }
.chat-creation__art--editorial .chat-creation__art-shape { top: 36%; left: 9%; width: 82%; height: 52%; background: #b69acc; border-radius: 4px; transform: none; }
.chat-creation__art--editorial .chat-creation__art-orbit { position: absolute; z-index: 1; top: 37%; right: -4%; display: block; width: 28%; aspect-ratio: 1; border: 3cqw solid var(--creation-accent); border-radius: 50%; }
.chat-creation__art--editorial .chat-creation__art-product { top: 32%; left: 12%; width: 76%; height: 57%; transform: rotate(-6deg) scale(var(--creation-product-scale, 1)); }
.chat-creation__art--editorial .chat-creation__art-stamp { top: 71%; right: auto; left: 5%; border: 0; background: var(--creation-accent); color: #512a69; transform: rotate(-90deg); transform-origin: left top; }
.chat-creation__art--editorial .chat-creation__art-footer { border-color: #64328555; }
.chat-creation__art[data-format='story'] .chat-creation__art-headline { top: 16%; }
.chat-creation__art[data-format='story'] .chat-creation__art-product { top: 33%; height: 54%; }
.chat-creation__art[data-format='story'] .chat-creation__art-footer { bottom: 6%; }

.chat-creation__video-invitation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 15px 17px; border: 1px solid #ece7f1; border-radius: 13px; background: #fcfafc; }
.chat-creation__video-copy { display: grid; gap: 4px; min-width: 0; }
.chat-creation__video-copy strong { color: #564a5e; font-size: 12px; font-weight: 650; }
.chat-creation__video-copy > span { color: #928798; font-size: 11px; }
.chat-creation .chat-creation__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 39px; padding: 10px 14px; border: 1px solid #ddd3e7; border-radius: 10px; background: #fff; color: #685475; font-size: 12px; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: none; white-space: nowrap; }
.chat-creation .chat-creation__button--primary { background: #34293d; border-color: #34293d; color: #fff; }
.chat-creation .chat-creation__button--quiet { min-height: 36px; background: #fff; border-color: #e7dfee; }
.chat-creation__button svg { width: 16px; height: 16px; }
.chat-creation__composer { flex: 0 0 auto; margin: 0; padding: 9px 13px 11px; border: 1px solid #ded7e4; border-radius: 16px; background: #fff; box-shadow: 0 3px 16px #33233d06; }
.chat-creation__composer:focus-within { border-color: #b8a8c7; }
.chat-creation__modes { display: flex; align-items: center; gap: 5px; padding-bottom: 4px; }
.chat-creation .chat-creation__mode { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8b808f; font-size: 12px; font-weight: 550; cursor: pointer; box-shadow: none; }
.chat-creation .chat-creation__mode[aria-pressed='true'] { border-color: #e7dfed; background: #f4eff8; color: #66417e; }
.chat-creation__mode svg { width: 16px; height: 16px; }
.chat-creation .chat-creation__textarea { display: block; width: 100%; min-height: 57px; max-height: 85px; margin: 0; padding: 9px 3px 5px; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: #44394b; font-size: 14px; line-height: 1.45; resize: none; }
.chat-creation__textarea::placeholder { color: #aaa1ae; }
.chat-creation__composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.chat-creation__composer-note { color: #aaa1ae; font-size: 10px; line-height: 1.5; }
.chat-creation__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-creation .chat-creation__back { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 0; border: 0; border-radius: 5px; background: transparent; color: #7f6f8a; font-size: 12px; cursor: pointer; box-shadow: none; }
.chat-creation__back svg { width: 14px; height: 14px; }
.chat-creation__editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .85fr); gap: 34px; align-items: start; }
.chat-creation__editor-preview { width: min(100%, 315px); margin: 0 auto; }
.chat-creation__editor-settings { display: grid; gap: 19px; padding-top: 8px; }
.chat-creation__editor-description { margin: -13px 0 0; color: #a194aa; font-size: 12px; }
.chat-creation__field { display: grid; min-width: 0; gap: 8px; padding: 0; border: 0; color: #7c6e86; font-size: 12px; }
.chat-creation .chat-creation__edit-text { display: block; width: 100%; min-height: 91px; padding: 10px 12px; border: 1px solid #e3dbe9; border-radius: 10px; background: #fdfcfe; color: #5b446b; font-size: 14px; line-height: 1.4; resize: vertical; }
.chat-creation__color-field { margin: 0; }
.chat-creation__color-field legend { margin-bottom: 10px; padding: 0; }
.chat-creation__swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.chat-creation .chat-creation__swatch { display: grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--creation-swatch); color: #513d5e; outline: 1px solid #e7dfea; cursor: pointer; box-shadow: none; }
.chat-creation__swatch[aria-pressed='true'] { outline: 2px solid #695177; }
.chat-creation__swatch svg { width: 17px; height: 17px; opacity: 0; }
.chat-creation__swatch[aria-pressed='true'] svg { opacity: 1; }
.chat-creation__range-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.chat-creation__range-label output { color: #a293ad; font-size: 10px; font-variant-numeric: tabular-nums; }
.chat-creation .chat-creation__range { width: 100%; height: 25px; min-height: 0; margin: 0; padding: 0; border: 0; accent-color: #846395; cursor: pointer; box-shadow: none; }
.chat-creation__editor-note { margin: -11px 0 0; color: #a397aa; font-size: 10px; line-height: 1.5; }
.chat-creation__video-description { margin: 7px 0 22px; color: #8c7f95; font-size: 13px; line-height: 1.5; }
.chat-creation__video-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(100%, 640px); margin: 0 auto; }
.chat-creation__video-field { min-width: 0; }
.chat-creation .chat-creation__video-square { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 1; min-height: 0; margin-top: 8px; padding: 0; overflow: hidden; border: 1px solid #e5dceb; border-radius: 15px; background: #f8f5fb; color: #8a749c; box-shadow: none; }
.chat-creation .chat-creation__video-product { background: radial-gradient(ellipse at 50% 66%, #f0ecf4 0, #faf9fc 67%); }
.chat-creation .chat-creation__person-upload { border-style: dashed; border-color: #cdbdd9; cursor: pointer; }
.chat-creation__person-upload > strong { font-size: 14px; font-weight: 600; }
.chat-creation__person-upload > span:not(.chat-creation__plus-circle):not(.chat-creation__replace-person) { color: #aa9ab5; font-size: 11px; }
.chat-creation__plus-circle { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 5px; border: 1px solid #e2d5eb; border-radius: 50%; background: #f0e9f7; color: #9675ad; }
.chat-creation__plus-circle svg { width: 25px; height: 25px; }
.chat-creation__person-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-creation__replace-person { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 8px; border-radius: 7px; background: #ffffffeb; color: #62506d; font-size: 11px; }
.chat-creation__person-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.chat-creation .chat-creation__remove-person { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f2ecf6; color: #8e769e; cursor: pointer; box-shadow: none; }
.chat-creation__remove-person svg { width: 15px; height: 15px; }
.chat-creation__video-note { max-width: 640px; margin: 15px auto 0; color: #a092aa; font-size: 11px; line-height: 1.6; text-align: center; }

@media (hover: hover) {
  .chat-creation .chat-creation__card:hover .chat-creation__art { box-shadow: inset 0 0 0 2px #cbb3dc; filter: brightness(1.025); }
  .chat-creation .chat-creation__card:hover .chat-creation__card-caption { color: #70418d; }
  .chat-creation .chat-creation__button:hover { filter: brightness(.96); }
  .chat-creation .chat-creation__icon-button:not(:disabled):hover, .chat-creation .chat-creation__mode:hover { background: #f4eef8; }
  .chat-creation .chat-creation__person-upload:hover { background: #f0e9f7; border-color: #b49bc5; }
}
@media (max-width: 600px) {
  .chat-creation__history { padding-top: 17px; padding-right: 0; padding-bottom: 15px; }
  .chat-creation__intro { margin-bottom: 20px; }
  .chat-creation__intro-line { gap: 8px; }
  .chat-creation__approved { font-size: 10px; }
  .chat-creation__intro-copy { font-size: 13px; line-height: 1.5; }
  .chat-creation__result-heading { flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
  .chat-creation__heading { font-size: 16px; }
  .chat-creation__results { grid-template-columns: minmax(0, 29fr) minmax(0, 71fr); gap: 12px; }
  .chat-creation__section-label { font-size: 10px; }
  .chat-creation__source-frame { border-radius: 10px; }
  .chat-creation__source-caption { margin-top: 8px; font-size: 10px; line-height: 1.45; }
  .chat-creation__carousel { gap: 10px; padding-inline: 2px; }
  .chat-creation .chat-creation__card { flex-basis: min(91%, 250px); }
  .chat-creation__carousel::after { flex-basis: calc(100% - min(91%, 250px) - 10px); }
  .chat-creation__card-caption { padding-top: 9px; font-size: 10px; }
  .chat-creation__art { border-radius: 9px; }
  .chat-creation__carousel-footer { margin-top: 3px; font-size: 10px; }
  .chat-creation__carousel-controls { gap: 3px; }
  .chat-creation__carousel-counter { font-size: 9px; margin-right: 2px; }
  .chat-creation .chat-creation__icon-button { width: 25px; height: 25px; }
  .chat-creation__video-invitation { gap: 9px; margin-top: 16px; padding: 12px; }
  .chat-creation__video-copy strong { font-size: 11px; }
  .chat-creation__video-copy > span { font-size: 10px; line-height: 1.4; }
  .chat-creation .chat-creation__button { gap: 6px; min-height: 38px; padding: 9px 11px; font-size: 11px; }
  .chat-creation__composer { padding: 8px 10px 10px; border-radius: 14px; }
  .chat-creation .chat-creation__mode { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .chat-creation .chat-creation__textarea { min-height: 61px; padding-top: 10px; font-size: 16px; }
  .chat-creation__composer-note { max-width: 115px; font-size: 9px; }
  .chat-creation__composer-bottom { gap: 7px; }
  .chat-creation__editor { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .chat-creation__editor-preview { width: min(76%, 260px); }
  .chat-creation__editor-settings { gap: 18px; padding: 0 8px 8px; }
  .chat-creation .chat-creation__edit-text { font-size: 16px; }
  .chat-creation__editor-description { margin-top: -10px; }
  .chat-creation__video-fields { gap: 13px; }
  .chat-creation__video-description { margin-bottom: 15px; font-size: 12px; }
  .chat-creation .chat-creation__video-square { gap: 5px; border-radius: 12px; }
  .chat-creation__plus-circle { width: 35px; height: 35px; margin-bottom: 3px; }
  .chat-creation__plus-circle svg { width: 21px; height: 21px; }
  .chat-creation__person-upload > strong { font-size: 12px; }
  .chat-creation__person-upload > span:not(.chat-creation__plus-circle):not(.chat-creation__replace-person) { font-size: 10px; }
  .chat-creation__video-note { font-size: 10px; }
}
@media (max-width: 350px) {
  .chat-creation__results { gap: 9px; }
  .chat-creation__carousel-counter { display: none; }
  .chat-creation__video-copy > span { display: none; }
  .chat-creation__composer-note { max-width: 92px; }
}
@media (prefers-reduced-motion: reduce) { .chat-creation__carousel { scroll-behavior: auto; } }
