.feedback-launcher {
  position: fixed;
  z-index: 70;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  border: 1px solid rgba(83, 61, 35, .25);
  border-radius: 999px;
  padding: 11px 17px;
  color: #fffaf0;
  background: #a34f2e;
  box-shadow: 0 5px 18px rgba(58, 36, 16, .25);
  font: 600 14px/1.2 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.feedback-launcher:hover { background: #873d21; transform: translateY(-2px); }
.feedback-launcher:focus-visible { outline: 3px solid #fff4d4; outline-offset: 3px; }
.feedback-launcher span { margin-right: 5px; font-size: 17px; }

.feedback-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(90dvh, 850px);
  margin: auto;
  padding: 0;
  border: 1px solid #d4c4a7;
  border-radius: 16px;
  color: #342d24;
  background: #fffdf7;
  box-shadow: 0 28px 90px rgba(38, 26, 15, .4);
  overflow: auto;
}
.feedback-dialog::backdrop { background: rgba(32, 25, 18, .55); backdrop-filter: blur(3px); }
.feedback-form { padding: 26px 28px 24px; }
.feedback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.feedback-head h2 { margin: 2px 0 0; font: 700 27px/1.25 Georgia, "Microsoft YaHei", serif; color: #254e57; }
.feedback-kicker { margin: 0; color: #9b4f30; font-size: 12px; letter-spacing: .12em; }
.feedback-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eee7d9; color: #514537; font-size: 25px; line-height: 1; cursor: pointer; }
.feedback-intro { margin: 15px 0 12px; color: #6f6253; font-size: 14px; line-height: 1.7; }
.feedback-context { display: inline-block; margin-bottom: 18px; padding: 5px 10px; border-radius: 6px; background: #edf3ef; color: #45645c; font-size: 12px; }
.feedback-form label { display: block; margin-top: 14px; color: #4e453a; font-size: 13px; font-weight: 600; }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d7cbb7;
  border-radius: 8px;
  padding: 10px 12px;
  color: #302a23;
  background: #fff;
  font: 400 14px/1.55 system-ui, "Microsoft YaHei", sans-serif;
}
.feedback-form textarea { min-height: 130px; resize: vertical; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: #7c9d92; outline: 3px solid rgba(124, 157, 146, .17); }
.feedback-required { color: #a34f2e; font-size: 11px; font-weight: 400; }
.feedback-count { display: flex; justify-content: space-between; margin-top: 4px; color: #948777; font-size: 11px; }
.feedback-privacy { margin: 14px 0 0; color: #8b7f6e; font-size: 11px; line-height: 1.65; }
.feedback-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.feedback-status { min-height: 22px; margin: 12px 0 0; color: #6f6253; font-size: 13px; }
.feedback-status.success { color: #287047; }
.feedback-status.error { color: #b3322a; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.feedback-actions button { border-radius: 8px; padding: 10px 22px; font: 600 14px/1.2 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer; }
.feedback-cancel { border: 1px solid #d7cbb7; color: #65594a; background: transparent; }
.feedback-submit { border: 1px solid #265d5b; color: #fff; background: #265d5b; }
.feedback-submit:disabled { opacity: .6; cursor: wait; }

@media (max-width: 600px) {
  .feedback-launcher { left: 14px; bottom: 80px; padding: 10px 14px; }
  .feedback-form { padding: 22px 19px 20px; }
  .feedback-row { grid-template-columns: 1fr; gap: 0; }
  .feedback-dialog { max-height: 92dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-launcher { transition: none; }
}
