.screenshot-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.screenshot-trigger:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.feedback-filter-bar {
  display: flex;
  gap: 8px;
  margin: 14px auto 0;
  max-width: 1160px;
  padding: 0 18px;
}

.feedback-filter-bar button,
.feedback-card-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.feedback-filter-bar button {
  cursor: pointer;
  padding: 9px 13px;
}

.feedback-filter-bar button.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.feedback-filter-bar span {
  margin-left: 4px;
}

.feedback-card-badge {
  background: var(--orange-soft);
  border-color: transparent;
  color: var(--orange);
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
}

.feedback-dialog {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  color: var(--charcoal);
  height: min(92vh, 940px);
  max-width: 1120px;
  padding: 0;
  width: min(94vw, 1120px);
}

.feedback-dialog::backdrop {
  background: rgba(20, 16, 14, 0.78);
  backdrop-filter: blur(5px);
}

.feedback-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.feedback-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.feedback-header h2 {
  font-size: clamp(18px, 3vw, 26px);
}

.feedback-close {
  background: var(--orange-soft);
  border: 0;
  border-radius: 999px;
  color: var(--orange);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.feedback-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  min-height: 0;
}

.feedback-stage {
  align-items: center;
  background: #f5eee8;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.feedback-image-wrap {
  cursor: crosshair;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  position: relative;
}

.feedback-image-wrap img {
  max-height: calc(92vh - 108px);
  max-width: 100%;
  width: auto;
}

.feedback-marker {
  align-items: center;
  background: var(--orange);
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(33, 28, 25, 0.35);
  color: white;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
}

.feedback-marker.is-pending {
  background: var(--charcoal);
}

.feedback-panel {
  border-left: 1px solid var(--line);
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.feedback-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
}

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

.feedback-form label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-form input,
.feedback-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal);
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.feedback-form textarea {
  min-height: 100px;
  resize: vertical;
}

.feedback-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.feedback-submit,
.feedback-clear {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.feedback-submit {
  background: var(--orange);
  color: white;
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.feedback-clear {
  background: var(--orange-soft);
  color: var(--orange);
}

.feedback-status {
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
  margin: 0;
}

.feedback-comments {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.feedback-comments h3 {
  font-size: 15px;
  margin: 0 0 10px;
}

.feedback-comment-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feedback-comment {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px;
}

.feedback-comment strong,
.feedback-comment time {
  display: block;
}

.feedback-comment time {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

.feedback-empty {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .feedback-dialog {
    height: 96vh;
    width: 96vw;
  }

  .feedback-body {
    display: block;
    overflow: auto;
  }

  .feedback-stage {
    max-height: 58vh;
  }

  .feedback-image-wrap img {
    max-height: 52vh;
  }

  .feedback-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
