.feedback-header {
  position: static;
}

.feedback-header .compact,
.preview-head .compact {
  padding: 8px 12px;
}

.feedback-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.feedback-intro {
  max-width: 720px;
  margin-bottom: 26px;
}

.feedback-intro h1 {
  margin: 8px 0 14px;
  color: #172126;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.feedback-intro p:last-child {
  color: #536064;
  line-height: 1.7;
}

.security-notice {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #6b2a22;
  background: #fff4f1;
  border: 1px solid #efc5bd;
  border-radius: 6px;
}

.security-notice span {
  font-size: 14px;
  line-height: 1.55;
}

.feedback-tool,
.feedback-preview {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid #d7dfe1;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(20, 31, 35, 0.08);
}

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

.feedback-tool label {
  display: grid;
  gap: 7px;
  color: #344247;
  font-size: 13px;
  font-weight: 700;
}

.feedback-tool input,
.feedback-tool select,
.feedback-tool textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: #172126;
  background: #f8faf9;
  border: 1px solid #c9d2d4;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.feedback-tool textarea {
  resize: vertical;
  line-height: 1.55;
}

.feedback-tool input:focus,
.feedback-tool select:focus,
.feedback-tool textarea:focus {
  outline: 3px solid rgba(14, 118, 96, 0.16);
  border-color: #0e7660;
}

.feedback-actions,
.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-status {
  color: #0e7660;
  font-size: 13px;
  font-weight: 700;
}

.feedback-preview {
  margin-top: 20px;
  background: #172126;
  border-color: #2d3a3f;
  box-shadow: none;
}

.feedback-preview[hidden] {
  display: none;
}

.preview-head {
  justify-content: space-between;
}

.preview-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.feedback-preview pre {
  max-height: 480px;
  margin: 0;
  overflow: auto;
  color: #dce5e7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.65 "JetBrains Mono", Consolas, monospace;
}

@media (max-width: 680px) {
  .feedback-main {
    padding-top: 36px;
  }

  .form-grid,
  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .feedback-tool,
  .feedback-preview {
    padding: 18px;
  }

  .feedback-actions .button {
    width: 100%;
  }
}
