.feedback-dialog {
  position: fixed;
  z-index: 1250;
  left: 12px;
  bottom: 69px;
  width: min(340px, calc(100vw - 24px));
  height: min(460px, calc(100dvh - 90px));
  border-radius: 10px;
  color: #000;
  background: #fff;
  box-shadow: 0 4px 20px #0003;   
  font: 400 12px/16px "Mona Sans", "Alibaba PuHuiTi", sans-serif;
}
.feedback-dialog *, .feedback-dialog *::before, .feedback-dialog *::after { box-sizing: border-box; }
.feedback-scroll { height: 100%; overflow-y: auto; scrollbar-width: none; border-radius: inherit; }
.feedback-scroll::-webkit-scrollbar { display: none; }
.feedback-hero { position: relative; height: 120px; padding: 12px; background: #7879bf url("/platform/assets/info/feedback_top.png") center / cover no-repeat; color: #fff; }
.feedback-hero h2 { 
  margin: 0 20px 5px 0; 
  color: #FFF;
  font-family: "Mona Sans";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 133.333% */
}
.feedback-hero p {
  margin: 0;
  color: #FFF;
  font-family: "Mona Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 150% */
}
.feedback-top-controls { position: absolute; z-index: 3; top: 0; right: 0; left: 0; height: 44px; pointer-events: none; }
.feedback-dialog .feedback-top-controls > .feedback-close { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: auto; }
.feedback-close img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.feedback-dialog button::after { display: none; }
.feedback-form { padding: 12px 12px 24px; display: grid; gap: 12px; }
.feedback-category { margin: 0; padding: 0; border: none; min-width: 0; }
.feedback-category legend { 
  padding: 0; 
  margin-bottom: 8px;
  color: #000;
  font-family: "Mona Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px; /* 100% */
}
.feedback-category > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.feedback-category label { position: relative; min-width: 0; cursor: pointer; }
.feedback-category input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feedback-category-card { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  height: 60px; 
  padding: 8px; 
  border: 1px solid #f3f4f6;
  border-radius: 8px; 
  color: #9CA3AF;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
}
.feedback-category-card i { flex: 0 0 24px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: 19px; font-style: normal; text-align: center; width: 24px;height: 24px;line-height: 24px; }
.feedback-category input:checked + span { background: #eef2ff; border-color: #e0e7ff; color: #4f46e5; box-shadow: 0 4px 2px #0000000a; }
.feedback-category input:focus-visible + span { outline: 1px solid #9ca3af; outline-offset: 2px; }
.feedback-field { display: grid; gap: 8px; min-width: 0; }
.feedback-field > span { 
  display: flex; 
  justify-content: space-between; 
  line-height: 12px;
  color: #000;
  font-family: "Mona Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px; /* 100% */
}
.feedback-field b, .feedback-screenshots b {
  color: #9CA3AF;
  text-align: right;
  font-family: "Mona Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px; /* 100% */
}
.feedback-dialog .feedback-field input, .feedback-dialog .feedback-field textarea { width: 100%; border: 1px solid #f3f4f6; border-radius: 8px; padding: 12px 9px; color: #111827; background: #fff; font: 400 12px/16px "Mona Sans", sans-serif; outline: none; }
.feedback-field input { height: 42px; }
.feedback-field textarea { height: 160px; resize: vertical; min-height: 100px; }
.feedback-field input::placeholder, .feedback-field textarea::placeholder { color: #9ca3af; }
.feedback-dialog .feedback-field [aria-invalid="true"] { border-color: #ef4444; }
.feedback-screenshots { display: grid; gap: 8px; line-height: 12px; }
.feedback-screenshots > small { 
  display: flex; 
  justify-content: space-between; 
  color: #9ca3af;
  gap: 4px; 
  color: #9CA3AF;
  font-family: "Mona Sans";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px; /* 100% */
}
.feedback-dialog .feedback-drop { width: 100%; height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid #f3f4f6; border-radius: 8px; color: #000; font: inherit; }
.feedback-drop > img { width: 16px; height: 16px; object-fit: contain; margin-bottom: 8px; }
.feedback-drop > strong { font-weight: 400; }
.feedback-drop > small { color: #9ca3af; font: inherit; }
.feedback-dialog .feedback-drop.dragging { border-color: #6366f1; background: #eef2ff; }
.feedback-previews:empty { display: none; }
.feedback-previews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.feedback-previews > div { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 64px; padding: 8px; border-radius: 6px;border: 1px solid #F3F4F6; }
.feedback-previews img { width: 48px; height: 48px; object-fit: contain; }
.feedback-previews > div > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 18px; color: #6b7280; }
.feedback-dialog .feedback-previews button { display: grid; place-items: center; width: 28px; height: 28px; padding: 4px; border: 0; border-radius: 6px; background: #fff; color: #6b7280; font: inherit; }
.feedback-dialog .feedback-previews button img { width: 20px; height: 20px; }
.feedback-dialog .feedback-submit { margin-top: 8px; width: 100%; min-height: 42px; padding: 10px 24px; border: 0; border-radius: 80px; background: linear-gradient(13deg, #f0a6fd 5.68%, #fdd2a2 81.87%); color: #000; font: 500 16px/22px "Mona Sans", sans-serif; }
.feedback-dialog button:disabled { cursor: default; opacity: .55; }
.feedback-dialog button:focus-visible { outline: 1px solid #9ca3af; outline-offset: 2px; }
.feedback-notice[hidden] { display: none; }
.feedback-notice { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; padding: 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fff; box-shadow: 0 4px 20px #0003; color: #991b1b; max-height: calc(100% - 20px); overflow: auto; }
.feedback-notice p { margin: 0; white-space: pre-line; line-height: 20px; }
@media (max-height: 400px) { .feedback-dialog { bottom: 12px; height: calc(100dvh - 24px); } }
