.overseas-feedback {
  font: 15px/1.5 system-ui, 'Microsoft YaHei', sans-serif;
  color: #20352b;
  user-select: text;
}
.overseas-feedback [hidden] { display: none !important; }
.overseas-feedback button { cursor: pointer; font: inherit; }
.overseas-feedback button:disabled { cursor: wait; opacity: .65; }
.overseas-feedback :focus-visible { outline: 3px solid #5c8557; outline-offset: 3px; }
.feedback-launch {
  position: fixed;
  z-index: 30;
  inset-inline-start: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #e6d6a4;
  border-radius: 24px;
  background: #fffaf0;
  color: #30513b;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px #183e302f;
}
.feedback-badge {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 12px;
  background: #9d402c;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.feedback-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(550px, calc(100vw - 24px));
  max-height: min(720px, calc(100dvh - 24px));
  padding: 0;
  overflow: auto;
  border: 1px solid #dfd4b8;
  border-radius: 18px;
  background: #fffaf0;
  color: #20352b;
  box-shadow: 0 24px 70px #152c20a0;
}
.feedback-dialog::backdrop { background: #18382b86; }
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e7dcc2;
}
.feedback-header h2 { margin: 0; font-size: 22px; }
.feedback-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #dfd4b8;
  border-radius: 50%;
  background: transparent;
  color: #264b36;
  font-size: 23px !important;
  line-height: 1;
}
.feedback-content { padding: 16px 20px 21px; }
.feedback-content p { margin: 0 0 10px; }
.feedback-status {
  padding: 8px 11px;
  border-left: 3px solid #5c8557;
  border-radius: 4px;
  background: #edf3e8;
}
.feedback-status.feedback-error { border-color: #a24931; background: #faede7; color: #713522; }
.feedback-form { display: flex; flex-direction: column; gap: 7px; }
.feedback-form label { font-weight: 700; }
.feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 94px;
  padding: 9px 11px;
  resize: vertical;
  border: 1px solid #a9b8a7;
  border-radius: 9px;
  background: #fffefa;
  color: inherit;
  font: inherit;
}
.feedback-form textarea::placeholder { color: #677269; }
.feedback-form input[type=file] { max-width: 100%; font: inherit; }
.feedback-form small, .feedback-muted, .feedback-ticket-meta, .feedback-reply time { color: #526459; }
.feedback-action, .feedback-secondary {
  align-self: flex-start;
  padding: 8px 13px;
  border: 1px solid #c2cbbd;
  border-radius: 9px;
  background: #fffefa;
  color: #214332;
  font-weight: 700 !important;
}
.feedback-action { margin-top: 5px; border-color: #315c43; background: #315c43; color: #fff; }
.feedback-action:hover { background: #234b35; }
.feedback-secondary:hover, .feedback-ticket:hover { background: #f0f3e7; }
.feedback-history { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e7dcc2; }
.feedback-dialog h3 { margin: 0 0 8px; font-size: 16px; }
.feedback-ticket-list { display: grid; gap: 8px; }
.feedback-ticket {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #ddd4ba;
  border-radius: 9px;
  background: #fffefa;
  color: #20352b;
  text-align: start;
  overflow-wrap: anywhere;
}
.feedback-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.feedback-state, .feedback-new {
  display: inline-flex;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 7px;
  background: #f4e9cd;
  color: #5b4a28;
  font-size: 12px;
  font-weight: 650;
}
.feedback-state-answered { background: #e0ebf1; color: #274d60; }
.feedback-state-resolved { background: #e5efde; color: #2e5738; }
.feedback-new { background: #fae2d9; color: #873d2c; }
.feedback-more, .feedback-admin { display: block; margin-top: 10px; }
.feedback-admin { width: fit-content; color: #27553b; }
.feedback-detail-content { margin-top: 13px; }
.feedback-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feedback-detail-content > .feedback-message { margin-top: 8px; }
.feedback-image-link { display: block; margin: 8px 0 14px; width: fit-content; }
.feedback-image {
  display: block;
  max-width: min(340px, 100%);
  max-height: 210px;
  object-fit: contain;
  border: 1px solid #ddd4ba;
  border-radius: 8px;
}
.feedback-reply { padding: 9px 11px 1px; margin-bottom: 8px; border-radius: 9px; background: #eff3e9; }
.feedback-reply time { display: block; margin-bottom: 3px; font-size: 12px; }
@media (max-width: 480px) {
  .feedback-launch { min-height: 36px; padding: 6px 10px; font-size: 13px !important; }
  .feedback-header, .feedback-content { padding-inline: 13px; }
}
