/* Shared outbound dialog; native dialog supplies the top layer and focus handling. */
/* The scene uses Figma's 370 × 460 coordinate system; em scales with its container.
   Only ornamental ribbons, blobs and avatar photos are image backgrounds. */
.ai-outbound-modal__media { container-type: inline-size; display: grid; align-content: center; }
.ao-editor { --editor-panel: var(--bg-color); --editor-surface: #f8f9fb; position: relative; width: 100%; height: 460em; font-size: calc(100cqw / 370); color: var(--outbound-text); pointer-events: none; isolation: isolate; }
[data-theme="dark"] .ao-editor { --editor-surface: var(--main-container); }
.ao-editor *, .ao-editor *::before, .ao-editor *::after { box-sizing: border-box; }
.ao-editor__decoration { position: absolute; z-index: -1; background: center / cover no-repeat; }
.ao-editor__ribbon { width: 1500em; height: 750em; left: -457.89em; top: -56.45em; transform: rotate(15.28deg); }
.ao-editor__blue { width: 200em; height: 200em; left: -69.06em; top: 38.94em; transform: rotate(-8.68deg); }
.ao-editor__green { width: 220em; height: 220em; left: 242.26em; top: -2.22em; transform: rotate(-12.95deg); }
.ao-editor__purple { width: 130em; height: 130em; left: 3.33em; top: 393.33em; transform: rotate(2.1deg); }
.ai-outbound-modal[open] .ao-editor__ribbon { background-image: url('../images/catalog-ai/outbound/ribbon.webp'); }
.ai-outbound-modal[open] .ao-editor__blue { background-image: url('../images/catalog-ai/outbound/blue-blob.webp'); }
.ai-outbound-modal[open] .ao-editor__green { background-image: url('../images/catalog-ai/outbound/green-blob.webp'); }
.ai-outbound-modal[open] .ao-editor__purple { background-image: url('../images/catalog-ai/outbound/purple-blob.webp'); }
.ao-editor__panel { position: absolute; background: var(--editor-panel); border: .65em solid var(--border); border-radius: 5.2em; box-shadow: 0 0 4em rgb(27 21 188 / 8%); }
.ao-editor__logo { position: absolute; left: 149em; top: 20em; width: 72em; height: 24em; display: flex; align-items: center; gap: 4em; }
.ao-editor__logo > svg { width: 100%; height: auto; }
.ao-editor__users { position: absolute; left: 50%; top: 55em; transform: translateX(-50%); display: flex; align-items: center; gap: 5.45em; padding: 2.18em 8.73em 2.18em 2.18em; border: .55em solid rgb(84 137 240 / 10%); border-radius: 110em; background: color-mix(in srgb, var(--bg-color) 76%, transparent); backdrop-filter: blur(11em); white-space: nowrap; }
.ao-editor__users > strong { font-size: 7.636em; line-height: 1.286; font-weight: 600; }
.ao-editor__avatars { display: flex; padding: 1.09em; }
.ao-editor__avatar { width: 17.455em; height: 17.455em; border: 1.09em solid var(--editor-panel); border-radius: 50%; background: center / cover no-repeat; }
.ao-editor__avatar + .ao-editor__avatar { margin-left: -5.455em; }
.ai-outbound-modal[open] .ao-editor__avatar--1 { background-image: url('../images/catalog-ai/outbound/avatar-1.webp'); }
.ai-outbound-modal[open] .ao-editor__avatar--2 { background-image: url('../images/catalog-ai/outbound/avatar-2.webp'); }
.ai-outbound-modal[open] .ao-editor__avatar--3 { background-image: url('../images/catalog-ai/outbound/avatar-3.webp'); }
.ao-editor__user-dot { width: 3.273em; height: 3.273em; border-radius: 50%; background: var(--accent-color); }
.ao-editor__slide { left: 24em; top: 163em; width: 310em; height: 174em; padding: 6em; border-radius: 8em; }
.ao-editor__slide-surface { position: relative; width: 100%; height: 100%; overflow: hidden; border: .5em solid rgb(84 137 240 / 10%); border-radius: 6em; background: var(--editor-surface); }
.ao-editor__slide-content { position: absolute; width: 297em; height: 163.517em; top: -1.5em; left: -.5em; }
.ao-editor__slide-content::before { content: ""; position: absolute; right: -.16em; top: -13.95em; width: 163.162em; height: 192.827em; background: center / contain no-repeat; }
.ai-outbound-modal[open] .ao-editor__slide-content::before { background-image: url('../images/catalog-ai/outbound/slide-ribbon.svg'); }
.ao-editor__slide-copy { position: absolute; left: 18em; top: 31.52em; display: flex; flex-direction: column; gap: 6.91em; }
.ao-editor__slide-copy > strong { font-size: 14.81em; line-height: 1; font-weight: 600; }
.ao-editor__slide-copy > span { font-size: 6.582em; line-height: 1.2; color: var(--text-color6); }
.ao-editor__slide-footer { position: absolute; left: 17.8em; top: 126.61em; display: flex; align-items: center; gap: 17em; color: var(--text-color5); }
.ao-editor__slide-footer > span { font-size: 6.067em; line-height: 1.08; }
.ao-editor__slide-footer > i { width: 39.44em; height: .303em; background: #8bb7ff; }
.ao-editor__panel-title { display: flex; align-items: center; gap: 3.9em; padding-left: 2.6em; white-space: nowrap; }
.ao-editor__panel-title > i { width: 3.9em; height: 3.9em; border-radius: 50%; background: var(--green-add); }
.ao-editor__panel-title > strong { font-size: 7.806em; line-height: 1.167; font-weight: 600; }
.ao-editor__generate { left: 16.15em; top: 96.15em; width: 184em; padding: 4.77em; display: flex; flex-direction: column; gap: 4.554em; }
.ao-editor__prompt { display: flex; align-items: center; gap: 3.123em; width: 100%; padding: 3.123em 3.123em 3.123em 6.245em; border: .781em solid var(--primary-cont); border-radius: 3.903em; }
.ao-editor__prompt > span:not([class]) { flex: 1; font-size: 6.245em; line-height: 1.375; white-space: nowrap; }
.ao-editor__prompt > .ao-editor__icon { width: 10.929em; height: 10.929em; color: var(--accent-color); }
.ao-editor__send { display: grid; place-items: center; width: 17.174em; height: 17.174em; border-radius: 2.342em; background: var(--accent-color); color: var(--outbound-button-text); flex-shrink: 0; }
.ao-editor__send .ao-editor__icon { width: 9.368em; height: 9.368em; }
.ao-editor__export { left: 225.067em; top: 111.906em; width: 91.388em; padding: 4.678em; display: flex; flex-direction: column; gap: 4.465em; }
.ao-editor__export .ao-editor__panel-title { gap: 3.827em; padding: 0 2.551em; }
.ao-editor__export .ao-editor__panel-title > strong { font-size: 7.654em; }
.ao-editor__export .ao-editor__panel-title > i { background: var(--pinky-add); width: 3.827em; height: 3.827em; }
.ao-editor__formats { display: flex; padding: 1.275em; border-radius: 2.55em; background: var(--editor-surface); }
.ao-editor__formats > span { flex: 1; font-size: 6.12em; line-height: 1.4; padding: .4em 0; text-align: center; border-radius: .4em; }
.ao-editor__formats > span:first-child { color: var(--accent-color); background: var(--editor-panel); }
.ao-editor__previews { left: 67.512%; top: 41.888%; width: 100em; height: 116.25em; padding: 4.375em; border-radius: 5em; }
.ao-editor__preview-list { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 3.75em; border-radius: 3.75em; }
.ao-editor__thumbnail { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3.75em; background-color: var(--editor-surface); background-repeat: no-repeat; }
.ao-editor__thumbnail--market::before { content: ""; position: absolute; width: 73.333em; height: 105.76em; left: 45.46em; top: -32.03em; transform: scaleX(-1); background: center / contain no-repeat; }
.ai-outbound-modal[open] .ao-editor__thumbnail--market::before { background-image: url('../images/catalog-ai/outbound/slide-loop.svg'); }
.ai-outbound-modal[open] .ao-editor__thumbnail--strategy { background-image: url('../images/catalog-ai/outbound/slide-folds.svg'); background-position: left -9em top -.5em; background-size: 49.4em 54.3em; }
.ao-editor__market { position: absolute; left: 8.33em; top: 6.5em; display: flex; flex-direction: column; gap: 2.667em; }
.ao-editor__market > strong, .ao-editor__strategy > strong { font-size: 4.667em; line-height: 1.08; font-weight: 600; }
.ao-editor__rule { width: 7em; height: .333em; background: #8bb7ff; }
.ao-editor__chart { display: flex; align-items: flex-end; gap: 2.2em; height: 17.333em; }
.ao-editor__chart > span { width: 4.033em; border-radius: 1.558em; background: linear-gradient(#c2e5ff,#9bd5ff); }
.ao-editor__chart > span:nth-child(2) { background: linear-gradient(#b5dbff,#7abeff); }
.ao-editor__chart > span:nth-child(3) { background: linear-gradient(#94caff,#59a5ff); }
.ao-editor__chart > span:nth-child(4) { background: linear-gradient(#82b5ff,#2675ff); }
.ao-editor__chart > span:nth-child(5) { background: linear-gradient(#4690fc,#1764ea); }
.ao-editor__growth { display: flex; gap: 1.667em; align-items: center; }
.ao-editor__growth > b { font-size: 4.333em; color: var(--accent-color); }
.ao-editor__growth > span { font-size: 2em; line-height: 1.2; color: var(--text-color5); }
.ao-editor__strategy { position: absolute; left: 43em; top: 6em; }
.ao-editor__steps { display: flex; flex-direction: column; gap: 3em; margin-top: 3em; }
.ao-editor__steps > div { display: flex; gap: 2.5em; align-items: center; }
.ao-editor__steps i { display: grid; place-items: center; width: 3em; height: 3em; font-size: 2em; font-style: normal; color: var(--accent-color); background: var(--primary-cont); border-radius: 50%; }
.ao-editor__steps > div:nth-child(2) i { color: var(--violet-add); background: rgb(138 107 236 / 10%); }
.ao-editor__steps > div:nth-child(3) i { color: var(--pinky-add); background: rgb(238 37 157 / 10%); }
.ao-editor__steps b { display: block; font-size: 2.333em; font-weight: 600; line-height: 1.08; }
.ao-editor__steps small { display: block; font-size: 2em; line-height: 1.08; color: var(--text-color5); margin-top: .46em; }
.ao-editor__slide-count { position: absolute; top: -1.1em; left: 4.25em; padding: .2em .8em; border: .1em solid rgb(238 37 157 / 10%); border-radius: 10em; font-size: 6.25em; line-height: 1.4; color: var(--pinky-add); background: linear-gradient(rgb(238 37 157 / 10%),rgb(238 37 157 / 10%)), var(--editor-panel); white-space: nowrap; }
.ao-editor__tools { left: 51em; top: 345.625em; width: 250em; display: flex; gap: 3.89em; padding: 5.44em; }
.ao-editor__tool { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.813em; height: 31.48em; border: .453em solid var(--border); border-radius: 3.241em; background: var(--editor-surface); }
.ao-editor__tool .ao-editor__icon { width: 11.786em; height: 11.786em; }
.ao-editor__tool > span:last-child { font-size: 5.186em; line-height: 1.224; font-weight: 500; }
.ao-editor__settings { left: 118.69em; top: 395.96em; width: 231em; display: flex; flex-direction: column; gap: 4.322em; padding: 4.528em; }
.ao-editor__settings .ao-editor__panel-title { gap: 3.705em; padding-left: 2.47em; }
.ao-editor__settings .ao-editor__panel-title > strong { font-size: 7.409em; line-height: 1.167; }
.ao-editor__settings .ao-editor__panel-title > i { width: 3.705em; height: 3.705em; background: var(--violet-add); }
.ao-editor__settings-row { display: flex; gap: 2.419em; padding: 3.024em; border: .691em solid var(--border); border-radius: 2.419em; }
.ao-editor__settings-row > span { display: flex; align-items: center; justify-content: center; gap: 2.419em; padding: 3.024em; border: .276em solid var(--border); border-radius: 1.512em; background: var(--editor-surface); }
.ao-editor__settings-row > .ao-editor__font { width: 42.339em; justify-content: space-between; }
.ao-editor__settings-row > span > span:not([class]) { font-size: 5.53em; line-height: 1.2; }
.ao-editor__settings-row > .ao-editor__formatting { gap: .605em; padding: 1.815em; }
.ao-editor__formatting .ao-editor__icon { width: 9.678em; height: 9.678em; padding: 1.21em; }
.ao-editor__formatting .ao-editor__icon:first-child { color: var(--accent-color); }
.ao-editor__icon { display: inline-block; flex-shrink: 0; width: 7.258em; height: 7.258em; background: currentColor; mask: var(--editor-icon) center / contain no-repeat; }
.ao-editor__icon--spark { --editor-icon: url('../images/icons/stars.svg'); }
.ao-editor__icon--arrow { --editor-icon: url('../images/catalog-ai/outbound/arrow.svg'); }
.ao-editor__icon--chart { background: none; mask: none; }
.ao-editor__icon--chart > svg { width: 100%; height: 100%; }
@media (max-width: 767px) {
 .ai-outbound-modal__media { align-content: start; }
 .ao-editor { font-size: calc(100cqw / 332); height: 200em; }
 .ao-editor__logo, .ao-editor__users, .ao-editor__tools, .ao-editor__settings, .ao-editor__blue, .ao-editor__green, .ao-editor__purple { display: none; }
 .ao-editor__ribbon { width: 1106.667em; height: 553.333em; left: -197.09em; top: -92.22em; transform: rotate(-5.24deg); }
 .ai-outbound-modal[open] .ao-editor__ribbon { background-image: url('../images/catalog-ai/outbound/mobile-ribbon.webp'); }
 .ao-editor__slide { left: 23.055em; top: 57.445em; width: 285.889em; height: 160.467em; padding: 5.533em; }
 .ao-editor__slide-content { font-size: .92222em; }
 .ao-editor__slide-copy { top: 38.028em; }
 .ao-editor__slide-footer { display: none; }
 .ao-editor__generate { font-size: .70883em; left: 11.111%; top: 24.535%; }
 .ao-editor__export { font-size: .721em; left: 56.25%; top: 22%; }
 .ao-editor__previews { font-size: .73778em; left: 73.89%; top: 42.594%; }
}

.ao-editor__icon--templates { --editor-icon: url('../images/catalog-ai/outbound/templates.svg'); }
.ao-editor__icon--palette { --editor-icon: url('../images/catalog-ai/outbound/palette.svg'); }
.ao-editor__icon--background { --editor-icon: url('../images/catalog-ai/outbound/background.svg'); }
.ao-editor__icon--text { --editor-icon: url('../images/catalog-ai/outbound/text.svg'); }
.ao-editor__icon--photo { --editor-icon: url('../images/catalog-ai/outbound/photo.svg'); }
.ao-editor__icon--shapes { --editor-icon: url('../images/catalog-ai/outbound/shapes.svg'); }
.ao-editor__icon--chevron { --editor-icon: url('../images/documents/icons/editor-chevron.svg'); }
.ao-editor__icon--minus { --editor-icon: url('../images/documents/icons/editor-minus.svg'); }
.ao-editor__icon--plus { --editor-icon: url('../images/documents/icons/editor-plus.svg'); }
.ao-editor__icon--bold { --editor-icon: url('../images/documents/icons/editor-bold.svg'); }
.ao-editor__icon--italic { --editor-icon: url('../images/documents/icons/editor-italic.svg'); }
.ao-editor__icon--underline { --editor-icon: url('../images/documents/icons/editor-underline.svg'); }
.ao-editor__icon--strike { --editor-icon: url('../images/documents/icons/editor-strike.svg'); }
.ao-editor__icon--align { --editor-icon: url('../images/documents/icons/editor-align.svg'); }
.ao-editor__icon--spacing { --editor-icon: url('../images/documents/icons/editor-spacing.svg'); }
.ao-editor__icon--list { --editor-icon: url('../images/documents/icons/editor-list.svg'); }
.ao-editor__icon--color { --editor-icon: url('../images/documents/icons/fill.svg'); }
.ai-outbound-modal {
  --outbound-text: #1f1f1f;
  --outbound-button-text: #fcfcfc;
  color: var(--outbound-text);
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin: auto;
  width: min(770px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  font-feature-settings: "lnum" 1, "pnum" 1;
}
[data-theme="dark"] .ai-outbound-modal { --outbound-text: #fafdff; --outbound-button-text: #1b1c1f; }
.ai-outbound-modal:not([open]) { display: none; }
.ai-outbound-modal::backdrop { background: rgb(0 0 0 / 40%); backdrop-filter: blur(6px); }
.ai-outbound-modal__toolbar { position: sticky; top: 0; height: 0; z-index: 2; display: flex; justify-content: flex-end; overflow: visible; }
.ai-outbound-modal__close { width: 36px; height: 36px; padding: 8px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--text-color5); background: transparent; cursor: pointer; }
.ai-outbound-modal__close:hover { background: var(--primary-cont); }
.ai-outbound-modal__layout { padding: 32px; overflow: clip; }
.ai-outbound-modal--media .ai-outbound-modal__layout { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 368fr); padding: 0; }
.ai-outbound-modal__content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ai-outbound-modal--media .ai-outbound-modal__content { padding: 32px; }
.ai-outbound-modal__eyebrow { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 6px 11px 6px 7px; min-height: 32px; color: var(--pinky-add); background: rgb(238 37 157 / 10%); border: 1px solid rgb(238 37 157 / 10%); border-radius: 100px; font-size: 14px; line-height: 18px; font-weight: 500; margin: 0 0 20px; }
.ai-outbound-modal__eyebrow > span { display: flex; }
.ai-outbound-modal__eyebrow img { width: 14px; height: 14px; flex: 0 0 auto; }
.ai-outbound-modal__copy { width: 100%; }
.ai-outbound-modal h2 { font-size: 24px; line-height: 28px; letter-spacing: 0; font-weight: 600; margin: 0 0 12px; overflow-wrap: anywhere; }
.ai-outbound-modal h2 > span { color: var(--accent-color); }
.ai-outbound-modal__description { color: var(--text-color6); font-size: 16px; line-height: 20px; margin: 0; overflow-wrap: anywhere; }
.ai-outbound-modal__description strong { font-weight: 600; }
.ai-outbound-modal__benefits { display: grid; gap: 10px; width: 100%; padding: 0; margin: 34px 0; list-style: none; }
.ai-outbound-modal__benefits li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.ai-outbound-modal__benefits .ai-outbound-modal__icon { color: var(--accent-color); }
.ai-outbound-modal__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; margin-top: auto; }
.ai-outbound-modal__primary { display: flex; justify-content: center; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; padding: 10px 20px; border-radius: 6px; background: var(--accent-color); color: var(--outbound-button-text); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; text-align: center; }
.ai-outbound-modal__primary:hover { opacity: .88; }
.ai-outbound-modal__continue { display: inline-flex; gap: 4px; align-items: center; max-width: 100%; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--text-color5); text-decoration: none; }
.ai-outbound-modal__continue:hover { color: var(--accent-color); }
.ai-outbound-modal :is(a,button):focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; }
.ai-outbound-modal__icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; background-color: currentColor; mask: var(--outbound-icon) center / contain no-repeat; }
.ai-outbound-modal__icon--check { --outbound-icon: url('../images/icons/check.svg'); }
.ai-outbound-modal__icon--spark { --outbound-icon: url('../images/icons/stars.svg'); }
.ai-outbound-modal__icon--close { --outbound-icon: url('../images/icons/close.svg'); width: 20px; height: 20px; flex-basis: 20px; }
.ai-outbound-modal__icon--arrow { --outbound-icon: url('../images/catalog-ai/outbound/arrow.svg'); width: 18px; height: 18px; flex-basis: 18px; }
.ai-outbound-modal__media { margin: -1px 0; min-width: 0; align-self: stretch; overflow: hidden; border-radius: 12px; background: rgb(40 188 252 / 10%); }
.ai-outbound-modal__media picture { height: 100%; }
.ai-outbound-modal__media img { display: block; width: 100%; height: 100%; min-height: 460px; object-fit: contain; object-position: center; }
.ai-outbound-modal__media figcaption { font-size: 14px; line-height: 20px; color: var(--text-color5); padding: 12px; }
.ai-outbound-modal__image--light { display: block; }
.ai-outbound-modal__image--dark { display: none; }
[data-theme="dark"] .ai-outbound-modal__image--dark { display: block; }
[data-theme="dark"] .ai-outbound-modal__image--light { display: none; }
@media (max-width: 767px) {
  .ai-outbound-modal { width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 28px); }
  .ai-outbound-modal__layout { padding: 48px 20px 20px; }
  .ai-outbound-modal--media .ai-outbound-modal__layout { display: flex; flex-direction: column; container-type: inline-size; }
  .ai-outbound-modal--media .ai-outbound-modal__content { order: 1; position: relative; margin-top: -20px; padding: 28px 20px 20px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 12px; }
  .ai-outbound-modal h2 { font-size: 26px; line-height: 30px; margin-bottom: 8px; }
  .ai-outbound-modal__copy { text-align: center; }
  .ai-outbound-modal__eyebrow { font-size: 12px; line-height: 14px; min-height: 28px; margin-bottom: 16px; }
  .ai-outbound-modal--media .ai-outbound-modal__eyebrow { position: absolute; bottom: calc(100% + max(140px, 60.240964cqw - 60px)); left: 11px; margin: 0; background: linear-gradient(rgb(238 37 157 / 10%), rgb(238 37 157 / 10%)), var(--bg-color); }
  .ai-outbound-modal__eyebrow img { width: 12px; height: 12px; }
  .ai-outbound-modal__benefits { margin: 24px 0; }
  .ai-outbound-modal__actions { align-items: center; text-align: center; }
  .ai-outbound-modal__primary { width: 100%; padding: 12px 10px; }
  .ai-outbound-modal__primary .ai-outbound-modal__icon { display: none; }
  .ai-outbound-modal__continue { justify-content: center; }
  .ai-outbound-modal__media { margin: 0; height: max(200px, 60.240964cqw); border-radius: 12px 12px 0 0; }
  .ai-outbound-modal__media img { min-height: 0; height: 200px; object-fit: cover; object-position: center top; }
}
