.conversation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0 6px;
  border-top: 1px solid #e1e9e1;
}
.conversation-entry strong { color: #24483b; font-size: 16px; }
.conversation-entry p { color: #617369; font-size: 12px; line-height: 1.65; margin: 5px 0; }
.conversation-entry button {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid #d6e4d8;
  border-radius: 14px;
  padding: 12px 18px;
  background: #edf4ea;
  color: #2e6748;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.conversation-is-open { overflow: hidden; }
.conversation-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: #203c3666;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overscroll-behavior: contain;
}
.conversation-dialog {
  box-sizing: border-box;
  width: min(100%, 580px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fcfdf9;
  border: 1px solid #ffffff;
  border-radius: 28px;
  padding: 30px;
  color: #24483b;
  box-shadow: 0 24px 80px #142e3033;
}
.conversation-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.conversation-dialog header > div { min-width: 0; }
.conversation-dialog header small { font-size: 12px; font-weight: 700; color: #617369; letter-spacing: .08em; }
.conversation-dialog h2 { font-size: 21px; line-height: 1.45; margin: 7px 0 0; overflow-wrap: anywhere; }
.conversation-dialog button {
  cursor: pointer;
  min-height: 46px;
  font: inherit;
  border: 1px solid #d6e4d8;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  color: #2e6748;
  transition: background-color .16s ease, border-color .16s ease;
}
.conversation-dialog header button { flex: 0 0 auto; min-height: 44px; background: transparent; font-size: 13px; padding: 9px 14px; }
.conversation-dialog button:focus-visible,
.conversation-entry button:focus-visible { outline: 3px solid #d5a442; outline-offset: 3px; }
.conversation-dialog button:disabled { opacity: .5; cursor: default; }
.conversation-balance { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #617369; margin: 16px 0 0; }
.conversation-balance::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #7e9d80; }
.conversation-balance:empty { display: none; }
.conversation-question {
  position: relative;
  background: #edf4ea;
  border: 1px solid #dce8d8;
  border-radius: 22px 22px 22px 6px;
  padding: 23px 24px 26px;
  margin: 25px 0 18px;
}
.conversation-speaker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 700; color: #617369; }
.conversation-listening { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.conversation-listening i { display: inline-flex; height: 14px; align-items: center; gap: 2px; }
.conversation-listening b { display: block; width: 2px; height: 6px; border-radius: 2px; background: #7e9d80; }
.conversation-listening b:nth-child(2) { height: 12px; }
.conversation-listening b:nth-child(3) { height: 8px; }
.conversation-overlay[data-playing="true"] .conversation-listening b,
.conversation-overlay[data-recording="true"] .conversation-listening b { animation: conversation-wave .8s ease-in-out infinite alternate; }
.conversation-overlay[data-playing="true"] .conversation-listening b:nth-child(2),
.conversation-overlay[data-recording="true"] .conversation-listening b:nth-child(2) { animation-delay: -.3s; }
.conversation-overlay[data-playing="true"] .conversation-listening b:nth-child(3),
.conversation-overlay[data-recording="true"] .conversation-listening b:nth-child(3) { animation-delay: -.6s; }
.conversation-question p { font-family: var(--font-story, sans-serif); font-size: 27px; line-height: 1.65; margin: 16px 0 0; overflow-wrap: anywhere; }
.conversation-status { min-height: 3.2em; margin: 16px 0 12px; font-size: 14px; line-height: 1.6; color: #456452; }
.conversation-dialog .conversation-primary { display: block; width: 100%; min-height: 62px; background: #2e6748; color: #fff; border: 1px solid #2e6748; font-size: 19px; font-weight: 700; padding: 16px; box-shadow: 0 3px 0 #214e36; }
.conversation-dialog .conversation-primary:disabled { box-shadow: none; }
.conversation-overlay[data-recording="true"] .conversation-primary { background: #24483b; border-color: #24483b; }
.conversation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; }
.conversation-actions button { font-size: 14px; padding: 10px 16px; }
.conversation-actions:not(:has(button:not([hidden]))) { display: none; }
.conversation-note,
[data-chat-consent] { font-size: 12px; line-height: 1.8; color: #617369; }
[data-chat-consent] { margin: 0; }
.conversation-note { text-align: center; margin: 18px 0 0; }
.conversation-dialog [hidden] { display: none !important; }
[data-conversation-wallet] { background: #fcfdf9; border: 1px solid #dce8d8; border-radius: 22px; padding: 24px; margin: 22px 0; }
[data-conversation-wallet] h3 { margin-top: 0; color: #24483b; }
[data-conversation-wallet] p,
[data-conversation-wallet] li { color: #617369; font-size: 13px; line-height: 1.8; }
[data-conversation-wallet] details { margin-top: 20px; border-top: 1px solid #dce8d8; padding-top: 16px; font-size: 13px; }
[data-conversation-wallet] summary { cursor: pointer; color: #2e6748; }
[data-conversation-wallet] summary:focus-visible { outline: 3px solid #d5a442; outline-offset: 3px; }
.conversation-balances { display: flex; gap: 20px 36px; flex-wrap: wrap; }
.conversation-balances p { margin: 8px 0 14px; }
.conversation-balances strong { display: block; font-size: 25px; color: #2e6748; }
@keyframes conversation-wave { to { transform: scaleY(.4); } }
@media (hover: hover) {
  .conversation-entry button:hover,
  .conversation-dialog button:not(:disabled):hover { background: #edf4ea; border-color: #9cb79f; }
  .conversation-dialog .conversation-primary:not(:disabled):hover { background: #24483b; border-color: #24483b; }
}
@media (max-width: 600px) {
  .conversation-overlay { padding: 12px; }
  .conversation-dialog { padding: 23px 19px; border-radius: 24px; max-height: calc(100dvh - 24px); }
  .conversation-dialog header { gap: 12px; }
  .conversation-dialog h2 { font-size: 19px; }
  .conversation-question { padding: 19px 18px 22px; margin-top: 22px; }
  .conversation-question p { font-size: 23px; }
}
@media (max-width: 360px) {
  .conversation-entry { gap: 10px; }
  .conversation-entry strong { font-size: 14px; }
  .conversation-entry button { padding: 10px 13px; }
  .conversation-dialog { padding: 21px 16px; }
  .conversation-actions { gap: 8px; }
  .conversation-actions button { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-dialog button { transition: none; }
  .conversation-listening b { animation: none !important; }
}
