/* The Home and product prompts share the same white surface and even inset. */
body #main form.home-prompt.pp-prompt,
body.product-main #main .product-hero form.agent-entry.pp-prompt {
  box-sizing:border-box!important;
  width:min(100%,620px)!important;
  height:120px!important;
  min-height:120px!important;
  max-height:120px!important;
  padding:8px!important;
  background:#fff!important;
  border:1px solid #e8edf3!important;
  box-shadow:0 2px 4px rgba(0,18,38,.03),0 12px 24px rgba(0,18,38,.055),0 25px 50px rgba(0,18,38,.04)!important;
}
body #main form.home-prompt.pp-prompt textarea,
body.product-main #main .product-hero form.agent-entry.pp-prompt textarea {
  box-sizing:border-box!important;
  width:100%!important;
  padding:8px!important;
  margin:0!important;
  resize:none!important;
  overflow:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.product-main #main .product-hero form.agent-entry.pp-prompt .agent-entry-row {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
}
body.product-main #main .product-hero form.agent-entry.pp-prompt textarea {
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}
body.product-main #main .product-hero form.agent-entry.pp-prompt button[type=submit] {
  flex:none!important;
  align-self:flex-end!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0!important;
}
body.product-main[data-product=campaigns] #main .product-hero form.agent-entry.pp-prompt:focus-within {
  background:#fff!important;
}
body.product-main[data-product=campaigns] #main .product-hero form.agent-entry.pp-prompt {background:#fff!important}

/* Keep every supplied audience illustration visible inside its card. */
body.home-redesign #main .m-bento-grid .m-audience-card:nth-child(n) {
  height:700px!important;
  min-height:700px!important;
}
body.home-redesign #main .m-bento-grid .m-audience-card>.m-audience-art:first-child {
  flex:1 1 auto!important;
  align-self:stretch!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:14px 0 0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
  box-shadow:none!important;
}
body.home-redesign #main .m-bento-grid .m-audience-art img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
}

/* The supplied Ads icons already contain their own circular surface. */
body.product-main[data-product=ads] #main .pp-ads-cta .pp-ads-cta-channels a,
body.product-main[data-product=ads] #main .pp-ads-cta .pp-ads-cta-channels a:nth-child(2) {
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.product-main[data-product=ads] #main .pp-ads-cta .pp-ads-cta-channels a img {
  width:min(120px,100%)!important;
  height:min(120px,100%)!important;
  filter:drop-shadow(0 10px 16px rgba(0,18,38,.14));
}
body.product-main[data-product=ads] #main .pp-ads-cta .pp-ads-cta-channels a:last-child img {
  width:min(108px,90%)!important;
  height:min(108px,90%)!important;
}

