.kh-contact-overlay[hidden] {
  display: none !important;
}

.kh-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16), transparent 360px),
    rgba(3, 12, 32, 0.52);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  backdrop-filter: blur(8px) saturate(112%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.kh-contact-overlay.is-visible {
  opacity: 1;
}

body.kh-contact-is-open {
  overflow: hidden;
}

.kh-msn-modal {
  width: min(820px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #073190;
  border-radius: 7px 7px 4px 4px;
  background:
    linear-gradient(180deg, #0d6fff 0 36px, #eef6ff 36px 100%);
  color: #15223b;
  font-family: Tahoma, "MS Sans Serif", Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  box-shadow:
    0 32px 82px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset,
    0 0 0 3px #0963ed,
    0 0 0 5px #003aa9;
  transform: translateY(10px) scale(0.985);
  transition: transform 160ms ease;
}

.kh-contact-overlay.is-visible .kh-msn-modal {
  transform: translateY(0) scale(1);
}

.kh-msn-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 5px 4px 8px;
  color: #fff;
  background:
    radial-gradient(circle at 28px 8px, rgba(255, 255, 255, 0.52), transparent 36px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #1a86ff 0%, #006cf7 45%, #0050d6 100%);
  border-bottom: 1px solid #032f93;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.kh-msn-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
  font-size: 12px;
}

.kh-msn-title-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 24%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 40% 72%, #fff 0 25%, transparent 26%),
    linear-gradient(145deg, #66d6ff, #0873dd 55%, #094da6);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.82) inset,
    0 2px 3px rgba(0, 0, 0, 0.28);
}

.kh-msn-title-icon::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 5px;
  width: 10px;
  height: 6px;
  border: 1px solid #fff;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  transform: rotate(-10deg);
}

.kh-msn-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.kh-msn-window-controls button {
  width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 43%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, #4aa5ff, #0757d0);
  color: #fff;
  font: 800 14px/1 Tahoma, Verdana, sans-serif;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 1px 2px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.kh-msn-window-controls button:disabled {
  opacity: 1;
}

.kh-msn-window-controls .kh-contact-close {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.12) 39%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #ff9b62, #d93520);
  cursor: pointer;
}

.kh-msn-menu {
  display: flex;
  gap: 16px;
  padding: 3px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid #d6d4be;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fbfbed, #ecebd2);
  color: #1f1f1f;
  font: 400 12px/1.1 Tahoma, "MS Sans Serif", Verdana, sans-serif;
}

.kh-msn-toolbar {
  min-height: 66px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding: 7px 10px 6px;
  border-bottom: 1px solid #9fb1cd;
  background:
    radial-gradient(circle at 17% 5%, rgba(255, 255, 255, 0.98), transparent 165px),
    linear-gradient(180deg, #fff 0%, #f2f6ff 43%, #dce9fb 100%);
  box-shadow:
    0 -14px 24px rgba(62, 113, 182, 0.18) inset,
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.kh-msn-toolbar::before {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -2px;
  width: 198px;
  height: 54px;
  pointer-events: none;
  border: 1px solid rgba(120, 145, 180, 0.5);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 32px 0 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(225, 236, 251, 0.42));
  transform: skewX(-30deg);
  transform-origin: bottom right;
  z-index: 0;
}

.kh-msn-toolbar::after {
  content: "";
  position: absolute;
  right: 75px;
  bottom: 19px;
  width: 66px;
  height: 24px;
  pointer-events: none;
  border: 1px solid rgba(117, 136, 167, 0.5);
  border-radius: 13px;
  background:
    radial-gradient(circle at 22px 50%, #bd5663 0 7px, #fff 8px 10px, transparent 11px),
    radial-gradient(circle at 45px 50%, #6c83b7 0 7px, #fff 8px 10px, transparent 11px),
    rgba(243, 248, 255, 0.72);
  z-index: 0;
}

.kh-msn-toolbar button {
  width: 55px;
  min-height: 54px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111b2b;
  font: 400 10px/1.05 Tahoma, "MS Sans Serif", Verdana, sans-serif;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  position: relative;
  z-index: 1;
}

.kh-msn-toolbar button:disabled {
  opacity: 1;
  cursor: default;
}

.kh-msn-tool-icon {
  width: 31px;
  height: 31px;
  display: block;
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.kh-msn-tool-invite::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #dffff2, transparent 24%),
    radial-gradient(circle at 62% 70%, #0f749a, transparent 47%),
    linear-gradient(135deg, #a6f2df, #39ad87 62%, #0c617a);
  box-shadow: 0 12px 0 3px #46b58c;
}

.kh-msn-tool-invite::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 21px;
  height: 13px;
  border-radius: 50% 50% 38% 38%;
  background: linear-gradient(135deg, #b9f8db, #3ead82 70%, #13736d);
  transform: rotate(-10deg);
}

.kh-msn-tool-files::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 23px;
  height: 21px;
  border: 1px solid #94acd5;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 30%, #fff 0 9%, transparent 10%),
    linear-gradient(135deg, transparent 45%, #43a567 46% 62%, transparent 63%),
    linear-gradient(45deg, #b6ef86 0 42%, #2b8a56 43% 100%);
  box-shadow: 0 3px 8px rgba(77, 104, 160, 0.22);
  transform: rotate(-5deg);
}

.kh-msn-tool-video::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 22px;
  height: 18px;
  border: 1px solid #7890b7;
  border-radius: 3px;
  background:
    radial-gradient(circle at 45% 45%, #4b2d82 0 26%, transparent 27%),
    linear-gradient(180deg, #ecf7ff, #8cc9f4);
  box-shadow: 0 7px 0 -3px #496079;
}

.kh-msn-tool-video::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 10px;
  width: 9px;
  height: 7px;
  border: 1px solid #7890b7;
  border-left: 0;
  background: #f6fbff;
}

.kh-msn-tool-voice::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 32%, #dffff7, transparent 20%),
    linear-gradient(145deg, #98e6cf, #245fa7 62%, #154381);
  box-shadow: 0 0 0 3px rgba(80, 108, 143, 0.35);
}

.kh-msn-tool-voice::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 19px;
  width: 10px;
  height: 6px;
  border: 2px solid #566a8c;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 12px 0;
}

.kh-msn-tool-activity::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 27px;
  height: 18px;
  border-radius: 8px 16px 10px 8px;
  background:
    linear-gradient(90deg, #2c77d5 0 34%, #6a4ecb 35% 62%, #e65e9e 63% 100%);
  box-shadow: 0 0 0 2px rgba(52, 63, 147, 0.22);
}

.kh-msn-tool-activity::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 1px;
  width: 6px;
  height: 28px;
  background: #7241ba;
  border-radius: 8px;
  transform: rotate(10deg);
}

.kh-msn-tool-games::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 20px;
  height: 27px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 22%, #222 0 9%, transparent 10%),
    radial-gradient(circle at 37% 60%, #222 0 8%, transparent 9%),
    radial-gradient(circle at 64% 60%, #222 0 8%, transparent 9%),
    linear-gradient(135deg, #fff, #d8e7f8);
  box-shadow: -7px 1px 0 -2px #f3d465, 0 0 0 1px #7890b7;
  transform: rotate(10deg);
}

.kh-msn-form {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 10px 12px 7px;
  background:
    radial-gradient(circle at 13% 17%, rgba(255, 255, 255, 0.86), transparent 224px),
    radial-gradient(circle at 78% 75%, rgba(255, 255, 255, 0.82), transparent 235px),
    linear-gradient(135deg, #f9fcff 0%, #edf5ff 50%, #dce9fb 100%);
  box-shadow: 0 0 0 2px #075de5 inset;
}

.kh-msn-chat-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 11px;
}

.kh-msn-left-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(184px, 1fr) auto;
}

.kh-msn-to-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 31px;
  padding: 5px 8px;
  border: 2px solid #536579;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #fdfdff, #eeeefb);
}

.kh-msn-to-row label {
  color: #273548;
  font: 400 13px/1 Tahoma, "MS Sans Serif", Verdana, sans-serif;
}

.kh-msn-to-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1e4f9c;
  font-size: 11px;
  font-weight: 700;
}

.kh-msn-transcript {
  min-height: 205px;
  position: relative;
  padding: 11px;
  border: 2px solid #536579;
  background: #fff;
}

.kh-msn-transcript::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(86, 130, 184, 0.08), transparent 58px),
    radial-gradient(circle at 7% 8%, rgba(219, 230, 255, 0.42), transparent 120px);
}

.kh-msn-fields {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}

.kh-msn-fields label {
  display: grid;
  gap: 4px;
  color: #243c5d;
  font-size: 11px;
  font-weight: 700;
}

.kh-msn-fields input,
.kh-msn-message-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #7e94ad;
  border-radius: 2px;
  background: #fff;
  color: #14233a;
  font: 12px/1.35 Tahoma, Verdana, sans-serif;
  box-shadow:
    0 1px 2px rgba(9, 24, 48, 0.16) inset,
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.kh-msn-fields input {
  height: 27px;
  padding: 5px 7px;
}

.kh-msn-idle-copy {
  position: absolute;
  left: 11px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #667487;
  font: 12px/1.25 Tahoma, Verdana, sans-serif;
}

.kh-msn-idle-copy span:first-child {
  color: #2f855a;
  font-weight: 800;
}

.kh-msn-composer {
  min-height: 132px;
  border: 2px solid #536579;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  overflow: hidden;
  background: #fff;
}

.kh-msn-formatting-bar {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 3px 8px;
  border-bottom: 2px solid #718399;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.18) 48%),
    linear-gradient(180deg, #fdfdff, #dfeafa);
  color: #253047;
}

.kh-msn-formatting-bar span {
  display: inline-grid;
  place-items: center;
  min-width: 10px;
  min-height: 10px;
  font-weight: 800;
}

.kh-msn-format-big-a {
  color: #172061;
  font: 800 25px/1 Georgia, "Times New Roman", serif;
}

.kh-msn-smile,
.kh-msn-wink,
.kh-msn-smile-alt {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 35%, #3b2502 0 8%, transparent 9%),
    radial-gradient(circle at 66% 35%, #3b2502 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 65%, #9d4007 0 16%, transparent 17%),
    linear-gradient(145deg, #fff89a, #f2c727 68%, #e29512);
  box-shadow:
    0 0 0 1px rgba(150, 111, 13, 0.28),
    0 2px 4px rgba(30, 48, 76, 0.16);
}

.kh-msn-wink {
  background:
    linear-gradient(18deg, transparent 30%, #3b2502 31% 38%, transparent 39%) 8px 9px / 8px 8px no-repeat,
    radial-gradient(circle at 66% 35%, #3b2502 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 67%, #9d4007 0 16%, transparent 17%),
    linear-gradient(145deg, #fff89a, #f2c727 68%, #e29512);
}

.kh-msn-smile-alt {
  transform: rotate(-8deg);
}

.kh-msn-caret {
  width: 0;
  height: 0;
  min-width: 0 !important;
  min-height: 0 !important;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #17223a;
}

.kh-msn-speaker {
  width: 18px;
  height: 18px;
  border: 1px solid #91a0b4;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 42%, #344b68 43% 57%, transparent 58%),
    radial-gradient(circle at 38% 50%, #344b68 0 18%, transparent 19%),
    linear-gradient(180deg, #fff, #dce9f5);
}

.kh-msn-photo {
  width: 20px;
  height: 16px;
  border: 1px solid #8698b5;
  border-radius: 2px;
  background:
    radial-gradient(circle at 76% 24%, #fff 0 9%, transparent 10%),
    linear-gradient(135deg, transparent 49%, #5f895d 50% 66%, transparent 67%),
    linear-gradient(45deg, #a6d681 0 43%, #5688c7 44% 100%);
}

.kh-msn-gift {
  width: 19px;
  height: 17px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 42%, #b82d5f 43% 57%, transparent 58%),
    linear-gradient(180deg, transparent 38%, #b82d5f 39% 52%, transparent 53%),
    linear-gradient(135deg, #fff, #f4a6bc);
  box-shadow: 0 0 0 1px #b82d5f inset;
}

.kh-msn-compose-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 102px;
}

.kh-msn-message-field {
  min-width: 0;
}

.kh-msn-message-field textarea {
  height: 100%;
  min-height: 102px;
  resize: vertical;
  padding: 8px;
  border: 0;
  border-right: 2px solid #718399;
  box-shadow: none;
}

.kh-msn-fields input:focus,
.kh-msn-message-field textarea:focus,
.kh-msn-window-controls button:focus,
.kh-msn-actions button:focus {
  outline: 2px solid #ffcf45;
  outline-offset: -2px;
}

.kh-contact-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.kh-msn-actions {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 7px 8px;
  background: linear-gradient(180deg, #f7fbff, #e7effb);
}

.kh-msn-actions button {
  min-width: 0;
  min-height: 35px;
  padding: 5px 8px;
  border: 1px solid #9ca9b8;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.16) 52%, rgba(74, 113, 163, 0.12)),
    linear-gradient(180deg, #fff, #dbe8f7);
  color: #4f6072;
  font: 400 12px/1 Tahoma, "MS Sans Serif", Verdana, sans-serif;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 4px rgba(23, 42, 70, 0.16);
  cursor: pointer;
}

.kh-msn-actions button[type="button"] {
  cursor: default;
}

.kh-msn-actions button:hover:not(:disabled) {
  filter: brightness(1.04);
}

.kh-msn-actions button:disabled {
  opacity: 0.82;
}

.kh-contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.kh-msn-side-pane {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.kh-msn-side-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 145px;
  border: 2px solid #536579;
  border-radius: 10px;
  background:
    radial-gradient(circle at 34% 8%, rgba(255, 255, 255, 0.94), transparent 100px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 255, 0.78)),
    linear-gradient(180deg, #f4f9ff, #dce9f7);
  box-shadow:
    0 0 0 11px rgba(232, 242, 253, 0.84) inset,
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.kh-msn-side-card::before,
.kh-msn-side-card::after {
  content: "";
  position: absolute;
  right: -9px;
  border-left: 6px solid #66798d;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.kh-msn-side-card::before {
  top: 35px;
}

.kh-msn-side-card::after {
  bottom: 14px;
  transform: rotate(90deg);
}

.kh-msn-avatar {
  position: relative;
  width: 110px;
  height: 104px;
  transform: scale(0.76);
}

.kh-msn-avatar-head {
  position: absolute;
  left: 54px;
  top: 8px;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, #d7ffe5, transparent 26%),
    radial-gradient(circle at 72% 72%, #0c367b, transparent 45%),
    linear-gradient(135deg, #a2f0c7, #4db486 55%, #083b94);
  box-shadow: 0 4px 12px rgba(22, 51, 95, 0.28);
}

.kh-msn-avatar-body {
  position: absolute;
  left: 27px;
  top: 58px;
  width: 92px;
  height: 86px;
  border-radius: 54% 48% 28% 34%;
  background:
    radial-gradient(circle at 26% 26%, #d9ffdd, transparent 30%),
    linear-gradient(135deg, #a7efcb, #53bd8b 56%, #0c6a83);
  transform: rotate(5deg);
}

.kh-msn-avatar-body::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 29px;
  width: 31px;
  height: 61px;
  border-radius: 26px 0 24px 20px;
  background: linear-gradient(135deg, #9be8ca, #3aae82);
  transform: rotate(16deg);
}

.kh-msn-avatar-petal {
  position: absolute;
  border-radius: 78% 46% 78% 46%;
  box-shadow: 0 2px 7px rgba(18, 37, 73, 0.24);
}

.kh-msn-avatar-petal-blue {
  right: 22px;
  top: 68px;
  width: 57px;
  height: 76px;
  background: linear-gradient(135deg, #4355bd, #183a86);
  transform: rotate(-36deg);
}

.kh-msn-avatar-petal-orange {
  right: 1px;
  top: 69px;
  width: 55px;
  height: 70px;
  background: linear-gradient(135deg, #ffb65b, #f15f38);
  transform: rotate(24deg);
}

.kh-msn-avatar-petal-yellow {
  right: 2px;
  top: 103px;
  width: 51px;
  height: 55px;
  background: linear-gradient(135deg, #fff36d, #f1af28);
  transform: rotate(45deg);
}

.kh-msn-badge-face {
  position: relative;
  width: 94px;
  height: 88px;
  border-radius: 54% 48% 48% 44%;
  background:
    radial-gradient(circle at 42% 31%, #1f1400 0 5%, transparent 6%),
    radial-gradient(circle at 65% 31%, #1f1400 0 5%, transparent 6%),
    radial-gradient(ellipse at 56% 51%, #c91822 0 14%, transparent 15%),
    linear-gradient(135deg, #fff36f, #ffd21f 58%, #f2a20b);
  box-shadow:
    0 11px 20px rgba(180, 132, 11, 0.22),
    0 0 34px rgba(255, 223, 48, 0.25) inset;
  transform: rotate(-13deg);
}

.kh-msn-badge-face span {
  position: absolute;
  right: -9px;
  top: 43px;
  width: 38px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd828, #f2a20b);
}

.kh-contact-status {
  min-height: 24px;
  margin-top: 7px;
  padding: 4px 30px 4px 11px;
  border: 1px solid #c5ccd7;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #fff, #f0f4fb);
  color: #1d2637;
  font: 400 12px/1.25 Tahoma, "MS Sans Serif", Verdana, sans-serif;
}

.kh-contact-status:empty::before {
  content: "Click for new Emoticons and Theme Packs from Kevin Hipke";
}

.kh-contact-status.is-success {
  border-color: #80b66f;
  color: #185313;
  background: linear-gradient(180deg, #fbfff8, #e2f8da);
}

.kh-contact-status.is-error {
  border-color: #d08c7b;
  color: #8b2218;
  background: linear-gradient(180deg, #fffafa, #ffe7e0);
}

.kh-contact-status.is-loading {
  border-color: #8fb3da;
  color: #164f96;
}

@media (max-width: 820px) {
  .kh-contact-overlay {
    padding: 12px;
  }

  .kh-msn-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .kh-msn-menu {
    gap: 15px;
    overflow-x: auto;
    font-size: 16px;
  }

  .kh-msn-toolbar {
    min-height: 82px;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .kh-msn-toolbar button {
    width: 68px;
    min-height: 66px;
    flex: 0 0 68px;
    font-size: 12px;
  }

  .kh-msn-tool-icon {
    width: 35px;
    height: 35px;
    transform: scale(0.82);
  }

  .kh-msn-form {
    padding: 10px;
  }

  .kh-msn-chat-layout {
    grid-template-columns: 1fr;
  }

  .kh-msn-side-pane {
    display: none;
  }

  .kh-msn-left-pane {
    grid-template-rows: auto minmax(160px, auto) auto;
  }

  .kh-msn-transcript {
    min-height: 190px;
    padding: 12px;
  }

  .kh-msn-fields {
    grid-template-columns: 1fr;
  }

  .kh-msn-compose-area {
    grid-template-columns: 1fr;
  }

  .kh-msn-message-field textarea {
    min-height: 170px;
    border-right: 0;
    border-bottom: 2px solid #7a8ba1;
  }

  .kh-msn-actions {
    grid-template-columns: 1fr 1fr;
  }

  .kh-contact-status {
    font-size: 14px;
    padding-right: 12px;
  }
}

@media (max-width: 520px) {
  .kh-msn-titlebar {
    min-height: 42px;
    padding-left: 9px;
  }

  .kh-msn-title-icon {
    width: 25px;
    height: 25px;
  }

  .kh-msn-window-controls button {
    width: 32px;
    height: 30px;
    font-size: 18px;
  }

  .kh-msn-menu {
    padding-inline: 10px;
  }

  .kh-msn-toolbar button:nth-of-type(n + 5) {
    display: none;
  }

  .kh-msn-toolbar {
    justify-content: space-between;
  }

  .kh-msn-to-row {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 42px;
    padding-inline: 10px;
  }

  .kh-msn-to-row label {
    font-size: 17px;
  }

  .kh-msn-formatting-bar {
    gap: 7px;
    padding-inline: 8px;
  }

  .kh-msn-formatting-bar span:nth-child(n + 9) {
    display: none;
  }

  .kh-msn-actions button {
    min-height: 44px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-contact-overlay,
  .kh-msn-modal {
    transition: none;
  }
}
