.help-launcher {
 position: fixed;
 z-index: 50;
 right: max(18px, env(safe-area-inset-right));
 bottom: min(calc(100dvh - 52px), max(calc(18px + env(safe-area-inset-bottom)), var(--help-banner-top, 0px)));
 display: inline-flex;
 align-items: center;
 gap: 9px;
 min-height: 44px;
 padding: 0 15px;
 border: 1px solid var(--plum);
 border-radius: 24px;
 background: var(--paper);
 color: var(--plum);
 box-shadow: 0 3px 16px #30272b19;
 font-size: 13px;
 font-weight: 600;
 line-height: 1.25;
 text-decoration: none;
}
.help-launcher:hover { background: var(--rose); }
.store-shell:has(~ .help-launcher) .store-footer { padding-bottom: 72px; }
.help-launcher:focus-visible,
.help-dialog button:focus-visible {
 outline: 2px solid var(--plum);
 outline-offset: 3px;
}
.help-envelope {
 position: relative;
 display: inline-block;
 flex: 0 0 auto;
 width: 17px;
 height: 12px;
 border: 1px solid currentColor;
 border-radius: 2px;
 overflow: hidden;
}
.help-envelope::after {
 content: "";
 position: absolute;
 width: 10px;
 height: 10px;
 top: -6px;
 left: 2px;
 border: solid currentColor;
 border-width: 0 1px 1px 0;
 transform: rotate(45deg);
}
.help-dialog {
 position: fixed;
 inset: auto max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) auto;
 margin: 0;
 width: 370px;
 max-width: calc(100vw - 36px);
 max-height: calc(100dvh - 36px - env(safe-area-inset-bottom));
 padding: 24px;
 box-sizing: border-box;
 color: var(--ink);
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 12px;
 box-shadow: 0 14px 48px #30272b35;
 overscroll-behavior: contain;
}
.help-dialog:not([open]) { display: none; }
body:has(.help-dialog[open]) { overflow: hidden; }
.help-dialog::backdrop { background: #30272b36; }
.help-heading {
 display: grid;
 grid-template-columns: auto 1fr auto;
 align-items: center;
 gap: 10px;
}
.help-heading h2, .help-dialog .contact-success h3 {
 margin: 0;
 font: 500 27px/1.15 var(--serif);
 letter-spacing: -.02em;
}
.help-icon {
 display: grid;
 place-items: center;
 width: 34px;
 height: 34px;
 border-radius: 50%;
 color: var(--paper);
 background: var(--plum);
}
.help-close {
 width: 44px;
 height: 44px;
 padding: 0;
 border: 0;
 border-radius: 50%;
 color: var(--plum);
 background: transparent;
 font: 26px/1 var(--sans);
}
.help-close:hover { background: var(--rose-light); }
.help-dialog > p {
 margin: 4px 0 18px;
 color: var(--muted);
 font-size: 13px;
}
.help-dialog .contact-field-row { display: block; }
.help-dialog .contact-field { margin-bottom: 13px; }
.help-dialog .contact-field input,
.help-dialog .contact-field textarea { font-size: 16px; }
.help-dialog .contact-field textarea {
 min-height: 82px;
 margin-top: 5px;
}
.help-dialog .contact-privacy { margin-bottom: 12px; }
.help-dialog .contact-success {
 min-height: 0;
 padding: 12px 0 0;
}
.help-dialog .contact-reference { margin: 12px 0 0; }
.help-dialog[open] { animation: help-enter 160ms ease-out; }
@keyframes help-enter {
 from { opacity: 0; transform: translateY(5px); }
 to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
 .help-launcher { right: max(12px, env(safe-area-inset-right)); }
 .help-dialog {
  inset: auto max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  width: auto;
  max-width: none;
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  padding: 18px;
 }
}
@media (prefers-reduced-motion: reduce) {
 .help-dialog[open] { animation: none; }
}
