/* HFTbot — shared widget (GT AI Agent chat + Report-a-Bug). */
.hb-launcher{position:fixed;right:18px;bottom:18px;z-index:90;display:flex;flex-direction:column;gap:10px;align-items:flex-end;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",ui-sans-serif,system-ui,sans-serif}
.hb-fab{
  display:inline-flex;align-items:center;gap:8px;
  background:#00d97e;color:#000;padding:11px 18px 11px 14px;border-radius:999px;
  font-size:13px;font-weight:600;letter-spacing:-.005em;cursor:pointer;border:none;
  box-shadow:0 12px 32px -8px rgba(0,217,126,.45),0 0 0 1px rgba(0,0,0,.05);
  transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s;
}
.hb-fab:hover{transform:translateY(-2px);box-shadow:0 16px 40px -8px rgba(0,217,126,.55),0 0 0 1px rgba(0,0,0,.05)}
.hb-fab:active{transform:scale(.97)}
.hb-fab svg{width:18px;height:18px}
.hb-fab.secondary{background:#15151a;color:#e8e8ea;box-shadow:0 8px 24px -6px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06)}
.hb-fab.secondary:hover{background:#1c1c24}

/* Panel — chat + bug shared shell */
.hb-panel{
  position:fixed;right:18px;bottom:18px;z-index:100;
  width:min(380px,calc(100vw - 36px));
  max-height:min(620px,calc(100vh - 80px));
  background:#111114;border:1px solid #23232a;border-radius:18px;
  box-shadow:0 30px 80px -10px rgba(0,0,0,.7),0 0 0 1px rgba(0,217,126,.08);
  display:none;flex-direction:column;overflow:hidden;
  color:#f0f0f2;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",ui-sans-serif,system-ui,sans-serif;
  animation:hbSlide .25s cubic-bezier(.2,.7,.2,1);
}
.hb-panel.open{display:flex}
@keyframes hbSlide{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}

.hb-head{padding:16px 18px;border-bottom:1px solid #1a1a20;display:flex;align-items:center;gap:12px}
.hb-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#00d97e 0%,#00b369 100%);display:grid;place-items:center;color:#000;font-weight:700;font-size:13px;letter-spacing:-.04em;flex-shrink:0}
.hb-title{display:flex;flex-direction:column}
.hb-title b{font-size:14px;font-weight:600;letter-spacing:-.01em}
.hb-title span{font-size:11px;color:#6e6e76;display:flex;align-items:center;gap:5px}
.hb-title span::before{content:"";width:6px;height:6px;border-radius:50%;background:#00d97e;box-shadow:0 0 6px #00d97e;display:inline-block}
.hb-close{margin-left:auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#6e6e76;transition:background .15s,color .15s;background:none;border:none}
.hb-close:hover{background:#15151a;color:#f0f0f2}
.hb-close svg{width:14px;height:14px}

/* Chat body */
.hb-body{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.hb-body::-webkit-scrollbar{width:6px}
.hb-body::-webkit-scrollbar-thumb{background:#26262e;border-radius:3px}
.hb-msg{max-width:84%;padding:11px 14px;border-radius:14px;font-size:13.5px;line-height:1.5;letter-spacing:-.005em;word-wrap:break-word;animation:hbFade .25s ease}
@keyframes hbFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.hb-msg.bot{background:#15151a;border:1px solid #1a1a20;color:#f0f0f2;align-self:flex-start;border-bottom-left-radius:4px}
.hb-msg.user{background:#00d97e;color:#000;align-self:flex-end;border-bottom-right-radius:4px;font-weight:500}
.hb-typing{display:inline-flex;gap:4px;padding:11px 14px;background:#15151a;border:1px solid #1a1a20;border-radius:14px;border-bottom-left-radius:4px;align-self:flex-start}
.hb-typing span{width:6px;height:6px;border-radius:50%;background:#6e6e76;animation:hbDot 1.2s infinite}
.hb-typing span:nth-child(2){animation-delay:.15s}
.hb-typing span:nth-child(3){animation-delay:.3s}
@keyframes hbDot{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}

/* Suggestion chips */
.hb-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 18px 12px}
.hb-chip{background:transparent;border:1px solid #23232a;color:#a0a0a8;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s ease}
.hb-chip:hover{border-color:#00d97e88;color:#00d97e;background:rgba(0,217,126,.06)}

/* Input */
.hb-input-row{padding:14px 18px;border-top:1px solid #1a1a20;display:flex;gap:8px;align-items:flex-end}
.hb-input{flex:1;background:#15151a;border:1px solid #23232a;border-radius:14px;padding:11px 14px;color:#f0f0f2;font-size:13.5px;font-family:inherit;outline:none;resize:none;max-height:80px;line-height:1.4;transition:border-color .15s}
.hb-input:focus{border-color:rgba(0,217,126,.4)}
.hb-input::placeholder{color:#6e6e76}
.hb-send{background:#00d97e;color:#000;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;display:grid;place-items:center;transition:transform .15s,background .15s;flex-shrink:0}
.hb-send:hover{background:#00e889}
.hb-send:active{transform:scale(.93)}
.hb-send:disabled{opacity:.4;cursor:not-allowed}
.hb-send svg{width:14px;height:14px}

.hb-foot{padding:8px 18px 12px;font-size:10.5px;color:#6e6e76;text-align:center;letter-spacing:.02em}

/* Bug report form */
.hb-form{padding:18px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.hb-field label{display:block;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#6e6e76;font-weight:600;margin-bottom:6px}
.hb-field input,.hb-field textarea{width:100%;background:#15151a;border:1px solid #23232a;border-radius:12px;padding:11px 14px;color:#f0f0f2;font-size:13.5px;font-family:inherit;outline:none;transition:border-color .15s}
.hb-field input:focus,.hb-field textarea:focus{border-color:rgba(0,217,126,.4)}
.hb-field textarea{min-height:90px;resize:vertical;line-height:1.45}
.hb-submit{background:#00d97e;color:#000;border:none;border-radius:999px;padding:12px 22px;font-weight:600;font-size:14px;cursor:pointer;transition:transform .15s,background .15s;align-self:flex-end}
.hb-submit:hover{background:#00e889}
.hb-submit:active{transform:scale(.97)}
.hb-submit:disabled{opacity:.5;cursor:not-allowed}
.hb-result{font-size:13px;padding:10px 14px;border-radius:10px;line-height:1.5}
.hb-result.ok{color:#00d97e;background:rgba(0,217,126,.08);border:1px solid rgba(0,217,126,.3)}
.hb-result.err{color:#ff5c5c;background:rgba(255,92,92,.08);border:1px solid rgba(255,92,92,.3)}
.hb-loader{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hbSpin .8s linear infinite;vertical-align:middle;margin-right:6px}
@keyframes hbSpin{to{transform:rotate(360deg)}}
