/* Gate 14 — HyperPulse support assistant widget. Theme-aware via the
   site's own CSS variables (defined by the page shell). */
#hp-support-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 900;
  background: var(--green, #2ea043); color: #06130b; border: 0;
  border-radius: 999px; padding: 12px 20px; font-weight: 700;
  font-size: 15px; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
#hp-support-panel {
  position: fixed; right: 16px; bottom: 72px; z-index: 901;
  width: min(92vw, 380px); height: min(70vh, 560px);
  display: flex; flex-direction: column;
  background: var(--panel, #161b22); color: var(--text, #e6edf3);
  border: 1px solid var(--line, #30363d); border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0,0,0,.45); overflow: hidden;
}
#hp-support-panel[hidden] { display: none; }
.hps-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line, #30363d);
}
.hps-sub { font-size: 12px; color: var(--muted, #8b949e); }
#hp-support-close {
  background: none; border: 0; color: var(--muted, #8b949e);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px;
}
#hp-support-msgs {
  flex: 1; overflow-y: auto; padding: 12px; display: flex;
  flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45;
}
.hps-msg {
  max-width: 88%; padding: 9px 12px; border-radius: 12px;
  background: var(--panel2, #21262d); word-break: break-word;
}
.hps-msg a { color: var(--green, #3fb950); }
.hps-user { align-self: flex-end; background: var(--green, #2ea043); color: #06130b; }
.hps-bot { align-self: flex-start; }
.hps-actions { padding: 0 12px 8px; }
#hp-support-human {
  background: none; border: 1px solid var(--line, #30363d);
  color: var(--muted, #8b949e); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
#hp-support-form {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--line, #30363d);
}
#hp-support-input {
  flex: 1; min-width: 0; padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--line, #30363d);
  background: var(--panel2, #21262d); color: var(--text, #e6edf3);
  font-size: 14px;
}
#hp-support-form button {
  background: var(--green, #2ea043); color: #06130b; border: 0;
  border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer;
}
