.quick-help {
  --quick-ink: #edfafa;
  --quick-muted: #a9c1c5;
  --quick-cyan: #69e7ee;
  --quick-mint: #b1ff85;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  justify-items: end;
  font-family: inherit;
}

.quick-help *,
.quick-help *::before,
.quick-help *::after {
  box-sizing: border-box;
}

.quick-help button,
.quick-help a {
  font: inherit;
}

.quick-help__launcher {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  min-width: 204px;
  min-height: 62px;
  padding: 9px 12px 9px 10px;
  border: 1px solid rgba(127, 237, 241, 0.34);
  border-radius: 18px;
  color: var(--quick-ink);
  background: #10262d;
  box-shadow:
    0 16px 42px rgba(7, 31, 38, 0.28),
    0 3px 12px rgba(6, 24, 29, 0.18);
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.quick-help__launcher::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(105, 231, 238, 0.28), transparent 38%, rgba(177, 255, 133, 0.18));
  content: "";
  opacity: 0.7;
}

.quick-help__launcher:hover,
.quick-help__launcher:focus-visible,
.quick-help__launcher[aria-expanded="true"] {
  border-color: rgba(177, 255, 133, 0.62);
  background: #153139;
  transform: translateY(-2px);
}

.quick-help__launcher:focus-visible,
.quick-help__close:focus-visible,
.quick-help__question:focus-visible,
.quick-help__answer a:focus-visible,
.quick-help__footer a:focus-visible {
  outline: 3px solid rgba(105, 231, 238, 0.54);
  outline-offset: 3px;
}

.quick-help__signal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(105, 231, 238, 0.32);
  border-radius: 13px;
  color: #0a282e;
  background: var(--quick-cyan);
  box-shadow: 0 5px 14px rgba(57, 208, 216, 0.24);
}

.quick-help__signal svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-help__launcher-copy {
  display: grid;
  gap: 1px;
  justify-items: start;
  padding-inline: 11px 16px;
  line-height: 1.1;
}

