.kevin-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}
.kevin-launcher {
  min-width: 210px;
  height: 68px;
  padding: 0 23px 0 8px;
  border: 2px solid var(--black);
  border-radius: 28px;
  background: var(--pink);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  cursor: pointer;
}
.kevin-launcher img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--black);
}
.kevin-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(420px,calc(100vw - 24px));
  height: min(620px,calc(100vh - 110px));
  padding: 0;
  border: 1px solid #313131;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
  overflow: hidden;
}
.kevin-panel[hidden] { display: none; }
.kevin-panel>header {
  height: 70px;
  padding: 0 17px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kevin-panel>header strong {
  display: block;
  font-size: 16px;
  letter-spacing: .12em;
}
.kevin-panel>header small {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-size: 9px;
  letter-spacing: .12em;
}
.kevin-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.kevin-messages {
  height: calc(100% - 205px);
  padding: 16px;
  overflow: auto;
  background: #f5f4f2;
}
.kevin-message {
  max-width: 88%;
  margin: 0 0 13px;
  padding: 12px 14px;
  border: 1px solid #d9d7d3;
  border-radius: 3px 14px 14px 14px;
  background: #fff;
  color: #1d1c1b;
}
.kevin-message.visitor {
  margin-left: auto;
  border-color: #d8747d;
  border-radius: 14px 3px 14px 14px;
  background: #f8d6d9;
}
.kevin-message.error { border-color: #b94b54; }
.kevin-message.loading {
  color: #686662;
  font-style: italic;
}
.kevin-message p {
  margin: 0;
  font: 15px/1.55 Arial,Helvetica,sans-serif;
  white-space: pre-wrap;
}
.kevin-sources {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e4e1dd;
}
.kevin-sources a {
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.kevin-sources a::before {
  content: "READ: ";
  color: #b94b54;
}
.kevin-form {
  height: 135px;
  padding: 12px 15px;
  background: #fff;
  border-top: 1px solid #d9d7d3;
}
.kevin-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kevin-form textarea {
  display: block;
  width: 100%;
  height: 55px;
  padding: 8px 10px;
  resize: none;
  border: 1px solid #aaa7a2;
  border-radius: 4px;
  font: 14px/1.35 Arial,Helvetica,sans-serif;
}
.kevin-form>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.kevin-form small {
  color: #686662;
  font-size: 10px;
}
.kevin-form button {
  min-width: 76px;
  padding: 8px 14px;
  border: 0;
  border-radius: 3px;
  background: var(--pink);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}
.kevin-form button:disabled {
  opacity: .5;
  cursor: wait;
}
@media (max-width:650px) {
  .kevin-widget {
    right: 12px;
    bottom: 12px;
  }
  .kevin-launcher {
    min-width: 185px;
    height: 60px;
    font-size: 14px;
  }
  .kevin-launcher img {
    width: 46px;
    height: 46px;
  }
  .kevin-panel {
    position: fixed;
    inset: 64px 0 0;
    width: 100%;
    height: calc(100vh - 64px);
    border: 0;
    border-radius: 0;
  }
  .kevin-messages { height: calc(100% - 205px); }
}
