/* CHAT-05 content structure; CHAT-06 message roles only. */
/* Multiline composer: retain the existing field material and circular send art. */
#scene .glass-chatbox-menu .glass-input-field.glass-input-field--target {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  min-height: 90px !important;
  flex: 0 0 auto;
  padding: 8px !important;
  border-radius: 18px !important;
  align-items: stretch;
}
#scene .glass-chatbox-menu .glass-input-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 72px;
  min-height: 72px;
  max-height: 140px;
  padding: 6px 50px 6px 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(34,60,107,.75);
  font: 14px/20px Inter,ui-sans-serif,system-ui,sans-serif;
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}
#scene .glass-chatbox-menu .glass-input-field textarea::placeholder {color:rgba(83,113,166,.42)}
#scene.time-night .glass-chatbox-menu .glass-input-field textarea {color:rgba(230,242,255,.86)}
#scene.time-night .glass-chatbox-menu .glass-input-field textarea::placeholder {color:rgba(220,235,255,.62)}
#scene .glass-chatbox-menu .glass-input-field .glass-send-button {
  position: absolute;
  top: auto !important;
  right: 8px;
  bottom: 8px;
  margin: 0;
  transform: none;
}
.chat-message-text {white-space:pre-wrap}

.glass-chatbox-menu .neo-lens-mini-logo[role="button"] { cursor: pointer; }
.glass-chatbox-menu .neo-lens-mini-logo[role="button"]:focus-visible {
  outline: 1px solid rgba(83, 131, 187, .65);
  outline-offset: 3px;
}
.glass-chatbox-menu .chat-transcript[hidden],
.glass-chatbox-menu[data-chat-content-state="conversation"] > .glass-welcome-copy,
.glass-chatbox-menu[data-chat-content-state="conversation"] > .glass-option-list {
  display: none !important;
}
.glass-chatbox-menu .chat-transcript {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 0 14px;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.glass-chatbox-menu[data-chat-content-state="conversation"] > .neo-lens-mini-logo,
.glass-chatbox-menu[data-chat-content-state="conversation"] > .glass-input-field {
  flex-shrink: 0;
}
.chat-transcript { scrollbar-width: thin; scrollbar-color: #99afca66 transparent; }
.chat-transcript .chat-message {
  position: relative;
  display: flex;
  margin: 0 0 12px;
  padding-inline: 1px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.48;
  color: #233959;
}
.chat-message[data-role="user"] { justify-content: flex-end; }
.chat-bubble {
  min-width: 0;
  width: fit-content;
  box-sizing: border-box;
  padding: 9px 11px 6px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 13px;
  background: rgba(242,241,255,.63);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.chat-message[data-role="user"] .chat-bubble {
  max-width: 75%;
  background: rgba(156,218,247,.48);
  border-color: rgba(186,235,255,.68);
  border-bottom-right-radius: 5px;
}
.chat-message[data-role="assistant"] { padding-left: 28px; }
.chat-message[data-role="assistant"] .chat-bubble {
  max-width: 94%; /* approximately 84% of the transcript, after avatar gutter */
  border-bottom-left-radius: 5px;
}
.chat-message-text { white-space: pre-wrap; }
.chat-bubble time {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 9px;
  line-height: 1.2;
  color: #687c98;
}
.chat-message[data-role="system"] {
  display: block;
  width: fit-content;
  max-width: 90%;
  margin: 14px auto;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(225,235,247,.25);
  color: #61728b;
  font-size: 10px;
  text-align: center;
}
.chat-message[data-continuation="true"] { margin-top: -6px; }
.chat-avatar {
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 23px;
  overflow: hidden;
}
.chat-avatar img {
  position: absolute;
  width: 48px;
  height: 48px;
  max-width: none;
  left: -12px;
  top: -2px;
}
