.pp-guest-preview {
  --ink: #171c26;
  --muted: #636b7a;
  --line: #e5e6eb;
  --accent: #149dff;
  --question-accent: #075a97;
  --bubble: #e9f5ff;
  --canvas: #f8f9fc;
  --rail: 4.75rem;
  --chat-width: 50%;
  width: min(94vw, 96rem);
  height: 88dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dee6ef;
  border-radius: 1rem;
  box-shadow: 0 20px 64px #101e3b25;
  font: 400 1rem/1.48 "Circular Std", system-ui, sans-serif;
}
.pp-guest-preview::backdrop { background: rgb(16 23 37 / 45%); }
.pp-guest-preview[open] {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-rows: 4.25rem minmax(0, 1fr);
}
.pp-guest-preview[data-mode="pages"] {
  --rail: 0px;
  --chat-width: min(30%, 25rem);
  --accent: #421d62;
  --question-accent: var(--accent);
  --bubble: #f1e8fb;
  --canvas: #f6f2fb;
}
.pp-guest-preview[data-mode="campaigns"] {
  --rail: 0px;
  --chat-width: min(30%, 26rem);
  --accent: #1745ad;
  --question-accent: var(--accent);
  --bubble: #dceefe;
  --canvas: #f2f8fc;
}
.pp-guest-preview [hidden] { display: none !important; }
.pp-guest-preview :is(h2, h3, h4, p, dl, dd) { margin: 0; color: inherit; }
.pp-guest-preview :is(h2, h3, h4) { font-weight: 650; line-height: 1.25; }
.pp-guest-rail {
  grid-column: 1;
  grid-row: 1 / -1;
  background: #f7f7f8;
  border-right: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
}
.pp-guest-preview:not([data-mode="ads"]) .pp-guest-rail { display: none; }
.pp-guest-header {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 clamp(.75rem, 2vw, 1.55rem);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.pp-guest-preview [data-close] {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.pp-guest-preview [data-close] span { line-height: 0; }
.pp-guest-preview [data-close-icon] { display: none; }
.pp-guest-heading { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.pp-guest-heading h2 { font-size: 1.2rem; white-space: nowrap; }
.pp-guest-preview[data-mode="campaigns"] h2 { color: #06327d; }
.pp-guest-preview[data-mode="pages"] h2 { color: #421d62; }
.pp-guest-preview [data-doc-title] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .94rem;
  min-width: 0;
}
.pp-guest-header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex: none; }
.pp-guest-preview [data-balance] { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.pp-guest-workspace {
  grid-column: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--chat-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.pp-guest-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 3.65rem;
  border-bottom: 1px solid var(--line);
  padding: .45rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}
.pp-guest-toolbar > span { font-size: .88rem; font-weight: 600; }
.pp-guest-devices { display: flex; gap: .2rem; background: #f3f3f7; padding: .2rem; border-radius: .45rem; }
.pp-guest-devices button { display: grid; place-items: center; min-width: 2.2rem; min-height: 2rem; padding: .25rem; }
.pp-guest-devices button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px #18223318; }
.pp-guest-conversation {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: .75rem 1rem .65rem;
  border-right: 1px solid var(--line);
}
.pp-guest-preview[data-mode="ads"] .pp-guest-conversation { padding: .8rem clamp(1rem, 3vw, 2.45rem) .8rem; border: 0; }
.pp-guest-output {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  padding: 1.5rem clamp(1rem, 3vw, 2.6rem);
}
.pp-guest-preview[data-mode="ads"] .pp-guest-output {
  margin: clamp(.65rem, 2.1vw, 1.65rem) clamp(.65rem, 3vw, 2.3rem) clamp(.65rem, 2vw, 1.6rem) 0;
  padding: 0 .85rem .85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  gap: .8rem;
}
.pp-guest-output-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pp-guest-output-heading h3 { font-size: 1.1rem; }
.pp-guest-preview[data-mode="ads"] .pp-guest-output-heading {
  min-height: 3.35rem;
  padding: .5rem .85rem;
  margin: 0 -.85rem;
  border-bottom: 1px solid var(--line);
}
.pp-guest-preview [data-workspace-status] {
  background: #fff4d9;
  color: #75520e;
  border-radius: 999px;
  padding: .18rem .62rem;
  font-size: .78rem;
  white-space: nowrap;
}
.pp-guest-preview:not([data-mode="ads"]) [data-workspace-status] { display: none; }
.pp-guest-preview:not([data-mode="ads"]) .pp-guest-output-heading { margin: 0 auto .75rem; max-width: 58rem; width: 100%; }
.pp-guest-sheet {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 80%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.pp-guest-preview:not([data-mode="ads"]) .pp-guest-sheet { max-width: 58rem; margin: 0 auto; }
.pp-guest-preview[data-device="tablet"]:not([data-mode="ads"]) .pp-guest-sheet { max-width: 43rem; }
.pp-guest-preview[data-device="mobile"]:not([data-mode="ads"]) .pp-guest-sheet { max-width: 24rem; }
.pp-guest-sheet [data-empty] { padding: 1.15rem; color: var(--muted); }
.pp-guest-workspace-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 1rem;
}
.pp-guest-workspace-footer b { font-size: .95rem; }
.pp-guest-workspace-footer p { font-size: .86rem; color: var(--muted); }
.pp-guest-chat-bar { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pp-guest-product { position: relative; display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.pp-guest-product::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .7rem;
  width: .46rem;
  height: .46rem;
  border: solid #233249;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.pp-guest-product label { font-weight: 650; }
.pp-guest-product select {
  max-width: 100%;
  padding: .65rem 2rem .65rem .85rem;
  appearance: none;
  background: #fff;
  color: #1c293e;
  border: 1px solid #adbed7;
  border-radius: .55rem;
  font: inherit;
}
.pp-guest-preview [data-thread] { flex: 1; min-height: 2rem; overflow: auto; overscroll-behavior: contain; padding: 1.1rem .12rem; }
.pp-guest-preview p.pp-guest-welcome { color: var(--muted); }
.pp-guest-turn { width: fit-content; max-width: 92%; margin-bottom: .95rem; }
.pp-guest-turn p { white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-guest-turn small { display: block; color: var(--muted); margin-top: .25rem; overflow-wrap: anywhere; }
.pp-guest-sent-images { display: flex; flex-wrap: wrap; gap: .35rem; max-width: 23rem; margin-top: .45rem; }
.pp-guest-sent-images img { width: 3.5rem; height: 3.5rem; border-radius: .45rem; object-fit: cover; background: var(--canvas); }
.pp-guest-user { margin-left: auto; max-width: min(87%, 34rem); }
.pp-guest-user > div { padding: .62rem .75rem; border-radius: .65rem .65rem .14rem .65rem; background: var(--bubble); }
.pp-guest-preview[data-mode="ads"] .pp-guest-user > div { border-radius: 1.1rem 1.1rem .2rem 1.1rem; }
.pp-guest-assistant { position: relative; margin-left: 1.55rem; }
.pp-guest-assistant::before, .pp-guest-thinking::before {
  content: "";
  position: absolute;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background-color: #6d70e4 !important;
  background-image: linear-gradient(135deg, #44dcff 12%, #477bff 55%, #8544ce 100%) !important;
  box-shadow: inset 0 0 .16rem #203e9790;
}
.pp-guest-assistant::before { left: -1.46rem; top: .34rem; }
.pp-guest-preview p.pp-guest-thinking {
  position: relative;
  margin: .4rem 0 0 1.55rem;
  color: #788292;
  font: italic 600 14px/1.48 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.pp-guest-thinking::before { top: .32rem; left: -1.46rem; }
.pp-guest-thinking::before { animation: pp-guest-pulse 1.2s ease-in-out infinite alternate; }
.pp-guest-preview [data-support] {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: #fff;
  color: var(--question-accent);
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.pp-guest-preview.pp-guest-support-dialog[open] {
  display: block;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(32.5rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  background: var(--canvas);
}
.pp-guest-support-dialog .pp-guest-support-card { margin: 0; border: 0; box-shadow: none; }
.pp-guest-preview .pp-guest-support-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
}
.pp-guest-support-card {
  display: grid;
  gap: .85rem;
  max-width: 32.5rem;
  margin: .8rem 0 1rem;
  padding: clamp(.85rem, 2vw, 1rem);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1px 5px #9aa0ae20;
}
.pp-guest-support-card header { display: flex; align-items: flex-start; gap: .75rem; }
.pp-guest-support-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.65rem;
  height: 2.65rem;
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--question-accent);
  border-radius: .6rem;
}
.pp-guest-support-card header p, .pp-guest-preview p.pp-guest-support-note { margin-top: .22rem; color: var(--muted); font-size: .88rem; }
.pp-guest-support-options { display: grid; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.pp-guest-preview .pp-guest-support-options a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  color: var(--ink);
  text-decoration: none;
}
.pp-guest-support-options a + a { border-top: 1px solid var(--line); }
.pp-guest-support-options a:hover { background: var(--canvas); }
.pp-guest-support-options a:focus-visible, .pp-guest-support-card:focus-visible { outline: 2px solid var(--question-accent); outline-offset: 2px; }
.pp-guest-support-options svg { flex: none; color: #0879ba; }
.pp-guest-support-options .pp-guest-support-whatsapp svg { color: #087d43; }
.pp-guest-support-options strong, .pp-guest-support-options small { display: block; }
.pp-guest-support-options small { color: var(--muted); font-size: .83rem; }
@keyframes pp-guest-pulse {
  from { opacity: .45; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}
.pp-guest-preview[data-busy] [data-status]:not(:empty)::before {
  content: "";
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-right: .4rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -.08em;
  animation: pp-guest-spin .85s linear infinite;
}
@keyframes pp-guest-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .pp-guest-preview .pp-guest-thinking::before,
  .pp-guest-preview[data-busy] [data-status]:not(:empty)::before { animation: none; }
}
.pp-guest-reply-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.pp-guest-preview button {
  padding: .44rem .66rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .48rem;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 550;
  line-height: 1.2;
}
.pp-guest-preview button:hover { background: #f7f9fc; }
.pp-guest-preview button:disabled { opacity: .5; cursor: default; }
.pp-guest-preview .pp-guest-signup {
  display: inline-flex;
  align-items: center;
  background: #241438;
  color: #fff;
  border: 1px solid #241438;
  border-radius: 999px;
  padding: .42rem .85rem;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.pp-guest-preview .pp-guest-signup:hover { background: #412368; }
.pp-guest-preview small.pp-guest-signup-hint { flex-basis: 100%; }
.pp-guest-preview .pp-guest-view-draft {
  color: var(--accent);
  border-color: currentColor;
  border-radius: 999px;
  padding: .38rem .72rem;
}
.pp-guest-preview .pp-guest-copy {
  color: var(--muted);
  border: 0;
  padding: .24rem 0;
  font-size: .78rem;
  text-align: left;
}
.pp-guest-preview .pp-guest-composer { border: 1px solid var(--line); border-radius: .65rem; padding: .55rem .6rem .43rem; }
.pp-guest-preview .pp-guest-composer:focus-within { border-color: #a4c6ec; box-shadow: 0 0 0 1px #a4c6ec70; }
.pp-guest-composer textarea {
  display: block;
  width: 100%;
  min-height: 2.65rem;
  max-height: 7rem;
  padding: .15rem .22rem;
  resize: vertical;
  background: transparent;
  border: 0;
  font: inherit;
  color: var(--ink);
}
.pp-guest-preview .pp-guest-composer textarea:focus-visible { outline: none !important; }
.pp-guest-composer-actions { display: flex; align-items: center; gap: .35rem; }
.pp-guest-preview button.pp-guest-attach, form .pp-entry-attachments button.pp-guest-attach {
  display: inline-flex; align-items: center; gap: .38rem; min-height: 2.75rem; padding: 0 .68rem;
  border: 1px solid color-mix(in srgb, currentColor 40%, white); border-radius: .55rem; background: #fff;
  color: var(--accent, #34567b); font: inherit; font-size: .875rem; cursor: pointer;
}
.pp-guest-preview button.pp-guest-attach:hover, form .pp-entry-attachments button.pp-guest-attach:hover { background: #f5f5f9; }
.pp-guest-attach svg { flex: none; width: 1rem; height: 1rem; }
body.home-redesign #main form.home-prompt.pp-prompt,
body.product-main #main .product-hero form.agent-entry.pp-prompt:has(.pp-entry-attachments) {
  height: auto !important; max-height: none !important;
}
body.product-main #main .product-hero form.agent-entry.pp-prompt .agent-entry-row:has(.pp-entry-actions) { height: auto !important; }
.pp-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.home-prompt-bottom > button[type=submit] { margin-left: auto; }
.pp-entry-attachment-details [hidden] { display: none !important; }
.pp-entry-attachment-details p { margin: 0 0 .4rem; font-size: .875rem; }
.pp-guest-preview .pp-guest-question-actions { flex-wrap: wrap; }
.pp-guest-question-actions [data-question-attach] { margin-right: auto; }
.pp-guest-pane-switch { display: none; }
.pp-guest-file-list { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 7rem; overflow: auto; margin: .3rem 0 .5rem; }
.pp-guest-preview button.pp-guest-file-chip, .pp-entry-attachment-details button.pp-guest-file-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: min(100%, 14rem);
  min-height: 2.5rem;
  padding: .3rem .43rem;
  background: var(--canvas);
}
.pp-guest-preview button.pp-guest-image-chip, .pp-entry-attachment-details button.pp-guest-image-chip {
  position: relative;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  overflow: hidden;
  border-radius: .5rem;
}
.pp-guest-image-chip img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.pp-guest-preview .pp-guest-image-chip svg, .pp-entry-attachment-details .pp-guest-image-chip svg {
  position: absolute;
  top: .13rem;
  right: .13rem;
  width: 1.15rem;
  height: 1.15rem;
  padding: .15rem;
  border-radius: 50%;
  background: #171c26;
  color: #fff;
}
.pp-guest-file-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-guest-file-chip svg { width: .9rem; height: .9rem; flex: none; color: var(--muted); }
.pp-guest-preview [data-generate] {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
}
.pp-guest-preview [data-generate]:hover { filter: brightness(.92); background: var(--accent); }
.pp-guest-preview [data-status] { color: var(--muted); font-size: .82rem; margin-top: .3rem; overflow-wrap: anywhere; }
.pp-guest-preview .pp-guest-demo-note {
  margin: .5rem 0 .4rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.35;
}
.pp-guest-demo-note strong { color: var(--accent); margin-right: .35rem; }
.pp-guest-preview p.pp-guest-note { color: var(--muted); font-size: .74rem; text-align: center; margin-top: .42rem; }
.pp-guest-preview[data-mode="ads"] dl > div {
  display: grid;
  grid-template-columns: minmax(6.2rem, 30%) minmax(0, 1fr);
  gap: .45rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.pp-guest-preview dt { font-size: .91rem; font-weight: 600; }
.pp-guest-preview dd { display: flex; justify-content: space-between; align-items: flex-start; gap: .55rem; }
.pp-guest-preview dd span { overflow-wrap: anywhere; white-space: pre-wrap; }
.pp-guest-preview dd button { color: #086db1; padding: .1rem .2rem; border: 0; }
.pp-guest-creatives:not([hidden]) { display: flex; flex-wrap: wrap; gap: .75rem; padding: .85rem 1rem; }
.pp-guest-creatives figure { flex: 1 1 12rem; min-width: 0; max-width: 22rem; margin: 0; }
.pp-guest-creatives img { display: block; width: 100%; height: auto; border-radius: .55rem; }
.pp-guest-creatives figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.pp-guest-creatives button { color: #17669e; border: 0; background: none; cursor: pointer; }
.pp-guest-preview [data-visual-work]:not(:empty) { padding: clamp(1.1rem, 4.5vw, 4.25rem); white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-guest-preview [data-visual-work][data-document] { padding: 0; }
.pp-guest-preview [data-visual-work][data-document] iframe {
  display: block;
  width: 100%;
  height: clamp(24rem, 63dvh, 56rem);
  border: 0;
  background: #fff;
}
.pp-guest-preview[data-mode="pages"][data-device="desktop"] .pp-guest-sheet:has([data-document]) { max-width: none; }
.pp-guest-preview [data-visual-work][data-sequence-view] { padding: 0; white-space: normal; }
.pp-guest-sheet:has([data-sequence-view="timeline"]) {
  background: #f5f9fd radial-gradient(#cbd8e6 1px, transparent 1px) 0 0 / 16px 16px;
}
.pp-guest-sequence {
  display: grid;
  justify-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 1.4rem clamp(.7rem, 4vw, 2.5rem);
}
.pp-guest-sequence-node {
  --node-ink: #184985;
  --node-wash: #e9f3ff;
  position: relative;
  width: min(100%, 23rem);
  border: 1px solid #dce4ed;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 1px 3px #213a5612;
}
.pp-guest-sequence-node + .pp-guest-sequence-node::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -1.6rem;
  height: 1.55rem;
  border-left: 1px dashed #8798ac;
}
.pp-guest-sequence-node[data-kind="email"] { --node-ink: #186044; --node-wash: #e7f6ee; }
.pp-guest-sequence-node[data-kind="wait"] { --node-ink: #5b3c8b; --node-wash: #f1ecfb; width: min(100%, 18rem); }
.pp-guest-sequence-node-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: .65rem .65rem 0 0;
  background: var(--node-wash);
  color: var(--node-ink);
  font-size: .875rem;
}
.pp-guest-sequence-node-title:only-child { border-radius: .65rem; }
.pp-guest-sequence-node-title svg { flex: none; }
.pp-guest-sequence-node-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .65rem .75rem;
  font-size: .91rem;
}
.pp-guest-preview .pp-guest-sequence-link {
  flex: none;
  padding: .22rem .3rem;
  background: transparent;
  color: #174b95;
  border-color: transparent;
  font-size: .875rem;
  font-weight: 650;
}
.pp-guest-preview .pp-guest-sequence-link:hover { background: #e5effc; text-decoration: underline; }
.pp-guest-sequence-node-title .pp-guest-sequence-link { margin-left: auto; }
.pp-guest-delay-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: .52rem;
  padding: .65rem;
}
.pp-guest-delay-editor label { display: grid; gap: .28rem; font-size: .875rem; }
.pp-guest-delay-editor input,
.pp-guest-delay-editor select {
  min-width: 0;
  width: 100%;
  padding: .32rem;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}
.pp-guest-delay-editor div { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .4rem; }
.pp-guest-delay-editor p:not(:empty) { grid-column: 1 / -1; color: #8d2341; font-size: .875rem; }
.pp-guest-delay-editor p:empty { display: none; }
.pp-guest-sequence-footer { padding: 0 1rem 1.4rem; text-align: center; }
.pp-guest-preview .pp-guest-sequence-footer .pp-guest-signup { background: #2041d9; border-color: #2041d9; }
.pp-guest-preview .pp-guest-sequence-footer .pp-guest-signup:hover { background: #1936b8; }
.pp-guest-sequence-footer p { margin-top: .45rem; color: var(--muted); font-size: .875rem; }
.pp-guest-sequence-envelope button { margin-bottom: .45rem; }
.pp-guest-sequence-copy { padding: 1rem; white-space: pre-wrap; }

.pp-guest-preview [data-visual-work] h4 { margin-bottom: 1rem; font-size: clamp(1.4rem, 3.4vw, 2.65rem); }
.pp-guest-preview[data-mode="pages"] [data-visual-work] h4 { color: #0b254b; }
.pp-guest-preview[data-mode="campaigns"] [data-visual-work] h4 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.pp-guest-preview [data-visual-work] p + p { margin-top: 1rem; }
.pp-guest-visual-cta {
  display: inline-block;
  margin-top: 1.2rem;
  padding: .6rem .85rem;
  border-radius: .3rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.pp-guest-preview p.pp-guest-email-preview-text { color: var(--muted); margin-bottom: .85rem; }
.pp-guest-preview:not([data-workspace-ready]) .pp-guest-workspace { grid-template-columns: minmax(0, 1fr); }
.pp-guest-preview:not([data-workspace-ready]) .pp-guest-conversation { width: min(100%, 58rem); margin: 0 auto; border: 0; }
.pp-guest-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 790px) {
  .pp-guest-preview { --rail: 0px; width: 96vw; height: 92dvh; border-radius: .75rem; }
  .pp-guest-preview[data-mode="ads"] .pp-guest-rail { display: none; }
  .pp-guest-preview[open] { grid-template-rows: 3.55rem minmax(0, 1fr) auto; }
  .pp-guest-pane-switch {
    grid-column: 2; grid-row: 3; position: relative; display: grid; grid-template-columns: 1fr 1fr;
    padding: .55rem .7rem max(.55rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff;
  }
  .pp-guest-pane-switch::before {
    content: ''; position: absolute; inset: .45rem .55rem max(.45rem, env(safe-area-inset-bottom));
    border-radius: 2rem; background: #f1f2f5;
  }
  .pp-guest-pane-switch button {
    position: relative; min-height: 2.75rem; padding: .35rem .75rem; border: 1px solid transparent;
    border-radius: 2rem; color: var(--muted); background: transparent; font-weight: 650;
  }
  .pp-guest-pane-switch button[aria-pressed="true"] {
    color: var(--accent); background: #fff; border-color: var(--line); box-shadow: 0 1px 3px #18223322;
  }
  .pp-guest-preview .pp-guest-toolbar { display: none; }
  .pp-guest-show-preview .pp-guest-toolbar:not([hidden]) { display: grid; }
  .pp-guest-preview .pp-guest-toolbar [data-full-preview] { display: none; }
  .pp-guest-preview .pp-guest-workspace { grid-template-columns: minmax(0, 1fr); }
  .pp-guest-preview [data-back-icon] { display: none; }
  .pp-guest-preview [data-close-icon] { display: block; }
  .pp-guest-preview [data-doc-title] { display: none; }
  .pp-guest-preview .pp-guest-output { display: none; grid-column: 1; margin: 0; }
  .pp-guest-preview[data-mode="ads"] .pp-guest-output { margin: .5rem; }
  .pp-guest-preview .pp-guest-conversation { border: 0; }
  .pp-guest-show-preview .pp-guest-workspace .pp-guest-output { display: flex; }
  .pp-guest-show-preview .pp-guest-conversation { display: none; }
  .pp-guest-toolbar { min-height: 3rem; }
}
@media (max-width: 460px) {
  .pp-guest-heading h2 { font-size: 1rem; }
  .pp-guest-header { gap: .4rem; }
  .pp-guest-header-actions { gap: .32rem; }
  .pp-guest-preview [data-balance] { font-size: .72rem; }
  .pp-guest-toolbar { padding-inline: .55rem; }
  .pp-guest-toolbar > span { font-size: .75rem; }
}

.pp-guest-preview [data-visual-work] { --draft-accent: var(--accent); --draft-wash: #f4f6fb; }
.pp-guest-preview [data-visual-work][data-palette="forest"] { --draft-accent: #254c36; --draft-wash: #edf4ef; }
.pp-guest-preview [data-visual-work][data-palette="marine"] { --draft-accent: #173d75; --draft-wash: #edf5fe; }
.pp-guest-preview [data-visual-work][data-palette="plum"] { --draft-accent: #58306c; --draft-wash: #f6eff9; }
.pp-guest-preview [data-visual-work][data-palette="warm"] { --draft-accent: #873f2a; --draft-wash: #fff2e8; }
.pp-guest-preview [data-visual-work][data-palette="ink"] { --draft-accent: #222c3d; --draft-wash: #f3f4f5; }
.pp-guest-preview [data-visual-work][data-layout="centered"] .pp-guest-visual-hero { text-align: center; }
.pp-guest-preview [data-visual-work][data-layout="editorial"] h4 { font-family: Georgia, serif; }
.pp-guest-preview [data-visual-work][data-layout="split"] .pp-guest-visual-hero {
  background: var(--draft-wash); padding: clamp(.85rem, 3vw, 2rem); border-radius: .75rem;
}
.pp-guest-preview .pp-guest-visual-section {
  padding: 1rem 0; margin-top: 1rem; border-top: 1px solid var(--line); background: transparent;
}
.pp-guest-preview .pp-guest-visual-section[data-kind="note"] {
  background: var(--draft-wash); padding: 1rem; border-radius: .55rem; border: 0;
}
.pp-guest-preview .pp-guest-visual-section h5 { margin: 0 0 .38rem; color: var(--draft-accent); font-size: 1.08rem; }
.pp-guest-preview [data-visual-work] .pp-guest-visual-cta { background: var(--draft-accent); }

.pp-guest-replay-picker { display: flex; align-items: center; gap: .4rem; }
.pp-guest-replay-picker label { font-weight: 650; }
.pp-guest-replay-picker select {
  max-width: 100%; padding: .55rem .6rem; border: 1px solid #adbed7;
  border-radius: .55rem; background: #fff; color: #1c293e; font: inherit;
}

.pp-guest-toolbar [data-full-preview] {
  justify-self: end;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
}
.pp-guest-full-preview[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #171d29;
  font: 0.875rem system-ui, sans-serif;
}
.pp-guest-full-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid #e1e4ea;
}
.pp-guest-full-preview button {
  padding: .5rem .75rem;
  border: 1px solid #e1e4ea;
  border-radius: .5rem;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pp-guest-full-preview iframe { display: block; width: 100%; height: 100%; border: 0; }

.pp-guest-preview [data-more-credits] {
  display: grid;
  place-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
}
.pp-guest-preview [data-more-credits][hidden] { display: none; }
.pp-guest-turn.pp-guest-question-turn {
  width: min(calc(100% - 1.55rem), 35rem);
  max-width: none;
}
.pp-guest-question-turn::before { display: none; }
.pp-guest-question-card {
  display: grid;
  gap: .85rem;
  padding: clamp(.85rem, 2vw, 1.12rem);
  border: 1px solid color-mix(in srgb, var(--question-accent) 17%, var(--line));
  border-radius: 1rem;
  background: var(--canvas);
}
.pp-guest-preview .pp-guest-question-kicker {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--question-accent);
  font-size: .85rem;
  font-weight: 650;
}
.pp-guest-preview .pp-guest-question-text {
  font-weight: 650;
  line-height: 1.45;
}
.pp-guest-answer-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.pp-guest-answer-option {
  display: flex;
  align-items: flex-start;
  gap: .56rem;
  min-height: 2.75rem;
  padding: .58rem .65rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  line-height: 1.4;
  cursor: pointer;
}
.pp-guest-answer-option span { overflow-wrap: anywhere; }
.pp-guest-answer-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: .17rem 0 0;
  accent-color: var(--question-accent);
}
.pp-guest-answer-option:hover,
.pp-guest-answer-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--question-accent) 18%, var(--line));
  background: var(--bubble);
}
.pp-guest-answer-option:has(input:focus-visible) {
  outline: 2px solid var(--question-accent);
  outline-offset: 2px;
}
.pp-guest-answer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fff;
}
.pp-guest-answer-entry label { color: var(--muted); line-height: 1; padding-top: .16rem; cursor: text; }
.pp-guest-answer-entry:focus-within {
  border-color: var(--question-accent);
  box-shadow: 0 0 0 1px var(--question-accent);
}
.pp-guest-question-card .pp-guest-answer-entry textarea {
  width: 100%;
  min-height: 2.5rem;
  max-height: 10rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  line-height: 1.45;
  resize: vertical;
}
.pp-guest-preview .pp-guest-question-card .pp-guest-answer-entry textarea:focus-visible,
.pp-guest-preview .pp-guest-question-card .pp-guest-answer-option input:focus-visible { outline: none !important; }
.pp-guest-question-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .45rem;
}
.pp-guest-question-actions button {
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border-radius: 999px;
}
.pp-guest-preview .pp-guest-question-card .pp-guest-question-actions button:focus-visible {
  outline: 2px solid var(--question-accent) !important;
  outline-offset: 2px;
}
.pp-guest-preview [data-question-skip] { color: var(--muted); }
.pp-guest-preview [data-question-send] {
  border-color: var(--question-accent);
  background: var(--question-accent);
  color: #fff;
}
.pp-guest-preview [data-question-send]:hover:not(:disabled) { filter: brightness(.88); }
.pp-guest-credit-dialog {
  width: min(27rem, calc(100% - 2rem));
  border: 1px solid #e1e4ea;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  color: #171d29;
  font: .95rem/1.5 system-ui, sans-serif;
}
.pp-guest-credit-dialog::backdrop { background: rgb(23 29 41 / 45%); }
.pp-guest-credit-dialog h2 { margin: 0; font-size: 1.125rem; }
.pp-guest-credit-dialog div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.pp-guest-credit-dialog button {
  border: 1px solid #e1e4ea;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pp-guest-credit-dialog [data-credit-continue] { background: #241438; color: #fff; }

.pp-guest-stock-credits {
  flex: none;
  padding: .35rem .8rem;
  margin: 0;
  font: .75rem/1.4 system-ui, sans-serif;
  white-space: normal;
}
.pp-guest-stock-credits a { color: #394d70; }
.pp-guest-full-preview > div { display: flex; flex-direction: column; min-height: 0; }
.pp-guest-full-preview iframe { flex: 1; min-height: 0; }

/* Keep inbox metadata visible without making it part of the authored email. */
.pp-guest-email-envelope {
  flex: 0 0 auto;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e2ea;
  background: #fff;
}
.pp-guest-email-envelope h4,
.pp-guest-email-envelope p { margin: 0; }
.pp-guest-email-envelope p { color: #565f70; margin-top: 0.25rem; }

.pp-guest-heading .pp-guest-ads-logo { display: none; }
.pp-guest-ads-logo { width: 2.75rem; height: 2.75rem; object-fit: contain; flex: none; }
@media (max-width: 790px) {
  .pp-guest-preview[data-mode="ads"] .pp-guest-heading .pp-guest-ads-logo { display: block; width: 2rem; height: 2rem; }
}

/* Waiting cards from the reviewed Preview AI prototype. */
.pp-guest-preview .pp-guest-loading-tip {
  --accent: #149dff;
  --ink: #0b2a58;
  --tint: #eaf6ff;
  box-sizing: border-box;
  width: min(calc(100% - 1.55rem), 420px);
  min-width: 0;
  margin: 6px 0 0 1.55rem;
  padding: 10px 12px 12px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, white);
  border-radius: 14px;
  background-image: linear-gradient(125deg, color-mix(in srgb, var(--tint) 62%, white), #fff 84%) !important;
  box-shadow: 0 3px 9px -5px #18335635, inset 0 1px 0 #fff;
  color: #171b26;
  font: 15px/1.48 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.pp-guest-loading-tip[data-tip-product="pages"] { --accent: #9c4aff; --ink: #582793; --tint: #f5eeff; }
.pp-guest-loading-tip[data-tip-product="campaigns"] { --accent: #2041d9; --ink: #182e99; --tint: #edf0ff; }
.pp-guest-loading-tip *, .pp-guest-loading-tip *::before, .pp-guest-loading-tip *::after { box-sizing: border-box; }
.pp-guest-preview .pp-guest-loading-tip * { font-family: inherit !important; }
.pp-guest-preview .pp-guest-loading-tip code { font-family: monospace !important; }
.pp-guest-loading-tip .pp-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-guest-loading-tip .pp-tip-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: -.25px;
  color: var(--ink);
}
.pp-guest-loading-tip .pp-tip-spark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 22px;
  color: var(--ink);
}
.pp-guest-loading-tip .pp-tip-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background: currentColor;
  mask: var(--glyph) no-repeat center / contain;
}
.pp-guest-loading-tip .pp-tip-spark .pp-tip-icon { width: 18px; height: 18px; }
.pp-guest-loading-tip button[data-tip-control] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.pp-guest-loading-tip button[data-tip-control]:active { transform: scale(.96); }
.pp-guest-loading-tip button:focus-visible { outline: 2px solid #149dff; outline-offset: 2px; }
.pp-guest-preview .pp-guest-loading-tip [data-tip-copy] {
  color: #354255;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.pp-guest-loading-tip .pp-tip-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  margin-top: 8px;
  padding: 5px 11px 5px 5px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px #0b2a5809;
  animation: pp-guest-tip-slide .21s cubic-bezier(.16, 1, .3, 1) both;
}
.pp-guest-loading-tip .pp-tip-strip .pp-tip-photo { width: 48px; height: 42px; object-fit: cover; border-radius: 6px; }
.pp-guest-loading-tip .pp-tip-strip b { display: block; font-size: 12px; letter-spacing: -.2px; line-height: 1.25; }
.pp-guest-loading-tip .pp-tip-strip small { color: #627083; font-size: 11px; font-weight: 500; }
.pp-guest-loading-tip .pp-tip-strip .pp-tip-platform { margin-left: auto; flex: none; width: 21px; height: 21px; object-fit: contain; }
.pp-guest-loading-tip .pp-tip-strip.pp-tip-snap { background: #fffcea; }
.pp-guest-loading-tip .pp-tip-strip.pp-tip-snap .pp-tip-platform { background: #fffc00; padding: 3px; border-radius: 5px; }
.pp-guest-loading-tip .pp-tip-strip.pp-tip-google { padding-left: 10px; }
.pp-guest-loading-tip .pp-tip-strip.pp-tip-google b { color: #2854a8; }
.pp-guest-loading-tip .pp-tip-strip .pp-tip-placements { display: inline-flex; align-items: center; flex: none; gap: 5px; margin-left: auto; }
.pp-guest-loading-tip .pp-tip-placements .pp-tip-platform { display: block; width: 18px; height: 18px; }
.pp-guest-loading-tip .pp-tip-strip.pp-tip-domain, .pp-guest-loading-tip .pp-tip-strip.pp-tip-sequence { padding-left: 12px; }
.pp-guest-loading-tip .pp-tip-domain code { font-size: 13px; }
.pp-guest-loading-tip .pp-tip-domain span {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 10px;
  background: #e9f7ef;
  color: #29634a;
  font-size: 11px;
  animation: pp-guest-tip-slide .2s .32s both;
}
.pp-guest-loading-tip button[data-tip-contact] {
  margin-top: 8px;
  padding: 5px 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  box-shadow: 0 1px 2px #10182809;
  font-size: 12px;
}
.pp-guest-loading-tip [data-tip-contact] .pp-tip-icon { width: 13px; height: 13px; }
.pp-guest-loading-tip .pp-tip-devices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 5px 8px 5px 4px;
  background: #fff;
  border: 1px solid #e5dfee;
  border-radius: 9px;
}
.pp-guest-loading-tip .pp-tip-device-options { display: flex; gap: 2px; }
.pp-guest-loading-tip .pp-tip-device-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 5px;
  border: 0;
  border-radius: 6px;
  color: #677083;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .18s, color .18s;
}
.pp-guest-loading-tip .pp-tip-device-options button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.pp-guest-loading-tip .pp-tip-device-options .pp-tip-icon { width: 15px; height: 15px; }
.pp-guest-loading-tip .pp-tip-canvas {
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  flex-shrink: 0;
  border-left: 1px solid #eee8f5;
  padding-left: 7px;
}
.pp-guest-loading-tip .pp-tip-mini-screen {
  width: 51px;
  height: 29px;
  border: 1.5px solid #78668e;
  border-radius: 3px;
  padding: 2px;
  background: #fff;
  overflow: hidden;
  transition: width .24s cubic-bezier(.2, 0, 0, 1), height .24s cubic-bezier(.2, 0, 0, 1);
}
.pp-guest-loading-tip .pp-tip-mini-screen > i { display: block; width: 100%; height: 2px; margin-bottom: 2px; background: #dfd6ea; }
.pp-guest-loading-tip .pp-tip-mini-content { display: flex; gap: 3px; align-items: center; }
.pp-guest-loading-tip .pp-tip-mini-content img { width: 45%; height: 15px; object-fit: cover; border-radius: 1px; }
.pp-guest-loading-tip .pp-tip-mini-content > div { flex: 1; }
.pp-guest-loading-tip .pp-tip-mini-content b, .pp-guest-loading-tip .pp-tip-mini-content em { display: block; background: #b1a4be; height: 2px; width: 90%; margin: 2px 0; }
.pp-guest-loading-tip .pp-tip-mini-content b + b { width: 65%; background: #d6cde0; }
.pp-guest-loading-tip .pp-tip-mini-content em { width: 45%; height: 3px; background: #9c4aff; }
.pp-guest-loading-tip .pp-tip-devices[data-tip-size="1"] .pp-tip-mini-screen { width: 33px; height: 30px; }
.pp-guest-loading-tip .pp-tip-devices[data-tip-size="2"] .pp-tip-mini-screen { width: 20px; height: 33px; }
.pp-guest-loading-tip .pp-tip-devices[data-tip-size="2"] .pp-tip-mini-content { display: block; }
.pp-guest-loading-tip .pp-tip-devices[data-tip-size="2"] img { width: 100%; height: 9px; display: block; }
.pp-guest-loading-tip[data-tip-paused] * { animation: none !important; }
@keyframes pp-guest-tip-slide {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 550px) {
  .pp-guest-preview .pp-guest-loading-tip { font-size: 14px; }
  .pp-guest-loading-tip .pp-tip-placements .pp-tip-platform { width: 16px; height: 16px; }
}
@media (max-width: 390px) {
  .pp-guest-loading-tip .pp-tip-device-options button { flex-direction: column; font-size: 10px; padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-guest-loading-tip * { animation: none !important; transition: none !important; }
}

.pp-entry-attachment-details .pp-guest-file-chip { border: 1px solid #d9dfeb; border-radius: .45rem; color: #34567b; background: #f5f7fa; }
