/* Shared feedback modal / trigger */
.xh-fb-trigger {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand, #2563eb);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.xh-fb-trigger:hover { text-decoration: underline; }

.xh-fb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}
.xh-fb-backdrop[hidden] { display: none !important; }

.xh-fb-modal {
  width: min(440px, 100%);
  background: #fff;
  color: var(--ink, #0f1b2d);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.2);
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--line, #d7e0ea);
}
.xh-fb-modal h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.xh-fb-hint {
  margin: 0 0 1rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.92rem;
}
.xh-fb-field { margin-bottom: 0.85rem; }
.xh-fb-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.xh-fb-field textarea,
.xh-fb-field input[type="email"] {
  width: 100%;
  border: 1px solid var(--line, #d7e0ea);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.xh-fb-field textarea:focus,
.xh-fb-field input[type="email"]:focus {
  outline: 2px solid var(--brand, #2563eb);
  outline-offset: 1px;
}
.xh-fb-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.xh-fb-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.xh-fb-actions .btn {
  appearance: none;
  border: 1px solid var(--line, #d7e0ea);
  background: #fff;
  color: var(--ink, #0f1b2d);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.xh-fb-actions .btn-primary {
  background: var(--brand, #2563eb);
  border-color: var(--brand, #2563eb);
  color: #fff;
}
.xh-fb-actions .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.xh-fb-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.xh-fb-status.ok { color: var(--ok, #059669); }
.xh-fb-status.err { color: var(--err, #dc2626); }
