/* KageMux transcript refresh — owner-approved transparent/no-bubble conversation.
   Applies only to message rows in the public preview and signed-in workspace.
   Keeps scrolling, composer, existing theme, account ownership and message handling intact. */

/* Both real saved replies and scripted guest replies share these semantic classes. */
body.kc-home .kc-message,
body.kc-chat-page .kc-message {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  outline:0 !important;
  padding:0 !important;
  align-items:flex-start;
  gap:14px;
  margin:20px 0 34px;
}

/* Remove all green speech bubbles, including higher-specificity user wrappers. */
body.kc-home .kc-message .kc-message-body,
body.kc-chat-page .kc-message .kc-message-body,
body.kc-home .kc-user .kc-message-body,
body.kc-chat-page .kc-user .kc-message-body,
body.kc-home .kc-assistant .kc-message-body,
body.kc-chat-page .kc-assistant .kc-message-body {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  outline:0 !important;
  padding:0 !important;
  min-width:0;
}

/* Preserve the familiar right-hand user alignment without boxed styling. */
body.kc-home .kc-message.kc-user,
body.kc-chat-page .kc-message.kc-user {
  justify-content:flex-end;
}
body.kc-home .kc-message.kc-user .kc-message-body,
body.kc-chat-page .kc-message.kc-user .kc-message-body {
  width:fit-content;
  max-width:min(760px,91%);
  margin-left:auto;
  text-align:left;
}
body.kc-home .kc-message.kc-assistant .kc-message-body,
body.kc-chat-page .kc-message.kc-assistant .kc-message-body {
  max-width:min(810px,calc(100% - 46px));
  flex:1 1 auto;
}

/* Lightweight, unboxed ghost avatar and readable attribution. */
body.kc-home .kc-message-avatar,
body.kc-chat-page .kc-message-avatar {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
}
body.kc-home .kc-message .kc-message-meta,
body.kc-chat-page .kc-message .kc-message-meta,
body.kc-home .kc-message.kc-user .kc-message-meta,
body.kc-chat-page .kc-message.kc-user .kc-message-meta {
  color:#b9c5ba;
  font-size:13px;
  font-weight:550;
  line-height:1.6;
  margin-bottom:6px;
  letter-spacing:0;
}
body.kc-home .kc-message .kc-message-text,
body.kc-chat-page .kc-message .kc-message-text {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  color:#eff3ef;
  font-size:17px;
  font-weight:400;
  line-height:1.75;
  letter-spacing:-.008em;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

/* Mobile retains spacious but compact transcript rows, without overflow. */
@media (max-width:760px) {
  body.kc-home .kc-message,
  body.kc-chat-page .kc-message {
    margin:15px 0 27px;
    gap:10px;
  }
  body.kc-home .kc-message .kc-message-text,
  body.kc-chat-page .kc-message .kc-message-text {
    font-size:16px;
    line-height:1.7;
  }
  body.kc-home .kc-message .kc-message-meta,
  body.kc-chat-page .kc-message .kc-message-meta {
    font-size:12px;
    margin-bottom:5px;
  }
  body.kc-home .kc-message.kc-user .kc-message-body,
  body.kc-chat-page .kc-message.kc-user .kc-message-body {
    max-width:94%;
  }
}