.quick-help__launcher-copy strong {
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.quick-help__launcher-copy small {
  color: var(--quick-muted);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-help__launcher-arrow,
.quick-help__question svg,
.quick-help__answer a svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-help__launcher-arrow {
  transition: transform 180ms ease;
}

.quick-help__launcher[aria-expanded="true"] .quick-help__launcher-arrow {
  transform: rotate(180deg);
}

.quick-help__panel {
  width: min(420px, calc(100vw - 40px));
  max-height: min(720px, calc(100svh - 118px));
  margin-bottom: 12px;
  overflow: auto;
  border: 1px solid rgba(159, 234, 237, 0.25);
  border-radius: 24px;
  color: var(--quick-ink);
  background:
    linear-gradient(180deg, rgba(24, 51, 59, 0.98), rgba(12, 32, 39, 0.99)),
    #10262d;
  box-shadow:
    0 30px 80px rgba(6, 27, 34, 0.36),
    0 8px 24px rgba(5, 22, 27, 0.2);
  scrollbar-color: rgba(105, 231, 238, 0.36) transparent;
  scrollbar-width: thin;
  transform-origin: 85% 100%;
  animation: quick-help-enter 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quick-help__panel[hidden] {
  display: none;
}

.quick-help__panel::-webkit-scrollbar {
  width: 8px;
}

.quick-help__panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(105, 231, 238, 0.36);
  background-clip: padding-box;
}

.quick-help__header {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 18px;
  align-items: start;
  padding: 25px 24px 19px;
  border-bottom: 1px solid rgba(187, 237, 239, 0.12);
}

.quick-help__header h2 {
  max-width: 14ch;
  margin: 0 0 7px;
  color: var(--quick-ink);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.quick-help__header p {
  max-width: 31ch;
  margin: 0;
  color: var(--quick-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quick-help__close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(195, 237, 239, 0.17);
  border-radius: 12px;
  color: #d5edef;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.quick-help__close:hover {
  border-color: rgba(105, 231, 238, 0.46);
  color: var(--quick-cyan);
  background: rgba(105, 231, 238, 0.08);
}

.quick-help__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.quick-help__questions {
  padding: 7px 24px 4px;
}

.quick-help__question {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 57px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(186, 230, 232, 0.1);
  border-radius: 0;
  color: #d9edef;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease;
}

.quick-help__question:last-child {
  border-bottom: 0;
}

.quick-help__question:hover,
.quick-help__question[aria-expanded="true"] {
  color: var(--quick-mint);
}

.quick-help__question-copy {
  display: grid;
  gap: 3px;
  transition: transform 160ms ease;
}

.quick-help__question:hover .quick-help__question-copy,
.quick-help__question[aria-expanded="true"] .quick-help__question-copy {
  transform: translateX(5px);
}

.quick-help__question-copy strong {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.25;
}

.quick-help__question-copy small {
  color: #7f9da2;
  font-size: 0.69rem;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: 0.015em;
}

.quick-help__question:hover .quick-help__question-copy small,
.quick-help__question[aria-expanded="true"] .quick-help__question-copy small {
  color: #a7c2c6;
}

.quick-help__question svg {
  justify-self: end;
  color: #729398;
  transition: color 160ms ease, transform 160ms ease;
}

.quick-help__question:hover svg,
.quick-help__question[aria-expanded="true"] svg {
  color: var(--quick-cyan);
  transform: translateX(3px);
}

.quick-help__answer-stage {
  min-height: 116px;
  margin: 7px 18px 0;
  padding: 18px 18px 17px;
  border: 1px solid rgba(105, 231, 238, 0.2);
  border-radius: 17px;
  background: rgba(105, 231, 238, 0.055);
}

.quick-help__answer-stage:not(.has-answer) {
  min-height: 0;
  padding-block: 12px;
}

.quick-help__prompt {
  margin: 0;
  color: #90adb1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.quick-help__answer[hidden],
.quick-help__prompt[hidden] {
  display: none;
}

.quick-help__answer {
  outline: none;
  animation: quick-help-answer 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quick-help__answer p {
  margin: 0 0 15px;
  color: #d7ebed;
  font-size: 0.9rem;
  line-height: 1.58;
}

.quick-help__answer a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--quick-mint);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  text-underline-offset: 4px;
}

.quick-help__answer a:hover {
  text-decoration: underline;
}

.quick-help__answer a svg {
  width: 17px;
  height: 17px;
}

.quick-help__footer {
  display: grid;
  gap: 5px;
  padding: 17px 24px 21px;
}

.quick-help__footer p {
  margin: 0;
  color: #bdd1d4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quick-help__footer a {
  color: var(--quick-cyan);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 4px;
}

.quick-help__footer a:hover {
  text-decoration: underline;
}

.quick-help__footer > span {
  color: #718f94;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

@keyframes quick-help-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes quick-help-answer {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .quick-help {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .quick-help__panel {
    width: min(360px, calc(100vw - 40px));
    max-height: calc(100svh - 96px - env(safe-area-inset-bottom, 0px));
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .quick-help__launcher {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 56px;
    height: 56px;
    min-width: 0;
    min-height: 56px;
    padding: 5px;
    border-radius: 18px;
    touch-action: manipulation;
  }

  .quick-help__launcher-copy,
  .quick-help__launcher-arrow {
    display: none;
  }

  .quick-help__launcher:active {
    background: #153139;
    transform: scale(0.96);
  }

  .quick-help__launcher[aria-expanded="true"] .quick-help__signal {
    background: var(--quick-mint);
  }

  .quick-help__header {
    grid-template-columns: 1fr 44px;
    padding: 21px 20px 16px;
  }

  .quick-help__close {
    width: 44px;
    height: 44px;
  }

  .quick-help__questions {
    padding-inline: 20px;
  }

  .quick-help__answer-stage {
    margin-inline: 14px;
  }

  .quick-help__footer {
    padding: 16px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-help__panel,
  .quick-help__answer {
    animation: none;
  }

  .quick-help__launcher,
  .quick-help__launcher-arrow,
  .quick-help__question,
  .quick-help__question svg {
    transition: none;
  }
}
