.feedback-dialog {
  width: min(700px, calc(100% - 28px));
  max-height: min(90dvh, 860px);
  overflow: auto;
  border: 1px solid var(--ig-line, #dde1cf);
  border-radius: 25px;
  background: #fffef8;
}

.feedback-dialog form { padding: 26px; }

.feedback-dialog-title {
  position: sticky;
  top: -26px;
  z-index: 10;
  margin: -26px -26px 18px;
  padding: 26px 26px 17px;
  border-bottom: 1px solid #e5e8d9;
  background: #fffef8f5;
  backdrop-filter: blur(12px);
}

.feedback-dialog-title h2 {
  margin-top: 3px;
  font-size: clamp(26px, 4vw, 34px);
}

.feedback-dialog-title .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  background: #f1f2e8;
}

.feedback-release {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-color: #cdd5b4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f3df, #f8f8ef);
}

.feedback-release:hover:not(:disabled) { background: #e9edd7; }
.feedback-release-icon { background: #dce7b8; }

.feedback-compose {
  padding: 19px;
  border: 1px solid #dfe3d3;
  border-radius: 19px;
  background: #fafaf4;
  box-shadow: inset 0 1px #ffffff;
}

.feedback-compose-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.feedback-compose-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ig-olive-dark, #464b38);
  color: var(--ig-lime, #dce7a5);
  font-size: 21px;
  font-weight: 900;
}

.feedback-compose-head h3 {
  margin: 2px 0 0;
  color: #30362b;
  font-size: 19px;
}

.feedback-compose-head small {
  display: block;
  margin-top: 4px;
  color: #7d8373;
  font-size: 12px;
  line-height: 1.4;
}

.feedback-compose label {
  display: grid;
  gap: 7px;
  color: #656d5b;
  font-size: 12px;
  font-weight: 700;
}

.feedback-compose input,
.feedback-compose select,
.feedback-compose textarea {
  margin: 0;
  border-radius: 12px;
  background: #fffefb;
}

.feedback-compose textarea {
  min-height: 120px;
  resize: vertical;
  padding: 13px;
}

.feedback-description { margin-top: 13px; }
.feedback-compose .feedback-attachment { margin: 13px 0 0; }
.feedback-compose .feedback-upload { background: #fffef9; }

.feedback-compose #feedbackResult:not(:empty) { margin-top: 12px; }

.feedback-compose .actions {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e2e5d8;
}

.feedback-compose .actions button { min-width: 118px; }

.feedback-history {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e0e4d5;
  border-radius: 19px;
  background: #fffefb;
}

.feedback-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.feedback-history-head h3 {
  margin: 2px 0 0;
  color: #30362b;
  font-size: 19px;
}

.feedback-history-head > small {
  color: #858b7b;
  font-size: 11px;
}

.feedback-history .feedback-empty {
  padding: 23px 15px;
  border: 1px dashed #d4d9c5;
  border-radius: 14px;
  background: #f8f8f2;
  text-align: center;
}

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

@media (max-width: 650px) {
  .feedback-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 21px;
  }

  .feedback-dialog form { padding: 16px; }

  .feedback-dialog-title {
    top: -16px;
    margin: -16px -16px 14px;
    padding: 18px 16px 14px;
  }

  .feedback-dialog-title .icon { width: 42px; height: 42px; }
  .feedback-release { padding: 12px; }
  .feedback-compose { padding: 15px; border-radius: 17px; }
  .feedback-compose-head { gap: 10px; }
  .feedback-compose-mark { width: 40px; height: 40px; border-radius: 12px; }
  .feedback-form-grid { grid-template-columns: 1fr; gap: 11px; }
  .feedback-compose .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .feedback-compose .actions button { min-width: 0; }
  .feedback-history { padding: 15px; border-radius: 17px; }
  .feedback-history-head { align-items: start; flex-direction: column; gap: 4px; }
  .feedback-item { grid-template-columns: auto minmax(0, 1fr); }
}
