.jx-feedback-modal[hidden],
.jx-feedback-toast[hidden],
.jx-feedback-error[hidden],
.jx-feedback-spinner[hidden] { display: none; }
body.jx-feedback-open { overflow: hidden; }
.jx-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, .5);
}
.jx-feedback-dialog {
  width: 680px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  color: #606266;
  border-radius: 4px;
  padding: 20px 30px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.jx-feedback-dialog * { font-size: 14px; letter-spacing: 0; }
.jx-feedback-header { position: relative; margin-bottom: 24px; text-align: center; }
.jx-feedback-header h2 { font-size: 18px; font-weight: 400; color: #303133; line-height: 28px; }
.jx-feedback-close {
  position: absolute;
  right: -14px;
  top: -8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #909399;
  font-size: 28px;
  cursor: pointer;
}
.jx-feedback-tip { padding: 10px 12px; margin-bottom: 24px; line-height: 24px; color: #bc6200; background: #fff1d9; text-align: center; }
.jx-feedback-types { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.jx-feedback-types legend { float: left; width: 100px; line-height: 24px; }
.jx-feedback-types > div { margin-left: 100px; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.jx-feedback-types label { display: inline-flex; align-items: center; gap: 5px; line-height: 24px; cursor: pointer; }
.jx-feedback-types input { accent-color: #00479d; width: 14px; height: 14px; }
.jx-feedback-field { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; margin-bottom: 22px; }
.jx-feedback-field > label { line-height: 40px; }
.jx-feedback-field > label span, .jx-feedback-types legend span { color: #d64040; }
.jx-feedback-field input, .jx-feedback-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  padding: 10px 12px;
  line-height: 20px;
}
.jx-feedback-field textarea { resize: vertical; min-height: 100px; }
.jx-feedback-field input:focus, .jx-feedback-field textarea:focus { border-color: #00479d; outline: 1px solid #00479d; }
.jx-feedback-error { color: #c43131; line-height: 22px; margin: -6px 0 16px 100px; overflow-wrap: anywhere; }
.jx-feedback-actions { text-align: center; }
.jx-feedback-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #00479d;
  border-radius: 4px;
  background: #00479d;
  color: #fff;
  cursor: pointer;
}
.jx-feedback-actions button:disabled { opacity: .65; cursor: wait; }
.jx-feedback-close:disabled { cursor: wait; }
.jx-feedback-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: jx-feedback-spin .8s linear infinite; }
.jx-feedback-toast { position: fixed; z-index: 11001; top: 32px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border: 1px solid #c2e7b0; border-radius: 4px; color: #387c21; background: #f0f9eb; font-size: 14px; }
@keyframes jx-feedback-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jx-feedback-spinner { animation: none; } }
@media (max-width: 600px) {
  .jx-feedback-dialog { padding: 20px 20px 24px; }
  .jx-feedback-tip { text-align: left; }
  .jx-feedback-types legend { float: none; width: auto; margin-bottom: 10px; }
  .jx-feedback-types > div { margin-left: 0; gap: 8px 16px; }
  .jx-feedback-field { grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
  .jx-feedback-field > label { line-height: 28px; }
  .jx-feedback-error { margin-left: 0; }
}
