.feedback-main {
  display: grid;
  gap: 22px;
  padding: 24px clamp(18px, 6vw, 80px) 40px;
}

.feedback-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(21, 32, 40, 0.96), rgba(40, 86, 111, 0.78)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  min-height: 300px;
  padding: clamp(24px, 5vw, 44px);
}

.feedback-hero .eyebrow {
  color: #b8d7e5;
}

.feedback-hero h1 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  margin: 0;
  max-width: 900px;
}

.feedback-hero p:not(.eyebrow) {
  color: #dce8ee;
  font-size: 18px;
  max-width: 760px;
}

.feedback-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-stats article {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  color: #17202b;
  padding: 12px;
}

.feedback-stats span,
.feedback-card small,
.report-meta,
.private-note {
  color: #657588;
  font-size: 12px;
}

.file-drop {
  background: #f8fafc;
  border: 1px dashed #b8c5d1;
  border-radius: 8px;
  padding: 12px;
}

.file-drop small,
.selected-files small,
.attachment-list small {
  color: #657588;
}

.selected-files,
.attachment-list {
  display: grid;
  gap: 8px;
}

.selected-files article,
.attachment-link {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe4eb;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.attachment-link {
  color: inherit;
  text-decoration: none;
}

.attachment-link:hover {
  background: #ffffff;
}

.attachment-list.compact {
  background: #f8fafc;
  border: 1px solid #dbe4eb;
  border-radius: 8px;
  padding: 10px;
}

.feedback-stats strong {
  display: block;
  font-size: 28px;
}

.feedback-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.82fr) minmax(320px, 0.78fr);
}

.feedback-list-panel,
.feedback-detail-panel,
.feedback-form-panel,
.reviewer-panel,
.moderation-form,
.reviewer-list {
  background: #ffffff;
  border: 1px solid #d4dce5;
  border-radius: 8px;
}

.feedback-list-panel,
.feedback-detail-panel,
.feedback-form-panel {
  align-self: start;
  padding: 16px;
}

.compact-head {
  margin-bottom: 12px;
}

.compact-head h2,
.panel-head h2,
.reviewer-panel h2 {
  font-size: 24px;
  margin: 0;
}

.feedback-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.feedback-filters label,
.feedback-form label,
.moderation-form label {
  color: #536174;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.feedback-list,
.reviewer-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
}

.feedback-card {
  background: #f8fafc;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 13px;
}

.feedback-card:hover {
  background: #ffffff;
}

.feedback-card.active {
  border-color: #28566f;
  box-shadow: inset 3px 0 0 #28566f;
}

