/* Handle Bar — Feedback Widget */
#hbf-root, #hbf-root * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

#hbf-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #111; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
#hbf-fab:hover { transform: translateY(-1px); }
#hbf-fab .hbf-count {
  background: #e6483a; color: #fff; border-radius: 999px;
  padding: 1px 7px; font-size: 12px; line-height: 18px; min-width: 18px; text-align: center;
}

#hbf-panel {
  position: fixed; right: 18px; bottom: 76px; z-index: 2147483001;
  width: 340px; max-width: calc(100vw - 36px); max-height: 70vh; overflow: auto;
  background: #fff; color: #111; border-radius: 14px; padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30); border: 1px solid rgba(0,0,0,.08);
  display: none;
}
#hbf-panel.hbf-open { display: block; }
#hbf-panel h3 { margin: 0 0 10px; font-size: 15px; }
#hbf-panel label { display: block; font-size: 12px; font-weight: 600; margin: 10px 0 4px; opacity: .75; }
#hbf-panel input[type=text], #hbf-panel textarea {
  width: 100%; border: 1px solid rgba(0,0,0,.18); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #111; background: #fff;
}
#hbf-panel textarea { min-height: 76px; resize: vertical; }
.hbf-row { display: flex; gap: 8px; margin-top: 10px; }
.hbf-btn {
  flex: 1; border: 0; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #111; color: #fff;
}
.hbf-btn.hbf-ghost { background: rgba(0,0,0,.06); color: #111; }
.hbf-btn.hbf-ghost.hbf-active { background: #e6483a; color: #fff; }
.hbf-btn[disabled] { opacity: .5; cursor: not-allowed; }

#hbf-list { margin-top: 14px; border-top: 1px solid rgba(0,0,0,.10); padding-top: 10px; }
.hbf-item { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; }
.hbf-item:last-child { border-bottom: 0; }
.hbf-meta { font-size: 11px; opacity: .6; margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.hbf-badge { border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.hbf-badge.local { background: #f2e6c7; color: #6b5300; }
.hbf-badge.synced { background: #d7f2dd; color: #0a5c23; }
.hbf-badge.failed { background: #f7d7d4; color: #8a1c12; }
.hbf-mini { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 11px; padding: 0; color: inherit; opacity: .8; }

#hbf-pins { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 2147482000; }
.hbf-pin {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: #e6483a; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.35); border: 2px solid #fff;
}
body.hbf-pinning { cursor: crosshair !important; }
