.panel-feedback .publish-pane {
  grid-template-columns: minmax(0, 1fr);
}

.panel-feedback .designer-stage {
  display: none;
}

.panel-feedback .side-panel {
  grid-column: 1 / -1;
  min-height: 0;
}

.feedback-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f3f6f5;
  color: #182226;
}

.feedback-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #d8e0de;
  background: #ffffff;
  padding: 18px 22px;
}

.feedback-header > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feedback-header span {
  color: #58706b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.feedback-header h2,
.feedback-header p,
.feedback-view-title h3,
.feedback-view-title p {
  margin: 0;
}

.feedback-header h2 {
  font-size: 20px;
  line-height: 1.2;
}

.feedback-header p {
  max-width: 780px;
  color: #52615f;
  font-size: 12px;
  line-height: 1.5;
}

.feedback-entitlement {
  display: grid;
  min-width: 190px;
  border-left: 3px solid #14816b;
  background: #eef7f4;
  padding: 10px 12px;
}

.feedback-entitlement strong {
  color: #0e6757;
  font-size: 12px;
}

.feedback-entitlement span {
  margin-top: 3px;
  color: #52615f;
  font-size: 10px;
  text-transform: none;
}

.feedback-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #d5dddb;
  background: #e9eeec;
  padding: 8px 22px 0;
}

.feedback-tabs button,
.feedback-view-title button,
.feedback-import-button,
.whiteboard-toolbar button,
.feedback-media-actions button,
.feedback-media-actions a,
.feedback-thread-footer button {
  min-height: 34px;
  border: 1px solid #b8c6c3;
  border-radius: 5px;
  background: #ffffff;
  color: #253735;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.feedback-tabs button {
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #f2f5f4;
}

.feedback-tabs button.active,
.whiteboard-tools button.active {
  border-color: #14816b;
  background: #ffffff;
  color: #0d6e5c;
  box-shadow: inset 0 -2px 0 #14816b;
}

.feedback-view {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 28px;
}

.feedback-view-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feedback-view-title > div {
  display: grid;
  gap: 3px;
}

.feedback-view-title h3 {
  font-size: 15px;
}

.feedback-view-title p {
  color: #667572;
  font-size: 11px;
}

.feedback-view-title button,
.feedback-import-button {
  border-color: #0f7d68;
  background: #0f806b;
  color: #ffffff;
}

.feedback-import-button {
  display: inline-grid;
  place-items: center;
}

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

.feedback-thread-card,
.feedback-media-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d3ddda;
  border-radius: 7px;
  background: #ffffff;
  padding: 13px;
  box-shadow: 0 8px 24px rgba(22, 45, 40, 0.06);
}

.feedback-thread-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.feedback-thread-card input,
.feedback-thread-card textarea,
.feedback-thread-card select,
.feedback-media-card select,
.whiteboard-toolbar select,
.whiteboard-privacy select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c2cecb;
  border-radius: 5px;
  background: #ffffff;
  color: #20302d;
  padding: 8px 9px;
  font: inherit;
  font-size: 11px;
}

.feedback-thread-card > input {
  font-size: 13px;
  font-weight: 850;
}

.feedback-thread-card textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.feedback-thread-footer {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.feedback-thread-footer label {
  display: grid;
  gap: 3px;
}

.feedback-thread-footer label span,
.feedback-thread-footer > span {
  color: #697875;
  font-size: 9px;
  font-weight: 750;
}

.feedback-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feedback-media-card audio,
.feedback-media-card video,
.feedback-media-card img,
.feedback-file-preview {
  display: block;
  width: 100%;
  min-height: 130px;
  max-height: 230px;
  border-radius: 4px;
  background: #111a1f;
  object-fit: contain;
}

.feedback-media-card audio {
  min-height: 54px;
}

.feedback-media-card > div:not(.feedback-media-actions) {
  display: grid;
  gap: 2px;
}

.feedback-media-card > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.feedback-media-card > div span {
  color: #687774;
  font-size: 9px;
}

.feedback-file-preview {
  place-content: center;
  color: #eef4f2;
  text-align: center;
}

.feedback-media-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.feedback-media-actions a {
  display: inline-grid;
  place-items: center;
}

.feedback-error {
  border: 1px solid #e1b8b1;
  border-radius: 5px;
  background: #fff0ed;
  color: #8e3026;
  padding: 10px 12px;
  font-size: 11px;
}

.feedback-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 220px;
  border: 1px dashed #bac8c5;
  border-radius: 7px;
  background: #fbfcfc;
  color: #435653;
  text-align: center;
  padding: 20px;
}

.feedback-empty span {
  max-width: 520px;
  color: #6a7976;
  font-size: 11px;
}

.whiteboard-view {
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr) auto;
}

.whiteboard-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto minmax(140px, 0.5fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #d1dcda;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px;
}

.whiteboard-tools,
.whiteboard-swatches {
  display: flex;
  gap: 4px;
}

.whiteboard-swatches button {
  width: 32px;
  min-width: 32px;
  padding: 0;
  background: var(--swatch);
}

.whiteboard-swatches button[aria-pressed="true"] {
  outline: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #173f48;
}

.whiteboard-width {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr);
  gap: 7px;
  align-items: center;
  color: #52635f;
  font-size: 10px;
  font-weight: 750;
}

.whiteboard-width input {
  width: 100%;
  accent-color: #0f806b;
}

.review-whiteboard-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid #c6d2cf;
  border-radius: 6px;
  background:
    linear-gradient(#edf2f1 1px, transparent 1px),
    linear-gradient(90deg, #edf2f1 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 12px 30px rgba(22, 45, 40, 0.08);
  cursor: crosshair;
  touch-action: none;
}

.whiteboard-privacy {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  color: #5d6c69;
  font-size: 10px;
  font-weight: 750;
}

.whiteboard-privacy select {
  width: auto;
  min-width: 170px;
}

@media (max-width: 980px) {
  .feedback-thread-grid,
  .feedback-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .whiteboard-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .whiteboard-tools,
  .whiteboard-swatches,
  .whiteboard-width {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .feedback-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .feedback-entitlement {
    min-width: 0;
  }

  .feedback-tabs {
    overflow-x: auto;
    padding: 7px 10px 0;
  }

  .feedback-tabs button {
    flex: 0 0 auto;
  }

  .feedback-view {
    padding: 14px 10px 22px;
  }

  .feedback-view-title,
  .whiteboard-privacy {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-thread-meta,
  .feedback-thread-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-whiteboard-canvas {
    min-height: 440px;
  }
}
