/* Floating feedback — site + dashboard */

.fb-fab{
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 40;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(92, 30, 43, .55);
  display: grid;
  place-items: center;
}
.fb-fab:hover{background: var(--burgundy-2)}
.fb-fab-ico{width: 22px; height: 22px; display: block}
body.admin .fb-fab{bottom: 22px}
.fb-fab-support{bottom: 74px}
body.admin .fb-fab-support{bottom: 78px}

.fb-dialog{
  width: min(100% - 32px, 420px);
  padding: 0;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  background: #fff;
  color: var(--ink-dark);
  box-shadow: 0 28px 64px -28px rgba(20, 8, 12, .5);
}
.fb-dialog[open]{
  display: flex;
  flex-direction: column;
  max-height: min(80dvh, 520px);
  overflow: hidden;
}
.fb-dialog::backdrop{background: rgba(42, 24, 28, .45)}
.fb-form{
  padding: 18px 18px 16px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.fb-head{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.fb-head h2{
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--burgundy);
  font-weight: 600;
}
body.lang-ur .fb-head h2, body.admin.lang-ur .fb-head h2, body.auth-gate.lang-ur .fb-head h2{
  font-family: var(--ur);
}
.fb-close{
  width: 36px; height: 36px; margin: -6px -6px 0 0;
  border: 0; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 10px;
}
.fb-close:hover{background: rgba(92, 30, 43, .08); color: var(--burgundy)}
.fb-lead{margin: 0 0 14px; color: var(--ink-soft); font-size: 14px}
.fb-topics{
  border: 0; margin: 0 0 12px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.fb-topics legend{padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--burgundy)}
.fb-topics label{display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer}
.fb-alert{
  margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(92, 30, 43, .25); background: #f6e8e6; color: #6b1c1c;
}
.fb-alert.is-ok{color: #1e4d32; background: #e8f3ec; border-color: rgba(46, 110, 70, .3)}
.fb-hp{
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.fb-actions{
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 4px;
}
.fb-inbox-msg{white-space:pre-wrap;max-width:28em;font-size:14px}

@media (max-width: 820px){
  body.admin .fb-fab{
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 14px;
  }
  body.admin .fb-fab-support{
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 14px;
  }
}