.feedback-card h3 {
  font-size: 16px;
  margin: 0;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-meta span {
  background: #eef3f6;
  border-radius: 999px;
  padding: 4px 8px;
}

.feedback-detail-panel {
  min-height: 560px;
  position: sticky;
  top: 88px;
}

.detail-heading {
  display: grid;
  gap: 8px;
}

.detail-heading h2 {
  font-size: 26px;
  margin: 0;
}

.feedback-body {
  color: #344153;
  line-height: 1.62;
  white-space: pre-wrap;
}

.detail-info-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.detail-info-grid article {
  background: #f5f8fa;
  border: 1px solid #dbe4eb;
  border-radius: 7px;
  padding: 10px;
}

.detail-info-grid span {
  color: #657588;
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.event-list article {
  border-top: 1px solid #e4eaf0;
  padding-top: 10px;
}

.event-list strong {
  display: block;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

textarea {
  resize: vertical;
}

.status-line {
  color: #557086;
  min-height: 20px;
}

.status-line.error {
  color: #a43d3d;
}

.reviewer-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.reviewer-login {
  align-items: center;
  display: flex;
  gap: 10px;
}

.reviewer-token-field {
  display: grid;
  gap: 6px;
}

.reviewer-token-field span {
  color: #5e6c7e;
  font-size: 12px;
  font-weight: 700;
}

.reviewer-login input {
  min-width: min(320px, 48vw);
}

.reviewer-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.reviewer-list {
  max-height: 520px;
  padding: 12px;
}

.moderation-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.moderation-form h3 {
  margin: 0;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checks label {
  align-items: center;
  display: flex;
}

.checks input {
  width: auto;
}

.empty-state.compact {
  min-height: 180px;
}

.pill.open {
  background: #e7f0f6;
  color: #28566f;
}

.pill.triage,
.pill.investigating {
  background: #fff3d8;
  color: #775506;
}

.pill.planned {
  background: #e9ecff;
  color: #4d55a0;
}

.pill.fixed {
  background: #e3f4ea;
  color: #1f6a42;
}

.pill.duplicate,
.pill.closed {
  background: #eceff3;
  color: #536174;
}

.pill.critical,
.pill.high {
  background: #fae7e7;
  color: #9b2f2f;
}

.pill.normal {
  background: #e7f0f6;
  color: #28566f;
}

.pill.low {
  background: #eceff3;
  color: #536174;
}

:root[data-theme="dark"] .feedback-hero {
  border-color: #223140;
}

:root[data-theme="dark"] .feedback-stats article,
:root[data-theme="dark"] .feedback-list-panel,
:root[data-theme="dark"] .feedback-detail-panel,
:root[data-theme="dark"] .feedback-form-panel,
:root[data-theme="dark"] .reviewer-panel,
:root[data-theme="dark"] .moderation-form,
:root[data-theme="dark"] .reviewer-list {
  background: #0f171f;
  border-color: #223140;
  color: #e1edf4;
}

:root[data-theme="dark"] .feedback-card,
:root[data-theme="dark"] .detail-info-grid article,
:root[data-theme="dark"] .report-meta span,
:root[data-theme="dark"] .file-drop,
:root[data-theme="dark"] .selected-files article,
:root[data-theme="dark"] .attachment-link,
:root[data-theme="dark"] .attachment-list.compact {
  background: #0b1118;
  border-color: #1d2a36;
}

:root[data-theme="dark"] .feedback-card:hover,
:root[data-theme="dark"] .attachment-link:hover {
  background: #14202b;
}

:root[data-theme="dark"] .feedback-card small,
:root[data-theme="dark"] .report-meta,
:root[data-theme="dark"] .private-note,
:root[data-theme="dark"] .file-drop small,
:root[data-theme="dark"] .selected-files small,
:root[data-theme="dark"] .attachment-list small,
:root[data-theme="dark"] .feedback-filters label,
:root[data-theme="dark"] .feedback-form label,
:root[data-theme="dark"] .moderation-form label,
:root[data-theme="dark"] .reviewer-token-field span,
:root[data-theme="dark"] .detail-info-grid span {
  color: #9fafbd;
}

:root[data-theme="dark"] .feedback-body {
  color: #d9e6ee;
}

:root[data-theme="dark"] .event-list article {
  border-top-color: #1d2a36;
}

:root[data-theme="dark"] .status-line {
  color: #91c8e4;
}

:root[data-theme="dark"] .status-line.error {
  color: #f09c9c;
}

:root[data-theme="dark"] .pill.open,
:root[data-theme="dark"] .pill.normal {
  background: #132e3d;
  color: #91c8e4;
}

:root[data-theme="dark"] .pill.triage,
:root[data-theme="dark"] .pill.investigating {
  background: #392d13;
  color: #f0cf7f;
}

:root[data-theme="dark"] .pill.planned {
  background: #232852;
  color: #b7c0ff;
}

:root[data-theme="dark"] .pill.fixed {
  background: #173627;
  color: #93e0b5;
}

:root[data-theme="dark"] .pill.duplicate,
:root[data-theme="dark"] .pill.closed,
:root[data-theme="dark"] .pill.low {
  background: #1d2732;
  color: #adbac7;
}

:root[data-theme="dark"] .pill.critical,
:root[data-theme="dark"] .pill.high {
  background: #411b1e;
  color: #f09c9c;
}

@media (max-width: 1280px) {
  .feedback-workspace,
  .reviewer-layout {
    grid-template-columns: 1fr;
  }

  .feedback-detail-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .feedback-hero {
    grid-template-columns: 1fr;
  }

  .feedback-filters,
  .form-row,
  .detail-info-grid,
  .feedback-stats {
    grid-template-columns: 1fr;
  }

  .reviewer-login {
    align-items: stretch;
    flex-direction: column;
  }

  .reviewer-login input {
    min-width: 0;
  }
}
