.help-launcher,
.help-panel {
  --one-blue: #4284f3;
  --blue-glow: #6aa0ff;
  --deep-core: #2a3f54;
  --popover: #fff;
  --popover-foreground: #2a3f54;
  --primary: var(--one-blue);
  --muted: #eef2f6;
  --border: rgba(42, 63, 84, 0.12);
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
}

.help-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--deep-core);
  color: #fff;
  box-shadow: 0 8px 28px rgba(42, 63, 84, 0.18);
  font-weight: 600;
  cursor: pointer;
}

.help-launcher svg { color: var(--blue-glow); }
.help-launcher:hover { background: #203246; }

.help-panel {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) auto;
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  margin: 0;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 20px 64px rgba(42, 63, 84, 0.18);
}

.help-panel h2 {
  margin: 4px 28px 12px 0;
  color: inherit;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.help-panel p { margin: 0; }
.help-intro { padding-right: 12px; }

.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.help-close:hover { background: var(--muted); }

.help-email {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  padding: 16px 14px;
  border: 1px solid color-mix(in srgb, var(--one-blue) 18%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--one-blue) 7%, transparent);
  color: var(--one-blue);
  font-weight: 600;
  text-decoration: none;
}

.help-email span { overflow-wrap: anywhere; }
.help-email svg { flex-shrink: 0; }
.help-email svg:last-child { margin-left: auto; }
.help-email:hover { background: color-mix(in srgb, var(--one-blue) 13%, transparent); }
.help-report p + p { margin-top: 12px; }

.help-details {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.help-details > div { display: flex; gap: 12px; }
.help-details svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--primary); }
.help-details .lucide-timer { flex-basis: 24px; width: 24px; height: 24px; margin: -1px -2px 0; }

.help-launcher:focus-visible,
.help-panel :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .help-launcher { right: max(16px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); }
  .help-panel {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(148px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 172px - env(safe-area-inset-bottom));
    padding: 24px 20px;
  }
}
