/* Self-hosted contact-message subset; the existing homepage fonts are unchanged. */
@font-face {
  font-family: "Quanzhi Contact Sans";
  src: url("../fonts/quanzhi-contact-20261003.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Keep the selectable account name visually part of the original sentence. */
.uc-index .contact-account-wrap {
  white-space: nowrap;
}

.uc-index .contact-service-account {
  display: inline-block;
  width: 6.1em;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

.uc-index .contact-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 4px;
  padding: 3px 10px;
  border: 1px solid rgba(143, 84, 110, 0.3);
  border-radius: 6px;
  background: linear-gradient(to right bottom, #fff0f8, #fbd6ec);
  color: var(--home-rose);
  font-family: var(--home-reading-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  vertical-align: baseline;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uc-index .contact-copy-label {
  min-width: 4.1em;
}

.uc-index .contact-copy-button:hover {
  background: linear-gradient(to right bottom, #ffe6f3, #fac6e5);
  border-color: #ad6686;
  box-shadow: 0 2px 6px rgba(116, 61, 85, 0.1);
}

.uc-index .contact-copy-button:disabled {
  cursor: wait;
}

.uc-index .contact-copy-button:focus-visible,
.uc-index .contact-service-account:focus-visible {
  outline: 2px solid #923b62;
  outline-offset: 3px;
}

.uc-index .contact-copy-status {
  display: block;
  font-family: "Quanzhi Contact Sans", var(--home-reading-font);
  color: #674957;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.uc-index .contact-copy-status:not(:empty) {
  margin-top: 6px;
}

.uc-index .contact-copy-status[data-state="success"] {
  color: #3e654b;
}

.uc-index .contact-copy-status[data-state="manual"] {
  color: #843d58;
}

@media (prefers-reduced-motion: reduce) {
  .uc-index .contact-copy-button {
    transition: none;
  }
}
