/* Feedback pill + panel (report.js) */
.fb-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-family: "Londrina Solid", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(15, 13, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.fb-pill:hover, .fb-pill:focus-visible { background: rgba(30, 26, 46, 0.85); border-color: #ffd93d; outline: none; }
.fb-pill:active { transform: translateY(1px); }
.fb-pill.is-busy { opacity: 0.75; cursor: progress; }
.fb-pill-ico { font-size: 1.05em; line-height: 1; color: #ffd93d; }

.fb-wrap {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 6, 16, 0.6);
  font-family: "Londrina Solid", system-ui, sans-serif;
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
}
.fb-wrap[hidden] { display: none; }
.fb-panel, .fb-done {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  background: #7ff3f5;
  border: 6px solid #46406e;
  color: #0c3b3f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.fb-title { margin: 0 34px 14px 0; font-weight: 900; font-size: 32px; letter-spacing: 0.05em; text-transform: uppercase; }
.fb-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(12, 59, 63, 0.12); color: #0c3b3f;
  font-size: 18px; cursor: pointer;
}
.fb-x:hover { background: rgba(12, 59, 63, 0.22); }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fb-kind {
  padding: 8px 14px; border-radius: 999px; border: 2px solid #46406e; background: rgba(255, 255, 255, 0.7);
  color: #0c3b3f; font: inherit; font-size: 17px; letter-spacing: 0.05em; cursor: pointer;
}
.fb-kind.is-on { background: #46406e; color: #fff; }
.fb-msg {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 2px solid #46406e;
  background: #fff; color: #14101f; font: 16px/1.4 system-ui, sans-serif; resize: vertical; min-height: 96px;
}
.fb-msg:focus { outline: 3px solid #ffd93d; outline-offset: 1px; }
.fb-shot { margin-top: 12px; }
.fb-shot-img {
  display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px;
  background: #0f0d19; border: 2px solid #46406e;
}
.fb-shot-opt { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 17px; letter-spacing: 0.05em; cursor: pointer; }
.fb-shot-opt input { width: 20px; height: 20px; accent-color: #46406e; }
.fb-shot-none { display: none; margin: 0; font: 14px/1.4 system-ui, sans-serif; opacity: 0.8; }
.fb-wrap.no-shot .fb-shot-img, .fb-wrap.no-shot .fb-shot-opt { display: none; }
.fb-wrap.no-shot .fb-shot-none { display: block; }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fb-row button {
  padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 20px; letter-spacing: 0.06em; cursor: pointer;
}
.fb-cancel { border: 2px solid #46406e; background: transparent; color: #0c3b3f; }
.fb-send { border: 0; background: #62ba34; color: #fff; box-shadow: 0 3px 0 #3f8a1d; }
.fb-send:disabled { background: #9bb6a0; box-shadow: none; cursor: default; }
.fb-err { margin: 10px 0 0; min-height: 1em; font: 14px/1.4 system-ui, sans-serif; color: #a3122a; }
.fb-done { display: none; text-align: center; padding: 40px 24px; }
.fb-done-ico {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #62ba34; color: #fff;
  display: grid; place-items: center; font-size: 36px;
}
.fb-done-txt { font-size: 28px; font-weight: 900; letter-spacing: 0.05em; }
.fb-wrap.is-done .fb-panel { display: none; }
.fb-wrap.is-done .fb-done { display: block; }

@media (max-width: 700px), (max-height: 520px) {
  .fb-pill { padding: 6px 12px; }
  .fb-pill-txt { font-size: 15px; }
  .fb-panel { padding: 18px; }
  .fb-title { font-size: 24px; }
  .fb-shot-img { max-height: 120px; }
}

/* Phones (short or narrow screens): a compact top bar, so the pills stay
   clear of the console screen's titles and don't crowd the view */
@media (max-height: 560px), (max-width: 760px) {
  .hub-hud { padding-top: max(8px, env(safe-area-inset-top)); }
  .hub-title { font-size: 15px; padding: 4px 10px; gap: 6px; }
  .hub-beta { font-size: 9px; padding: 3px 5px 2px; }
  .fb-group { gap: 6px; }
  .fb-pill { padding: 5px 10px; gap: 5px; font-size: 13px; }
  .fb-pill-txt { font-size: 13px; }
  .hub-back { padding: 5px 12px; font-size: 14px; }
}
