.vrcor-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(105deg, var(--pink, #ff176f), var(--magenta, #d913aa) 50%, var(--blue, #1975f2));
  box-shadow: 0 16px 45px rgba(34, 31, 94, .3);
  font: 800 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.vrcor-chat-launcher:hover { transform: translateY(-2px); }
.vrcor-chat-launcher:focus-visible,
.vrcor-chat-close:focus-visible,
.vrcor-chat-send:focus-visible,
.vrcor-chat-input:focus-visible {
  outline: 3px solid rgba(25, 117, 242, .32);
  outline-offset: 3px;
}

.vrcor-chat-launcher-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #102039;
  background: #fff;
  font-size: 15px;
}

.vrcor-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1001;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 125px));
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 22, 41, .28);
  font-family: Arial, Helvetica, sans-serif;
}

.vrcor-chat-panel[hidden] { display: none; }

.vrcor-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(128deg, #071629, #0d2850);
}

.vrcor-chat-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff176f, #d913aa 55%, #1975f2);
  font-size: 13px;
  font-weight: 900;
}

.vrcor-chat-title { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.vrcor-chat-title strong { font-size: 15px; }
.vrcor-chat-title span { color: #aebed1; font-size: 11px; }

.vrcor-chat-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 24px;
  cursor: pointer;
}

.vrcor-chat-messages {
  overflow-y: auto;
  padding: 18px;
  background: #f5f8fc;
  overscroll-behavior: contain;
}

.vrcor-chat-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
  border: 1px solid #dce5ef;
  border-radius: 16px 16px 16px 5px;
  padding: 11px 13px;
  color: #243a55;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 52, 82, .06);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.vrcor-chat-message-user {
  margin-left: auto;
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  color: #fff;
  background: #146bd1;
}

.vrcor-chat-message-status { color: #73849a; font-style: italic; }

.vrcor-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid #dce5ef;
  padding: 12px;
  background: #fff;
}

.vrcor-chat-input {
  min-width: 0;
  min-height: 46px;
  max-height: 110px;
  resize: none;
  border: 1px solid #ccd8e6;
  border-radius: 12px;
  padding: 12px;
  color: #102039;
  background: #fff;
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}

.vrcor-chat-send {
  align-self: end;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  background: #102b50;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vrcor-chat-send:disabled,
.vrcor-chat-input:disabled { cursor: wait; opacity: .6; }

.vrcor-chat-notice {
  margin: 0;
  padding: 0 14px 12px;
  color: #6b7c91;
  background: #fff;
  font-size: 10px;
  line-height: 1.45;
}

.vrcor-chat-notice a { color: #1464b8; text-decoration: underline; }

@media (max-width: 700px) {
  .vrcor-chat-launcher { right: 12px; bottom: 12px; min-height: 52px; padding: 0 16px; }
  .vrcor-chat-panel { right: 10px; bottom: 76px; width: calc(100vw - 20px); height: min(600px, calc(100vh - 92px)); }
}

@media (prefers-reduced-motion: reduce) {
  .vrcor-chat-launcher { transition: none; }
}
