.public-help-launcher,
.public-help-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) auto;
}
.public-help-launcher {
  z-index: 25;
  bottom: max(var(--public-help-offset, 1rem), calc(1rem + env(safe-area-inset-bottom)));
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  padding: .8rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #006c71;
  color: #fff;
  box-shadow: 0 4px 24px #183a4055;
}
.public-help-launcher svg,
.public-help-link svg { width: 1.3rem; height: 1.3rem; }
.public-help-launcher:hover { background: #005559; }
body:has(.public-help-launcher:not([hidden])) .signup-dock { right: 4.85rem; }
.public-help-dialog {
  margin: 0;
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom));
  overflow: auto;
  padding: 1.15rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 12px 40px #183a4044;
  font: 1rem/1.5 system-ui, sans-serif;
}
.public-help-dialog::backdrop { background: #183a4040; }
.public-help-dialog h2 { margin: 0; font-size: 1.35rem; }
.public-help-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.public-help-dialog p { margin: .55rem 0 .85rem; }
.public-help-dialog button,
.public-help-link {
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: .6rem;
  padding: .5rem .75rem;
  background: #fff;
  border: 1px solid #638179;
}
.public-help-dialog button:hover,
.public-help-link:hover { background: #e7f3f1; }
.public-help-dialog button:disabled { cursor: default; opacity: .6; }
.public-help-dialog :is(a, button, input, textarea):focus-visible,
.public-help-launcher:focus-visible { outline: 3px solid #bd2876; outline-offset: 3px; }
.public-help-menu { display: grid; gap: .55rem; margin-top: .75rem; }
.public-help-link { display: block; position: relative; text-align: left; text-decoration: none; font-weight: 700; }
.public-help-link[target="_blank"] { padding-right: 2.5rem; }
.public-help-link svg { position: absolute; inset: .45rem .45rem auto auto; }
.public-help-dialog label { display: block; font-weight: 700; margin: .65rem 0 .2rem; }
.public-help-dialog small { display: block; margin: .4rem 0; color: #445c61; }
.public-help-dialog :is(input, textarea) {
  display: block;
  width: 100%;
  border: 1px solid #638179;
  border-radius: .55rem;
  padding: .5rem;
  color: inherit;
  font: inherit;
}
.public-help-dialog textarea { resize: vertical; }
.public-help-form-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .65rem; }
.public-help-dialog button[type="submit"] { background: #006c71; color: #fff; font-weight: 700; }
.public-help-dialog [data-support-notice] { overflow-wrap: anywhere; }
.public-help-dialog [data-support-notice][data-error="true"] { color: #91214c; font-weight: 700; }
.public-help-dialog [hidden], .public-help-launcher[hidden] { display: none; }
@media (max-width: 650px) {
  body:has(.public-help-launcher:not([hidden])) .signup-dock { right: 4.7rem; }
  body:has(.public-help-launcher:not([hidden])) .signup-dock a { padding-inline: .5rem; font-size: .9rem; }
}
