/* Shared conversation presentation for OHM and generated beings. */
.widget.simple-chat .conversation .bubble:not(.design-message),
.being-widget .widget-messages .bubble{
 position:relative;flex-shrink:0;width:fit-content;max-width:90%;max-height:none!important;
 padding:10px 14px;font-size:var(--chat-font-size,13px);line-height:1.5;
 white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;overflow:visible;
 border:1px solid #e5e5e1;border-radius:18px 18px 18px 5px;
 background:#f7f7f5;color:#222;box-shadow:0 2px 8px #00000004;
 margin:0;align-self:flex-start;animation:none;transition:none;user-select:text;
}
.widget.simple-chat .conversation .bubble.user,
.being-widget .widget-messages .bubble.user{
 align-self:flex-end;background:#191919;color:#fff;border-color:#191919;
 border-radius:18px 18px 5px 18px;
}
.widget.simple-chat .conversation .bubble strong,
.being-widget .widget-messages .bubble strong{font-weight:700}
.widget.simple-chat .conversation .bubble.thinking,
.being-widget .widget-messages .bubble.thinking{display:block;min-width:0;min-height:0;transform-origin:top left}
.widget .thinking-dots,.being-widget .thinking-dots{display:inline-flex;align-items:center;gap:5px;height:18px;min-width:32px;margin:0;letter-spacing:normal}
.widget .thinking-dots i,.being-widget .thinking-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;animation:shared-thinking 1.2s ease-in-out infinite}
.widget .thinking-dots i:nth-child(2),.being-widget .thinking-dots i:nth-child(2){animation-delay:.15s}
.widget .thinking-dots i:nth-child(3),.being-widget .thinking-dots i:nth-child(3){animation-delay:.3s}
.being-widget .thinking>span.thinking-dots{width:auto;height:18px;background:none;animation:none}
.being-widget .thinking>.answer-text:empty{display:none}
.being-widget{--chat-font-size:13px}
.being-widget .widget-messages{gap:10px;padding:8px 16px 28px;overflow-anchor:none;touch-action:pan-y;scroll-behavior:auto;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 12px,#000 calc(100% - 24px),transparent)}
.being-widget .widget-messages::-webkit-scrollbar{display:none}
.being-widget .conversation-area{left:0;right:0}
:is(.widget,.being-widget) .chat-scroll-rail{position:absolute;right:4px;top:66px;bottom:78px;width:10px;z-index:8;touch-action:none;cursor:pointer;border-radius:8px}
:is(.widget,.being-widget) .chat-scroll-thumb{display:block;position:absolute;top:0;left:3px;width:3px;border-radius:5px;background:#bcbdb580;min-height:30px;pointer-events:auto}
:is(.widget,.being-widget) .chat-scroll-rail:hover{background:#a0a0960c}
:is(.widget,.being-widget) .chat-scroll-rail:hover .chat-scroll-thumb{background:#92958b}
@keyframes shared-thinking{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.widget .thinking-dots i,.being-widget .thinking-dots i{animation:none;opacity:.65}}

/* Suggested replies use the same controls as OHM; character stages stay independent. */
.widget.simple-chat .creator-options>button,
.being-widget .widget-choices button{
 display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;
 padding:10px 12px;border:1px solid #c9cdc3;border-radius:8px;background:#fff;color:#30372b;
 font:inherit;font-size:var(--chat-font-size,13px);font-weight:500;text-align:left;
 box-shadow:0 1px 2px #20281808;transition:background .15s,border-color .15s;
 animation:none;translate:none;
}
.widget.simple-chat .creator-options>button:not(:disabled)::after,
.being-widget .widget-choices button:not(:disabled)::after{content:'→';font-size:16px;line-height:1;flex-shrink:0;color:#657456}
.being-widget .widget-choices button:hover{background:#f3f5ef;border-color:#adbb9e;translate:none}
.being-widget .widget-choices button:focus-visible{outline:2px solid #657456;outline-offset:2px}

/* Use OHM's entry pills for conversational follow-ups; task buttons have their own presentation. */
.being-widget .widget-choices:has(> [data-reply-suggestion]) {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 10px;
}
.being-widget .widget-choices button[data-reply-suggestion] {
  display: inline-flex;
  flex: 0 1 auto;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid #e6e1d8;
  border-radius: 999px;
  background: #faf9f6;
  box-shadow: none;
  font-size: var(--chat-font-size, 13px);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: left;
  transition: background .18s, border-color .18s;
}
.being-widget .widget-choices button[data-reply-suggestion]:not(:disabled)::after {
  content: none;
}
@media (hover: hover) {
  .being-widget .widget-choices button[data-reply-suggestion]:hover {
    background: #f4f0e7;
    border-color: #cbb992;
  }
}
.being-widget .widget-choices button[data-reply-suggestion]:focus-visible {
  outline: 2px solid #657456;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .being-widget .widget-choices button[data-reply-suggestion] { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .being-widget .widget-choices button[data-reply-suggestion] {
    animation: choice-in .18s ease backwards;
    animation-delay: calc(var(--choice-index, 0) * 40ms);
  }
}
