.feedback-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483600;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 10px 15px;
  background: #1c1c1a;
  color: #fff;
  font: 600 13px/1 Inter, sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  cursor: pointer;
}

#feedbackHost { position: relative; z-index: 2147483640; }

.feedback-picker-overlay {
  position: fixed;
  z-index: 2147483638;
  pointer-events: none;
  border: 2px solid #9f7754;
  background: rgba(159,119,84,.16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.75) inset;
}

.feedback-picker-label {
  position: fixed;
  z-index: 2147483639;
  pointer-events: none;
  border-radius: 5px;
  padding: 5px 8px;
  background: #1c1c1a;
  color: #fff;
  font: 600 11px/1.2 ui-monospace, monospace;
}

.feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18,18,16,.52);
  backdrop-filter: blur(5px);
}

.feedback-panel {
  width: min(580px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid #d8cfc4;
  border-radius: 18px;
  padding: 22px;
  background: #f8f5f0;
  color: #24221f;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  font: 14px/1.5 Inter, sans-serif;
}

.feedback-panel * { box-sizing: border-box; }
.feedback-panel h2, .feedback-panel h3 { margin: 0; font-family: Fraunces, serif; }
.feedback-panel h2 { font-size: 27px; }
.feedback-panel h3 { font-size: 19px; }
.feedback-muted { color: #746d65; }
.feedback-header, .feedback-actions, .feedback-row { display: flex; align-items: center; gap: 10px; }
.feedback-header { justify-content: space-between; margin-bottom: 18px; }
.feedback-actions { flex-wrap: wrap; margin-top: 16px; }
.feedback-row { justify-content: space-between; }
.feedback-close { border: 0; background: none; font-size: 26px; cursor: pointer; }
.feedback-field { display: grid; gap: 6px; margin: 12px 0; }
.feedback-field label { font-weight: 650; }
.feedback-field input, .feedback-field textarea, .feedback-field select {
  width: 100%; border: 1px solid #c9beb2; border-radius: 9px; padding: 10px 12px;
  background: #fff; color: #24221f; font: inherit;
}
.feedback-field textarea { min-height: 105px; resize: vertical; }
.feedback-dropzone { border: 2px dashed #b6a797; border-radius: 12px; padding: 20px; text-align: center; background: #fff; color: #514b44; cursor: pointer; transition: .15s ease; }
.feedback-dropzone span { color: #82786e; font-size: 12px; }
.feedback-dropzone:hover, .feedback-dropzone:focus, .feedback-dropzone.is-dragging { border-color: #7d5d42; background: #f1e8df; outline: none; }
.feedback-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feedback-preview { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid #d8cfc4; border-radius: 9px; background: #eee; }
.feedback-preview img { width: 100%; height: 100%; object-fit: cover; }
.feedback-preview button { position: absolute; top: 4px; right: 4px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(28,28,26,.86); color: #fff; cursor: pointer; }
.feedback-btn {
  border: 1px solid #2b2926; border-radius: 999px; padding: 10px 15px;
  background: #fff; color: #24221f; font: 650 13px/1 Inter, sans-serif; cursor: pointer;
}
.feedback-btn-primary { background: #24221f; color: #fff; }
.feedback-btn-danger { border-color: #9b3434; color: #9b3434; }
.feedback-btn:disabled { opacity: .45; cursor: wait; }
.feedback-list { display: grid; gap: 10px; margin: 14px 0; }
.feedback-item { border: 1px solid #d8cfc4; border-radius: 12px; padding: 13px; background: #fff; }
.feedback-item p { margin: 8px 0 0; }
.feedback-pill { display: inline-flex; max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 99px; padding: 4px 8px; background: #ebe3da; font: 600 11px/1.2 ui-monospace, monospace; }
.feedback-status { min-height: 22px; margin: 12px 0 0; font-weight: 600; }
.feedback-status.is-error { color: #a52828; }
.feedback-status.is-success { color: #28673c; }
.feedback-divider { height: 1px; margin: 20px 0; background: #ddd3c8; }
.feedback-empty { border: 1px dashed #c8baac; border-radius: 12px; padding: 20px; text-align: center; color: #746d65; }
.feedback-job { border-left: 3px solid #9f7754; padding-left: 10px; margin: 12px 0; }
.feedback-hidden { display: none !important; }
html.feedback-picking, html.feedback-picking * { cursor: crosshair !important; }

@media (max-width: 600px) {
  .feedback-field input, .feedback-field textarea, .feedback-field select { font-size: 16px; }
  .feedback-launcher { right: 10px; bottom: 10px; }
  .feedback-backdrop { padding: 0; align-items: end; }
  .feedback-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 18px; }
}