/* Match the Pages next-step composition without changing the Pages section. */
body.product-main #main section.review-paths.wrap.pp-next-step-match {
  display:grid!important;
  place-items:center!important;
  grid-template-columns:1fr!important;
  width:min(1280px,calc(100% - 48px))!important;
  max-width:1280px!important;
  min-height:760px!important;
  margin:82px auto!important;
  padding:20px!important;
  border:0!important;
  border-radius:34px!important;
  background:#dcf6ff url('/hp-assets/remediation/general/BG 37.webp') center/cover no-repeat!important;
  text-align:center!important;
  box-shadow:none!important;
}
body.product-main[data-product=campaigns] #main section.review-paths.wrap.pp-next-step-match {
  background:#ffebe0 url('/hp-assets/remediation/general/BG 38.webp') center/cover no-repeat!important;
}
body.product-main[data-product=socials] #main section.review-paths.wrap.pp-next-step-match {
  background:#dff4ff url('/hp-assets/remediation/general/BG 35.webp') center/cover no-repeat!important;
}
body.product-main #main section.review-paths.wrap.pp-next-step-match>.suite-kicker {display:none!important}
body.product-main #main .pp-next-step-panel {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:min(870px,100%);
  min-height:560px;
  padding:90px clamp(36px,5vw,64px) 72px;
  border-radius:30px;
  background:#fff;
  box-shadow:0 16px 55px rgba(20,26,64,.07);
}
body.product-main #main .pp-next-step-dots {
  position:absolute;
  top:28px;
  left:28px;
  display:flex;
  gap:8px;
}
body.product-main #main .pp-next-step-dots span {width:12px;height:12px;border-radius:50%;background:#ff4550}
body.product-main #main .pp-next-step-dots span:nth-child(2) {background:#ffbc15}
body.product-main #main .pp-next-step-dots span:nth-child(3) {background:#27c76f}
body.product-main #main .pp-next-step-panel h2 {
  grid-column:auto!important;
  grid-row:auto!important;
  max-width:none!important;
  margin:0 auto 54px!important;
  color:#0a0a0a!important;
  font-size:clamp(48px,4.05vw,58px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  letter-spacing:-.045em!important;
  text-align:center!important;
}
body.product-main #main .pp-next-step-panel>.review-related {
  display:grid!important;
  grid-template-columns:repeat(2,max-content)!important;
  justify-content:center!important;
  justify-self:center!important;
  width:100%!important;
  max-width:100%!important;
  gap:16px!important;
  margin:0 auto!important;
}
body.product-main #main .pp-next-step-panel>.review-related>a {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:center!important;
  grid-column:auto!important;
  width:max-content!important;
  height:auto!important;
  min-height:66px!important;
  padding:16px 24px!important;
  border:0!important;
  border-radius:999px!important;
  background:#f5f5f7!important;
  color:#001226!important;
  box-shadow:none!important;
  font-size:18px!important;
  font-weight:500!important;
  letter-spacing:-.03em!important;
}
body.product-main #main .pp-next-step-panel>.review-related>a:last-child {
  grid-column:1/-1!important;
  justify-self:center!important;
}
body.product-main #main .pp-next-step-panel>.review-related>a .suite-icon {display:none!important}
body.product-main #main .pp-next-step-panel>.review-related>a .pp-path-icon {
  display:block!important;
  flex:none!important;
  width:23px!important;
  height:23px!important;
  stroke:#149dff!important;
  color:#149dff!important;
  fill:none!important;
}
body.product-main #main .pp-next-step-panel>.review-related>a:focus-visible {outline:3px solid #149dff!important;outline-offset:4px!important}

/* Campaigns canvas dots, made from solid SVG circles. */
body.product-main[data-product=campaigns] #main .product-hero {
  background:#fff url('/hp-assets/campaigns-dot-grid.svg') left top/24px 24px repeat!important;
}

/* Socials contrast and compact mobile disclosures. */
body.product-main[data-product=socials] #main .pp-rhythm-heading h2 {color:#001226!important}
body.product-main[data-product=socials] #main .pp-rhythm-heading p {color:#34465c!important}
body.product-main[data-product=socials] #main .pp-social-mobile-capabilities {display:none}

