.mt-support {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  font-size: 15px;
  color: #182541;
}
.mt-support button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mt-support-toggle, .mt-support-compose button {
  border: 0;
  border-radius: 12px;
  background: #5146e5;
  color: #fff;
  padding: 11px 15px;
}
.mt-support-toggle {
  float: right;
  box-shadow: 0 8px 22px #25206340;
}
.mt-support section[hidden] { display: none; }
.mt-support section:not([hidden]) + .mt-support-toggle { display: none; }
.mt-support section {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  height: min(440px, calc(100dvh - 90px));
  overflow: hidden;
  border: 1px solid #dce2f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 45px #18254130;
}
.mt-support header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: #262069;
  color: #fff;
}
.mt-support header button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 23px;
  width: 34px;
  height: 34px;
}
.mt-support-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}
.mt-support-log p {
  width: fit-content;
  max-width: 90%;
  padding: 8px 11px;
  margin: 0 0 8px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mt-support-answer { background: #f0f2f9; }
.mt-support-question { margin-left: auto !important; background: #e8e4ff; }
.mt-support form { padding: 10px; border-top: 1px solid #dce2f2; }
.mt-support-compose { display: flex; gap: 6px; }
.mt-support-compose input {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid #bbc5de;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
}
.mt-support-compose button:disabled { opacity: .65; cursor: wait; }
.mt-support-status:not(:empty) { margin-top: 6px; color: #4b5875; }
