.feedback-board {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.feedback-board-header, .feedback-controls, .feedback-badges, .feedback-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.feedback-board-header {
  justify-content: space-between;
  gap: 16px;
}
.feedback-board-header h2 { margin: 0; }
.feedback-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feedback-filters label {
  display: grid;
  gap: 5px;
  min-width: 120px;
  color: var(--muted);
  font-size: .84rem;
}
.feedback-filters select {
  font: inherit;
  color: var(--ink);
  padding: 9px 10px;
  border: 1px solid #ddd8eb;
  border-radius: 10px;
  background: #fff;
}
.feedback-list {
  display: grid;
  gap: 8px;
}
.feedback-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e7e3f1;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.feedback-list-row:hover { background: #f9f7fd; border-color: #cfc4ea; }
.feedback-list-main { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.feedback-chevron { color: #5a4cb8; font-size: 1.55rem; }
.feedback-badges { gap: 6px; }
.feedback-badge {
  border-radius: 999px;
  padding: 4px 9px;
  background: #efecf7;
  color: #504467;
  font-size: .78rem;
  font-weight: 700;
}
.feedback-badge[data-kind="incident"] { color: #932653; background: #fce9f1; }
.feedback-badge[data-kind="suggestion"] { color: #493491; background: #eee7ff; }
.feedback-badge[data-kind="in_progress"] { color: #734b0b; background: #fff2d5; }
.feedback-badge[data-kind="resolved"] { color: #176343; background: #e6f6ed; }
.feedback-meta { color: var(--muted); font-size: .85rem; }
.feedback-empty {
  text-align: center;
  padding: 26px 12px;
  background: #f8f6fc;
  color: var(--muted);
  border-radius: 14px;
}
.feedback-empty p { margin: 5px 0 0; }
.feedback-empty .btn { margin-top: 10px; }
.feedback-pager { justify-content: center; margin-top: 14px; color: var(--muted); font-size: .85rem; }

.feedback-fab, .feedback-modal-trigger { display: none; }
@media (min-width: 950px) and (hover: hover) and (pointer: fine) {
  #app:not([hidden]) .feedback-fab,
  body:has(#app:not([hidden])) .feedback-modal-trigger {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #5a4cb8;
    border: 0;
    cursor: pointer;
  }
  .feedback-fab {
    position: fixed;
    z-index: 20;
    right: 23px;
    bottom: 23px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 8px 24px #382b7350;
  }
  .feedback-modal-trigger {
    position: absolute;
    z-index: 5;
    right: 56px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .feedback-fab:hover, .feedback-modal-trigger:hover { filter: brightness(1.12); }
  body:has(.feedback-capturing) :is(.feedback-fab, .feedback-modal-trigger) { visibility: hidden; }
}
.feedback-fab svg, .feedback-modal-trigger svg { width: 22px; height: 22px; }

dialog.feedback-dialog {
  width: 660px;
  max-height: calc(100dvh - 28px);
  padding: 28px;
}
.feedback-dialog.feedback-capturing { visibility: hidden; }
.feedback-dialog.feedback-capturing::backdrop { visibility: hidden; background: transparent; backdrop-filter: none; }
.feedback-dialog-header { margin: 0 32px 16px 0; overflow-wrap: anywhere; }
.feedback-dialog-header h2 { margin: 4px 0 6px; }
.feedback-dialog-header p { color: var(--muted); margin: 0; }
.feedback-form { margin-top: 0; }
.feedback-form p { margin: 0; }
.feedback-category {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.feedback-category legend { padding: 0 0 6px; font-size: .9rem; font-weight: 700; }
.feedback-category label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e2dcec;
  border-radius: 11px;
  cursor: pointer;
}
.feedback-category label:has(input:checked) { background: #f1ebff; border-color: #ac9cd6; }
.feedback-category label input { width: auto; margin: 0; padding: 0; accent-color: #5a4cb8; }
.feedback-category small { display: block; font-weight: 400; color: var(--muted); }
.feedback-attachment {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #faf8ff;
  border: 1px dashed #d6c9ed;
  border-radius: 12px;
}
.feedback-attachment strong small { font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: 4px; }
.feedback-attachment img, .feedback-detail-image img {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border: 1px solid #e2dcec;
  border-radius: 10px;
  margin: 4px 0 8px;
}
.feedback-attachment img { max-height: 245px; }
.feedback-context { display: grid; gap: 3px; color: var(--muted); font-size: .82rem; }
.feedback-alert { color: #982450; font-weight: 600; overflow-wrap: anywhere; }
.feedback-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-review, .feedback-reply { border-top: 1px solid #e7e3f1; margin-top: 16px; padding-top: 12px; }
.feedback-review h3, .feedback-reply h3 { margin: 0 0 4px; }
.feedback-detail-image { margin-top: 12px; }
.feedback-dialog .feedback-close:disabled { opacity: .45; }
@media (max-width: 560px) {
  dialog.feedback-dialog { padding: 20px; }
  .feedback-filters { width: 100%; }
  .feedback-filters label { flex: 1; min-width: 112px; }
  .feedback-list-row { padding: 12px; }
  .feedback-submit .btn:first-child { flex: 1; }
}