/* Keep the two demo cards separate over a transparent, blurred backdrop. */
html body.home-redesign dialog.cf-dialog,
html body.product-main dialog.cf-dialog {
  width:min(80vw,1320px)!important;
  max-width:none!important;
  height:min(84dvh,900px)!important;
  max-height:none!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body dialog.cf-dialog::backdrop {
  background:none!important;
  background-color:transparent!important;
  opacity:1!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
body .cf-dialog .cf-editor-body {
  display:grid!important;
  grid-template-columns:minmax(285px,31fr) minmax(0,69fr)!important;
  gap:8px!important;
  height:100%!important;
  padding:0!important;
  background:transparent!important;
}
body .cf-dialog .cf-chat,body .cf-dialog .cf-preview {
  min-width:0!important;
  height:100%!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(0,18,38,.15)!important;
  overflow:hidden!important;
}
body .cf-dialog .cf-chat-head,body .cf-dialog .cf-preview-toolbar {
  min-height:64px!important;
  padding:12px 18px!important;
}
body .cf-dialog .cf-editor-title b {font-size:18px!important}
body .cf-dialog .cf-mini-mark,body .cf-dialog .cf-mini-mark img {width:26px!important;height:26px!important}
body .cf-dialog .cf-chat-head>[data-new] {white-space:nowrap!important;padding:8px 10px!important}
body .cf-dialog .cf-preview-toolbar>span {font-size:18px!important}
body .cf-dialog .cf-thread {padding:24px 18px 16px!important}
body .cf-dialog .cf-message {
  max-width:90%!important;
  padding:8px 12px!important;
  font-size:14px!important;
  line-height:1.45!important;
}
body .cf-dialog .cf-message.assistant {padding-left:8px!important}
body .cf-dialog .cf-composer textarea {font-size:14px!important}
body .cf-dialog .cf-suggestions button {font-size:14px!important}
body .cf-dialog .cf-preview-scroll {background:#f5f6f9!important}
body .cf-dialog .pp-preview-site {background:#f5f6f9!important}
body .cf-dialog .pp-preview-nav {min-height:72px!important;padding:14px 24px!important}
body .cf-dialog .pp-preview-nav>img {height:18px!important}
body .cf-dialog .pp-preview-hero {padding:46px 22px 58px!important}
body .cf-dialog .pp-preview-hero h1 {font-size:clamp(38px,4.3vw,60px)!important}
body .cf-dialog .pp-preview-hero>p {max-width:560px!important;margin:16px auto 28px!important;font-size:15px!important}
body .cf-dialog .pp-preview-prompt {width:min(620px,100%)!important;min-height:120px!important;padding:16px!important;font-size:15px!important}
body .cf-dialog .pp-preview-prompt>div {margin-top:26px!important}
body .cf-dialog .pp-preview-channels span {font-size:14px!important}

@media(max-width:800px) {
  body.home-redesign #main .m-bento-grid .m-audience-card:nth-child(n) {height:560px!important;min-height:560px!important}
  body.product-main #main section.review-paths.wrap.pp-next-step-match {min-height:0!important;margin:58px auto!important;padding:24px!important;border-radius:28px!important}
  body.product-main #main .pp-next-step-panel {min-height:0;padding:74px 24px 58px;border-radius:24px}
  body.product-main #main .pp-next-step-panel h2 {font-size:clamp(38px,9.8vw,52px)!important;margin-bottom:34px!important}
  body.product-main #main .pp-next-step-panel>.review-related {grid-template-columns:1fr!important;gap:12px!important}
  body.product-main #main .pp-next-step-panel>.review-related>a,
  body.product-main #main .pp-next-step-panel>.review-related>a:last-child {
    grid-column:1!important;
    justify-self:center!important;
    width:100%!important;
    min-height:58px!important;
    padding:12px!important;
    gap:8px!important;
    font-size:16px!important;
  }
  body.product-main[data-product=socials] #main .capability-explorer {display:none!important}
  body.product-main[data-product=socials] #main .pp-social-mobile-capabilities {display:grid!important;gap:12px}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability {
    border:0;
    border-radius:24px;
    background:#f4f6f9;
    overflow:hidden;
  }
  body.product-main[data-product=socials] #main .pp-social-mobile-capability summary {
    display:flex;
    align-items:center;
    gap:14px;
    min-height:74px;
    padding:14px 18px;
    color:#001226;
    font-size:18px;
    font-weight:700;
    line-height:1.25;
    list-style:none;
    cursor:pointer;
  }
  body.product-main[data-product=socials] #main .pp-social-mobile-capability summary::-webkit-details-marker {display:none}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability summary svg {
    flex:none;
    width:42px;
    height:42px;
    padding:10px;
    border-radius:50%;
    background:#fff;
    color:#149dff;
    fill:none;
    stroke:currentColor;
  }
  body.product-main[data-product=socials] #main .pp-social-mobile-capability summary::after {
    content:'+';
    margin-left:auto;
    color:#627084;
    font-size:26px;
    font-weight:400;
  }
  body.product-main[data-product=socials] #main .pp-social-mobile-capability[open] summary::after {content:'−'}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content {padding:0 16px 16px}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content .capability-description {padding:4px 8px 22px!important}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content .capability-description h3 {font-size:28px!important}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content .capability-description p {font-size:17px!important}
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content .studio-art {
    box-sizing:border-box;
    width:100%!important;
    height:300px!important;
    margin:0!important;
    border-radius:18px!important;
    background:#d8eaff!important;
    overflow:hidden!important;
  }
  body.product-main[data-product=socials] #main .pp-social-mobile-capability-content .studio-canvas {min-height:280px!important}
  body .cf-dialog {width:calc(100vw - 20px)!important;height:calc(100dvh - 24px)!important;overflow:hidden!important;border-radius:20px!important}
  body .cf-dialog .cf-editor-body {display:flex!important;gap:0!important}
  body .cf-dialog .cf-chat,body .cf-dialog .cf-preview {width:100%!important;border-radius:20px!important}
  body .cf-dialog .cf-preview-toolbar>span {font-size:16px!important}
  body .cf-dialog .pp-preview-hero h1 {font-size:clamp(34px,9vw,46px)!important}
  body .cf-dialog .pp-preview-hero>p {font-size:14px!important}
}
