.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #332119;
  margin-top: 24px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #57372c70;
  padding-bottom: 5px;
}
.contact-chat {
  width: min(580px, calc(100% - 32px));
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #3b3b3c;
  background: #171719;
  color: #f2f2ee;
  overflow: hidden;
  box-shadow: 0 30px 100px #0009;
}
.contact-chat[open] {
  display: flex;
  flex-direction: column;
}
.contact-chat::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
.contact-chat [hidden] {
  display: none !important;
}
.contact-chat .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 26px 28px;
  border-bottom: 1px solid #ffffff12;
  flex-shrink: 0;
}
.contact-chat-header span {
  font-size: 12px;
  color: #e48a64;
}
.contact-chat-header h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 10px 0 0;
}
.contact-chat-header button {
  padding: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  color: #bcbcb7;
  font-size: 30px;
  cursor: pointer;
}
.contact-thread {
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-message {
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: keep-all;
  flex-shrink: 0;
}
.contact-message p {
  margin: 0;
  white-space: pre-wrap;
}
.contact-message p + p {
  margin-top: 12px;
}
.contact-message.assistant {
  color: #d0d0c9;
  padding-right: 12px;
}
.contact-message.user {
  max-width: 90%;
  align-self: flex-end;
  padding: 13px 18px;
  background: #35312d;
  color: #f2e9df;
  border-radius: 14px 14px 2px 14px;
}
.contact-typing {
  color: #d68a67;
  font-size: 12px;
  padding: 0 0 8px;
}
.contact-typing::after {
  content: " …";
}
.contact-chat-compose {
  flex-shrink: 0;
  padding: 0 24px 22px;
}
#contact-chat-status {
  color: #e9a484;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 12px;
}
#contact-chat-status:empty {
  display: none;
}
#contact-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #4a4945;
  background: #232323;
}
#contact-chat-form:focus-within {
  border-color: #d77850;
}
#contact-message {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 2px;
  resize: none;
  color: #eee;
  background: transparent;
  outline: none;
  font: 16px/1.6 var(--sans);
  max-height: 140px;
}
#contact-message::placeholder {
  color: #858581;
}
#contact-chat-form > button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #eb794c;
  color: #231910;
  font-size: 24px;
  cursor: pointer;
}
#contact-chat-form > #contact-stop {
  font-size: 13px;
}
#contact-chat-form > button:disabled {
  opacity: 0.4;
  cursor: default;
}
.contact-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}
.contact-chat-actions button,
.contact-chat-actions a {
  font: 12px/1.7 var(--sans);
  color: #bbb7ad;
  border: 0;
  background: none;
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
}
.contact-chat-actions a {
  color: #e49b77;
}
.contact-chat-note {
  color: #82827c;
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 0;
}
@media (max-width: 620px) {
  .contact-chat {
    width: calc(100% - 20px);
    height: min(720px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }
  .contact-chat-header {
    padding: 20px;
  }
  .contact-chat-header h2 {
    font-size: 21px;
  }
  .contact-thread {
    padding: 22px 20px;
  }
  .contact-chat-compose {
    padding: 0 16px 18px;
  }
}
.contact-mail-draft {
  flex-shrink: 0;
  padding: 20px;
  border: 1px solid #9e684349;
  background: #25211e;
  border-radius: 4px;
}
.contact-mail-draft h3 {
  color: #f2d5bc;
  font: 500 16px/1.5 var(--sans);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.draft-recipient {
  color: #c89979;
  font-size: 11px;
  margin: 0 0 14px;
}
.draft-subject {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
  color: #e6e0d6;
}
.draft-body {
  margin: 10px 0 18px;
  max-height: 165px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #bcb5aa;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fill-email {
  display: block;
  text-align: center;
  padding: 13px 16px;
  background: #ec8052;
  color: #21160e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.fill-email:hover {
  background: #f69368;
}
.draft-note {
  margin: 10px 0 0;
  color: #9c9287;
  font-size: 11px;
  line-height: 1.7;
}

.contact-chat {
  color-scheme: dark;
}
.contact-thread,
.draft-body {
  scrollbar-width: thin;
  scrollbar-color: #62594e transparent;
}
