/* GeneGer AI Homepage Help Chat — isolated styles; no changes to existing site CSS. */
:root { --gg-help-deep: #072e33; --gg-help-teal: #168c82; --gg-help-border: #d9e8e5; }
.gg-help-launch {
  position: fixed; z-index: 10000; bottom: 22px; right: 22px;
  min-height: 58px; display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 21px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: linear-gradient(135deg,#087a73,#093e42); color: white;
  font: 700 14px/1.25 system-ui,"Segoe UI",sans-serif;
  box-shadow: 0 12px 40px rgba(3,45,50,.28); cursor: pointer;
}
.gg-help-launch:hover { background: linear-gradient(135deg,#11988a,#08484b); }
.gg-help-launch:focus-visible, .gg-help-dialog button:focus-visible,
.gg-help-dialog textarea:focus-visible, .gg-help-dialog a:focus-visible {
  outline: 3px solid #37cfc0; outline-offset: 3px;
}
.gg-help-launch-icon { font-size: 21px; font-weight: 600; }
.gg-help-dialog {
  position: fixed; z-index: 10001; right: 22px; bottom: 93px; width: min(405px,calc(100vw - 32px));
  height: min(605px,calc(100dvh - 118px)); display: flex; flex-direction: column;
  background: #fff; color: #162e30; border: 1px solid var(--gg-help-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 25px 90px rgba(0,28,32,.29);
  font: 14px/1.5 system-ui,"Segoe UI",sans-serif;
}
.gg-help-dialog[hidden],.gg-help-launch[hidden] { display: none !important; }
.gg-help-head { padding: 17px 19px; display: flex; align-items: center; gap: 12px;
  color: white; background: linear-gradient(115deg,#063c40,#0c7772); }
.gg-help-avatar { width: 39px; height: 39px; flex: none; display: grid; place-items: center;
  border-radius: 13px; background: rgba(255,255,255,.17); font-size: 21px; }
.gg-help-heading { flex: 1; min-width: 0; }
.gg-help-heading strong { display: block; font-size: 15px; }
.gg-help-heading small { display: block; color: #c0e9df; margin-top: 2px; font-size: 11px; }
.gg-help-close { border: 0; color: white; background: rgba(255,255,255,.12);
  border-radius: 9px; cursor: pointer; width: 34px; height: 34px; font-size: 22px; }
.gg-help-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain;
  background: #f7faf9; padding: 19px 14px; display: flex; flex-direction: column; gap: 13px; }
.gg-help-message { max-width: 90%; align-self: flex-start; padding: 11px 13px;
  border-radius: 13px 13px 13px 3px; background: white; border: 1px solid #e0eae8;
  color: #18393a; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 2px 9px rgba(6,59,57,.035); }
.gg-help-message[data-role="user"] { align-self: flex-end; background: #d9f6ed; border-color: #b9e7db;
  border-radius: 13px 13px 3px 13px; }
.gg-help-message[data-role="status"] { color: #577572; background: transparent; border: 0; box-shadow: none; }
.gg-help-suggestions { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 7px;
  border-top: 1px solid #edf2f1; }
.gg-help-suggestions button { border: 1px solid #cddfda; background: white; border-radius: 999px;
  color: #136b65; font-size: 11px; padding: 8px 10px; cursor: pointer; }
.gg-help-suggestions button:hover { background: #e9f8f4; }
.gg-help-form { border-top: 1px solid #e0e9e7; padding: 12px; display: flex; align-items: end; gap: 9px; }
.gg-help-input { flex: 1; min-width: 0; resize: none; max-height: 105px; min-height: 44px;
  padding: 11px 12px; border: 1px solid #d3e1de; border-radius: 10px;
  font: inherit; color: #163637; background: white; }
.gg-help-send { min-height: 44px; border: none; border-radius: 10px; background: #0d8076;
  color: white; font-weight: 700; padding: 0 16px; cursor: pointer; }
.gg-help-send:disabled { cursor: wait; opacity: .6; }
.gg-help-disclaimer { padding: 0 14px 12px; color: #6b7b7c; background: white;
  font-size: 10px; line-height: 1.45; }
.gg-help-disclaimer a { color: #086c66; font-weight: 700; }
@media (max-width: 520px) {
  .gg-help-launch { right: 14px; bottom: 14px; }
  .gg-help-dialog { width: calc(100vw - 20px); right: 10px; bottom: 82px;
    height: min(650px, calc(100dvh - 95px)); }
}
@media (prefers-reduced-motion:reduce) { .gg-help-launch,.gg-help-dialog { transition: none; } }
