.mck-helper-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(23, 34, 37, .16);
  border-radius: 999px;
  background: #172225;
  color: #fff;
  padding: 8px 15px 8px 8px;
  font: 800 14px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.mck-helper-launch-avatar {
  width: 44px;
  height: 44px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6f7f3, #d5e4e0);
  border: 2px solid rgba(255, 255, 255, .88);
}

.mck-helper-launch-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.35) translateY(8px);
}

.mck-helper-launch-text {
  white-space: nowrap;
}

.mck-helper-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 9999;
  width: min(420px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 96px));
  display: none;
  flex-direction: column;
  border: 1px solid rgba(23, 34, 37, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  color: #172225;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .2);
  overflow: hidden;
  font: 500 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mck-helper-panel.is-open {
  display: flex;
}

.mck-helper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e2e8e6;
  background: linear-gradient(135deg, #f6fbfa, #eef6f4);
}

.mck-helper-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 12%;
  background: #e6f0ed;
  border: 1px solid rgba(23, 34, 37, .13);
  box-shadow: 0 10px 24px rgba(23, 34, 37, .13);
  transform: scale(1.18) translateY(4px);
}

.mck-helper-head-copy {
  flex: 1;
  min-width: 0;
}

.mck-helper-head strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.mck-helper-head em {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  background: #172225;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.mck-helper-head small {
  display: block;
  margin-top: 8px;
  color: #657477;
}

.mck-helper-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e2df;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.mck-helper-body {
  padding: 14px;
  overflow: auto;
}

.mck-helper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mck-helper-chip {
  border: 1px solid #d7e2df;
  border-radius: 999px;
  background: #fff;
  padding: 8px 10px;
  color: #263336;
  font-weight: 800;
  cursor: pointer;
}

.mck-helper-input {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #cfdcd8;
  border-radius: 12px;
  padding: 12px;
  color: #172225;
  background: #fff;
  font: inherit;
}

.mck-helper-send {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: #007f72;
  color: #fff;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mck-helper-send:disabled {
  opacity: .55;
  cursor: wait;
}

.mck-helper-answer {
  margin-top: 12px;
  border: 1px solid #dce7e4;
  border-radius: 12px;
  background: #f9fcfb;
  padding: 12px;
  color: #243235;
}

.mck-helper-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mck-helper-answer-head b {
  font-size: 13px;
  letter-spacing: 0;
}

.mck-helper-answer-head span {
  border-radius: 999px;
  background: #e7f4f1;
  color: #006f64;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.mck-helper-answer-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.52;
}

.mck-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mck-helper-actions-title {
  flex: 0 0 100%;
  color: #5f7073;
  font-size: 12px;
}

.mck-helper-actions a {
  border: 1px solid #d7e2df;
  border-radius: 999px;
  padding: 8px 10px;
  color: #172225;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 640px) {
  .mck-helper-launch {
    right: 10px;
    bottom: 10px;
  }

  .mck-helper-panel {
    right: 8px;
    bottom: 62px;
    width: calc(100vw - 16px);
  }

  .mck-helper-launch-text {
    display: none;
  }

  .mck-helper-launch {
    padding: 6px;
  }
}
