main.app-shell > .workspace > .task-panel.feedback-reports-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}
.feedback-reports-table .feedback-reports-empty {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
}
.feedback-reports-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.feedback-reports-toolbar .toolbar-field { flex: 1 1 180px; min-width: 0; }
.feedback-reports-toolbar input[type="search"], .feedback-reports-toolbar .custom-select { width: 100%; }
.feedback-reports-toolbar input[type="search"], .feedback-reports-toolbar .custom-select-trigger { height: var(--button-height); min-height: 0; padding: 0 var(--button-padding-inline); font-size: 13px; border-radius: var(--button-radius); }
.feedback-reports-checkbox { display: flex; align-items: center; gap: 6px; padding-block: 9px; }
.feedback-reports-checkbox input { margin: 0; }
.feedback-reports-status-select .custom-select-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-reports-status-menu { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); color: var(--text); }
.feedback-reports-status-menu label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.feedback-reports-status-menu input { margin: 0; flex: 0 0 auto; }
.feedback-reports-status-menu label > span { padding: 0; color: inherit; font-size: 13px; font-weight: 400; line-height: 1.5; }
.feedback-reports-table-wrap { overflow: auto; min-width: 0; }
/* Keep the seven columns legible; narrow viewports scroll inside this table. */
.feedback-reports-table { width: 100%; min-width: 960px; border-collapse: collapse; text-align: left; }
.feedback-reports-table th:nth-child(2) { width: 32%; }
.feedback-reports-table th, .feedback-reports-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feedback-reports-table th { white-space: nowrap; }
.feedback-reports-table small { display: block; color: var(--muted); margin-top: 4px; }
.feedback-report-title { text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 0; height: auto; }
.feedback-reports-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.feedback-report-detail { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; overflow-wrap: anywhere; }
.feedback-report-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feedback-report-detail-heading h2 { margin: 0; flex: 1; }
.feedback-report-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.feedback-report-meta dt { color: var(--muted); }
.feedback-report-meta dd { margin: 4px 0 0; }
.feedback-report-detail .rich-text-content { overflow: auto; }
.feedback-response-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback-response-form { display: grid; gap: 12px; }
.feedback-response-form > *, .feedback-response { min-width: 0; }
.feedback-response-form .toolbar-field { width: 100%; }
.feedback-report-detail > details { margin-block: 16px; }
.feedback-report-attachments { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.feedback-report-attachments button { white-space: normal; overflow-wrap: anywhere; height: auto; }
.feedback-reports-panel .error { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .feedback-report-detail-heading { flex-direction: column; }
  .feedback-reports-table th, .feedback-reports-table td { padding: 8px; }
}

.feedback-chat { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.feedback-chat-messages { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.feedback-chat-messages > li { border-left: 3px solid var(--line); padding: 8px 12px; overflow-wrap: anywhere; }
.feedback-chat-messages > li.is-own { border-left-color: var(--blue); }
.feedback-chat-messages > li > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.feedback-chat-messages time, .feedback-chat-messages span { color: var(--muted); font-size: 12px; }
.feedback-chat-messages p { white-space: pre-wrap; margin: 8px 0 0; }
.feedback-chat-form { display: grid; gap: 8px; }
.feedback-chat-form label { display: grid; gap: 6px; }
.feedback-chat-form textarea { width: 100%; resize: vertical; box-sizing: border-box; }
.feedback-chat-form > button { justify-self: start; }
.feedback-chat-form input[type="file"] { max-width: 100%; min-width: 0; }
.feedback-chat-selected-files { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.feedback-chat-selected-files li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.feedback-chat-selected-files li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .feedback-chat { padding-bottom: 80px; }
}

.feedback-report-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--feedback-badge-color) 34%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--feedback-badge-color) 12%, #ffffff);
  color: var(--feedback-badge-color);
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.feedback-report-attachments li { min-width: 0; max-width: 100%; }
.feedback-report-image { display: grid; gap: 8px; width: 200px; max-width: 100%; }
.feedback-report-attachments .feedback-report-image-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  cursor: zoom-in;
}
.feedback-report-image-thumbnail img { display: block; max-width: 100%; max-height: 140px; object-fit: contain; }
.feedback-report-image-thumbnail:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
