.wb-reactions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.wb-reaction-btn,
.wb-draft-trigger {
  min-height: 34px;
  border: 1px solid rgba(156, 105, 43, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #6f5c49;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wb-reaction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 52px;
  padding: 6px 10px;
}

.wb-reaction-btn:hover,
.wb-draft-trigger:hover {
  border-color: rgba(183, 111, 28, 0.58);
  background: #fffaf1;
  transform: translateY(-1px);
}

.wb-reaction-btn.is-active {
  border-color: #bd741f;
  background: #f7e8ce;
  color: #874f10;
  box-shadow: 0 0 0 2px rgba(189, 116, 31, 0.08);
}

.wb-reactions[data-loading="true"] {
  opacity: 0.58;
}

.wb-reaction-btn:disabled,
.wb-draft-trigger:disabled {
  cursor: wait;
  transform: none;
}

.wb-draft-trigger {
  padding: 6px 11px;
}

.wb-draft-trigger.has-draft {
  border-color: rgba(94, 130, 83, 0.55);
  background: #edf4e9;
  color: #4c7042;
}

.wb-draft-trigger.has-update {
  border-color: rgba(183, 111, 28, 0.58);
  background: #fff4df;
  color: #9a5c16;
}

.wb-feedback-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid rgba(142, 98, 49, 0.2);
  border-radius: 24px;
  background: #fffdf8;
  color: #362a20;
  box-shadow: 0 26px 90px rgba(44, 31, 21, 0.28);
  overflow: auto;
}

.wb-feedback-dialog::backdrop {
  background: rgba(35, 27, 20, 0.44);
  backdrop-filter: blur(7px);
}

.wb-feedback-sheet {
  padding: 26px;
}

.wb-feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.wb-feedback-head h2 {
  margin: 5px 0 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 25px;
  line-height: 1.25;
}

.wb-feedback-kicker {
  color: #a66821;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wb-feedback-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(142, 98, 49, 0.18);
  border-radius: 50%;
  background: #fff;
  color: #7b6958;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.wb-feedback-help {
  margin: 16px 0 18px;
  color: #837465;
  font-size: 14px;
  line-height: 1.65;
}

.wb-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wb-reason-option {
  position: relative;
}

.wb-reason-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wb-reason-option span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(142, 98, 49, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #665647;
  font-size: 14px;
  cursor: pointer;
}

.wb-reason-option input:checked + span {
  border-color: #bd741f;
  background: #f9ecd4;
  color: #7f4c11;
  box-shadow: 0 0 0 2px rgba(189, 116, 31, 0.08);
}

.wb-feedback-note,
.wb-draft-editor {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #58483b;
  font-size: 14px;
  font-weight: 750;
}

.wb-feedback-note i {
  color: #9a8b7e;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.wb-feedback-note textarea,
.wb-draft-editor textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(142, 98, 49, 0.22);
  border-radius: 13px;
  background: #fff;
  color: #372b22;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  outline: none;
  padding: 12px 13px;
}

.wb-feedback-note textarea:focus,
.wb-draft-editor textarea:focus {
  border-color: #bd741f;
  box-shadow: 0 0 0 3px rgba(189, 116, 31, 0.1);
}

.wb-privacy-note {
  margin: 13px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f2ea;
  color: #7d7166;
  font-size: 12px;
  line-height: 1.55;
}

.wb-feedback-error {
  min-height: 19px;
  margin-top: 9px;
  color: #b64c3c;
  font-size: 13px;
}

.wb-feedback-error[data-type="success"] {
  color: #52734a;
}

.wb-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.wb-primary-btn,
.wb-secondary-btn,
.wb-danger-quiet,
.wb-text-btn {
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.wb-primary-btn,
.wb-secondary-btn,
.wb-danger-quiet {
  min-height: 40px;
  padding: 8px 14px;
}

.wb-primary-btn {
  border: 1px solid #b56c19;
  background: #bd741f;
  color: #fff;
}

.wb-secondary-btn {
  border: 1px solid rgba(142, 98, 49, 0.22);
  background: #fff;
  color: #6c5947;
}

.wb-danger-quiet {
  border: 1px solid rgba(172, 76, 58, 0.2);
  background: transparent;
  color: #a35145;
}

.wb-primary-btn:disabled,
.wb-secondary-btn:disabled,
.wb-danger-quiet:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wb-text-btn {
  margin-top: 10px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #9c641f;
}

.wb-feedback-message {
  position: fixed;
  z-index: 10020;
  left: 50%;
  bottom: 28px;
  max-width: min(480px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(142, 98, 49, 0.2);
  border-radius: 12px;
  background: rgba(48, 37, 28, 0.94);
  color: #fff;
  box-shadow: 0 12px 35px rgba(44, 31, 21, 0.25);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.wb-feedback-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wb-feedback-message[data-type="error"] {
  background: rgba(137, 55, 43, 0.96);
}

.wb-draft-update {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(189, 116, 31, 0.25);
  border-radius: 13px;
  background: #fff3de;
  color: #744814;
  font-size: 13px;
  line-height: 1.55;
}

.wb-draft-update > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.wb-official-preview {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(142, 98, 49, 0.15);
  border-radius: 12px;
  background: #f8f5ef;
  color: #6f6257;
  font-size: 13px;
  line-height: 1.65;
}

.wb-official-preview > div {
  margin-top: 7px;
  white-space: pre-wrap;
}

.wb-action-spacer {
  flex: 1;
}

.hidden {
  display: none !important;
}

@media (max-width: 620px) {
  .wb-feedback-sheet {
    padding: 20px 16px;
  }

  .wb-reason-grid {
    grid-template-columns: 1fr;
  }

  .wb-feedback-actions,
  .wb-draft-actions {
    flex-wrap: wrap;
  }

  .wb-draft-actions .wb-action-spacer {
    display: none;
  }

  .wb-draft-actions button {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-reaction-btn,
  .wb-draft-trigger,
  .wb-feedback-message {
    transition: none;
  }
}
