.support-launcher,
.builder-scroll-support > .support-link,
.rail-help[data-support-chat] {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--white, var(--color-surface));
  color: var(--ink, var(--color-ink));
  box-shadow: 0 3px 14px #20211e26;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.support-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 10;
}
.support-launcher,
.builder-scroll-support > .support-link {
  gap: 9px;
  min-height: 48px;
  padding: 6px 15px 6px 7px;
  font-size: .875rem;
}
.rail-help[data-support-chat] {
  align-self: flex-start;
  flex-shrink: 0;
  gap: 8px;
  min-height: 48px;
  margin: auto 12px 0;
  padding: 6px 10px 6px 6px;
  font-size: .8125rem;
  white-space: nowrap;
}
.support-launcher-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow, var(--color-accent));
}
.support-launcher-icon svg { width: 18px; height: 18px; }
.support-launcher:hover,
.builder-scroll-support > .support-link:hover,
.rail-help[data-support-chat]:hover { text-decoration: underline; text-underline-offset: 3px; }
body:has(.ad-choice:not([hidden])) .support-launcher,body:has(#signup[open]) .support-launcher{visibility:hidden}
.support-link{font-size:13px;text-underline-offset:3px}
/* Short panes fill their scroll area. In longer panes the pill follows the content. */
.builder-scroll-body,
.style-controls:has(> .builder-scroll-support) {
  display: flex;
  flex-direction: column;
}
.builder-scroll-body { min-height: 100%; }
.style-controls:has(> .builder-scroll-support) > * { flex-shrink: 0; }
.builder-scroll-support {
  display: flex;
  justify-content: center;
  margin-block-start: auto;
  padding: 4px 16px 20px;
}
.builder-scroll-support > .support-link { margin: 0; }
.support-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(460px,100%);height:100%;height:100dvh;max-width:100%;max-height:100%;padding:0;border:0;background:#fffef9;color:#252822;font-family:inherit;font-size:16px;line-height:1.5;box-shadow:-8px 0 32px #1113}
.support-panel[open]{display:flex;flex-direction:column}
.support-panel::backdrop{background:#171b1966}
.support-panel>header{display:flex;justify-content:flex-end;padding:0 8px;border-bottom:1px solid #d9dcd3;flex-shrink:0}
.support-panel button{color:inherit;background:transparent;border:1px solid currentColor;padding:10px 12px;font:inherit;font-size:13px;cursor:pointer;min-height:44px}
.support-panel .support-close{display:grid;place-items:center;width:44px;padding:0;border:0;border-radius:50%}
.support-close svg{display:block;width:20px;height:20px}
.support-panel .support-close:hover{background:#f5f3ec}
.support-panel a{color:inherit;text-underline-offset:3px}
.support-panel :is(button,a):focus-visible,.support-launcher:focus-visible,.support-link:focus-visible{outline:3px solid #596e3e;outline-offset:3px}
.support-panel .support-close:focus-visible{outline-offset:-4px}
.support-content{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}
.support-status{margin:16px 16px 0;font-size:14px}
.support-status:empty{position:absolute;margin:0}
.support-loading-icon { display: none; }
.support-panel[data-loading] .support-content {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.support-panel[data-loading] .support-loading-icon {
  display: grid;
  width: 56px;
  height: 56px;
}
.support-loading-icon svg { width: 28px; height: 28px; }
.support-panel[data-loading] .support-status {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}
@media (prefers-reduced-motion: no-preference) {
  .support-panel[data-loading] .support-loading-icon svg path:nth-child(n + 2) {
    animation: support-loading-dot 1.2s ease-in-out infinite;
  }
  .support-panel[data-loading] .support-loading-icon svg path:nth-child(3) { animation-delay: .15s; }
  .support-panel[data-loading] .support-loading-icon svg path:nth-child(4) { animation-delay: .3s; }
}
@keyframes support-loading-dot {
  0%, 60%, 100% { opacity: .35; }
  30% { opacity: 1; }
}
.support-email{margin:0 16px 16px;font-size:13px;flex-shrink:0}
.support-retry{align-self:flex-start;margin-inline:16px}
.support-frame{width:100%;flex:1;min-height:0;border:0;order:-1}
.support-panel[data-loading] .support-frame{position:absolute;inset:0;visibility:hidden;width:100%;height:100%}
@media (max-width:600px), (pointer:coarse) and (max-height:600px) {
  html:has(.support-panel[open]),
  body:has(.support-panel[open]) {
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* Safari can show the page through its translucent keyboard and toolbar. */
  body:has(> .support-panel[open]) > :not(.support-panel) { opacity: 0; }
  .support-panel {
    inset: var(--support-viewport-top, 0px) 0 auto;
    width: 100%;
    height: var(--support-viewport-height, 100dvh);
    max-height: none;
    box-shadow: none;
    overflow: hidden;
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .support-panel > header { padding-top: env(safe-area-inset-top); }
  .support-panel::backdrop { background: #fffef9; }
  .support-content { overflow: auto; overscroll-behavior: contain; }
}
@media (max-width:600px) {
  .support-launcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
