.reaction-panel {
  margin: 12px 0 10px;
  padding: 12px 4px 4px;
  border-top: 1px dashed rgba(143, 118, 88, 0.34);
}

.reaction-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reaction-line > p,
.reaction-reasons > p {
  margin: 0;
  color: #7a6a58;
  font-family: "Gowun Dodum", sans-serif;
}

.reaction-line > p {
  flex: 0 0 auto;
  font-size: 14px;
}

.reaction-options {
  display: flex;
  gap: 7px;
}

.reaction-options button,
.reaction-reasons button {
  border: 1px solid #d8c7ad;
  color: #5b4b3c;
  background: rgba(255, 253, 248, 0.72);
  font-family: "IBM Plex Sans KR", sans-serif;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.reaction-options button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

.reaction-options button span {
  color: #a96d58;
  font-size: 17px;
  line-height: 1;
}

.reaction-options button .reaction-wave {
  color: #7e8b6b;
  font-family: Georgia, serif;
  font-weight: 700;
}

.reaction-options button:hover,
.reaction-reasons button:hover {
  border-color: #a99376;
  background: #fffaf1;
}

.reaction-options button:active,
.reaction-reasons button:active {
  transform: translateY(1px);
}

.reaction-options button[aria-pressed="true"][data-reaction="matched"] {
  border-color: #b98a72;
  background: #f7e8df;
  color: #754c3c;
}

.reaction-options button[aria-pressed="true"][data-reaction="missed"] {
  border-color: #8d9a7d;
  background: #eef1e7;
  color: #536044;
}

.reaction-reasons {
  margin-top: 11px;
  padding: 12px 13px;
  border-left: 2px solid rgba(126, 139, 107, 0.55);
  background: rgba(250, 247, 238, 0.74);
}

.reaction-reasons > p {
  margin-bottom: 9px;
  font-size: 13px;
}

.reaction-reasons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reaction-reasons button {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.reaction-reasons button.selected {
  border-color: #7e8b6b;
  background: #e9eee1;
  color: #4f5b42;
}

.reaction-status {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: #7a6a58;
  font-size: 11px;
  text-align: right;
}

.proposal-invite {
  margin: 18px 0 6px;
}

.proposal-invite > button {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 40px 1fr 20px;
  gap: 11px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid #cdbb9f;
  border-radius: 7px;
  color: #3a3026;
  background: #fff9ef;
  box-shadow: 0 2px 7px rgba(58, 48, 38, 0.06);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.proposal-invite > button:hover {
  border-color: #9c8669;
  background: #fffdf8;
}

.proposal-invite > button:active {
  transform: translateY(1px);
}

.proposal-invite-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #aab497;
  border-radius: 6px;
  color: #657153;
  background: #eef1e7;
  font-family: Georgia, serif;
  font-size: 21px;
  transform: rotate(-2deg);
}

.proposal-invite-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.proposal-invite-copy small {
  color: #7e8b6b;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 11px;
}

.proposal-invite-copy strong {
  color: #4a3d31;
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.proposal-invite-arrow {
  color: #8f7658;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
  text-align: right;
}

.proposal-sheet {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(58, 48, 38, 0.28);
  backdrop-filter: blur(2px);
}

.proposal-panel {
  position: relative;
  width: min(100%, 510px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border: 1px solid #d8c7ad;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(rgba(255, 249, 239, 0.96), rgba(255, 249, 239, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(143, 118, 88, 0.06) 25px 26px);
  box-shadow: 0 10px 30px rgba(58, 48, 38, 0.14);
}

.proposal-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 92px;
  height: 22px;
  border: 1px solid rgba(190, 165, 126, 0.35);
  border-radius: 3px;
  background: rgba(239, 217, 176, 0.72);
  transform: translateX(-50%) rotate(-1.5deg);
}

.proposal-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8c7ad;
  border-radius: 50%;
  color: #6f5e4b;
  background: #fffaf1;
  font-size: 21px;
  cursor: pointer;
}

.proposal-kicker {
  display: block;
  margin-bottom: 6px;
  color: #7e8b6b;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 13px;
}

.proposal-panel h2 {
  margin: 0;
  color: #3a3026;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 25px;
  font-weight: 400;
}

.proposal-intro {
  margin: 8px 0 22px;
  color: #7a6a58;
  font-size: 13px;
  line-height: 1.65;
}

.proposal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.proposal-panel label > span,
.proposal-message-field > span,
.proposal-name-field > span {
  display: block;
  margin-bottom: 7px;
  color: #5b4b3c;
  font-size: 13px;
  font-weight: 600;
}

.proposal-panel select,
.proposal-panel textarea,
.proposal-panel input[type="text"] {
  width: 100%;
  border: 1px solid #d8c7ad;
  border-radius: 6px;
  color: #3a3026;
  background: rgba(255, 253, 248, 0.9);
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  outline: none;
}

.proposal-panel select,
.proposal-panel input[type="text"] {
  height: 43px;
  padding: 0 11px;
}

.proposal-panel textarea {
  min-height: 136px;
  padding: 12px;
  line-height: 1.7;
  resize: vertical;
}

.proposal-panel select:focus,
.proposal-panel textarea:focus,
.proposal-panel input[type="text"]:focus {
  border-color: #8f7658;
  box-shadow: 0 0 0 2px rgba(143, 118, 88, 0.12);
}

.proposal-message-field,
.proposal-name-field {
  position: relative;
  display: block;
  margin-top: 15px;
}

.proposal-message-field small {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #958572;
  font-size: 11px;
}

.proposal-name-field > span small {
  display: inline;
  color: #958572;
  font-size: 10px;
  font-weight: 400;
}

.proposal-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 17px;
}

.proposal-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #7e8b6b;
}

.proposal-consent span {
  margin: 0 !important;
  color: #7a6a58 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.55;
}

.proposal-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid #6d795d;
  border-radius: 6px;
  color: #fffdf8;
  background: #7e8b6b;
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.proposal-submit:hover {
  background: #707c60;
}

.proposal-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.proposal-result {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-left: 2px solid #7e8b6b;
  color: #586049;
  background: rgba(233, 238, 225, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.netlify-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 560px) {
  .reaction-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .reaction-options {
    width: 100%;
  }

  .reaction-options button {
    flex: 1;
    justify-content: center;
    padding-inline: 7px;
  }

  .proposal-sheet {
    padding: 8px;
  }

  .proposal-panel {
    max-height: 92vh;
    padding: 27px 18px 20px;
  }

  .proposal-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-options button,
  .reaction-reasons button,
  .proposal-invite > button {
    transition: none;
  }
}
