/* Conversația rămâne simplă, iar mesajele publicate și administrarea rămân accesibile. */
.layout { display: flex; flex-direction: column; gap: 18px; }
.chat-panel, .mesaje-community { width: 100%; background: #fff; border: 1px solid #dce7e5; border-radius: 16px; box-shadow: 0 8px 26px rgba(15, 23, 42, .06); }
.chat-panel { padding: clamp(16px, 3vw, 26px); }
.chat-heading h2 { font-size: 21px; margin-bottom: 4px; }
.chat-heading .hint { margin-bottom: 14px; }
.chat-public { margin: 0 0 16px; color: #335448; background: #effbf5; border: 1px solid #c9efda; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-height: 190px; max-height: min(570px, 60vh); overflow-y: auto; overscroll-behavior: contain; background: #f5f8f7; border: 1px solid #e5eeea; border-radius: 12px; }
.chat-turn { display: flex; align-items: flex-start; gap: 9px; }
.chat-turn-visitor { flex-direction: row-reverse; }
.chat-bubble { max-width: min(78%, 680px); border-radius: 14px; padding: 11px 14px; box-shadow: 0 2px 6px rgba(15, 23, 42, .04); overflow-wrap: anywhere; }
.chat-answer { background: white; border: 1px solid #dce8e1; border-top-left-radius: 4px; }
.chat-visitor-bubble { background: #dff7e9; border: 1px solid #b8e9ca; border-top-right-radius: 4px; }
.chat-bubble strong { font-size: 13px; color: #064e3b; }
.chat-bubble .message-text, .chat-bubble .reply-text { margin: 5px 0 0; font-size: 15px; line-height: 1.55; }
.chat-avatar, .chat-arhimede-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; }
.chat-avatar { display: inline-flex; align-items: center; justify-content: center; background: #075e51; color: #fff; font-weight: 800; font-size: 16px; }
.chat-arhimede-avatar { object-fit: cover; background: #fff; border: 2px solid #22c55e; }
.chat-verified { display: block; color: #52695f; font-size: 11px; font-weight: 600; }
.chat-permalink { display: inline-block; margin-top: 6px; color: #047857; font-size: 11px; font-weight: 700; }
.chat-listen { margin-top: 7px; padding: 4px 0; border: 0; background: transparent; color: #047857; font-size: 12px; font-weight: 700; }
.chat-feedback { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chat-feedback button { min-height: 40px; padding: 7px 9px; border: 1px solid #b4d7c7; border-radius: 8px; background: #f0fdf4; color: #065f46; font-size: 12px; font-weight: 700; }
.chat-feedback button[aria-pressed="true"] { background: #065f46; color: white; }
.chat-compose { display: flex; align-items: stretch; gap: 9px; margin-top: 16px; }
.chat-compose textarea { flex: 1; min-height: 72px; max-height: 230px; resize: vertical; }
.chat-compose-actions { display: flex; flex-direction: column; gap: 7px; min-width: 118px; }
.chat-compose .send { flex: 1; min-height: 40px; padding: 8px 12px; }
.chat-voice, .chat-account-button { border: 1px solid #b4d7c7; border-radius: 8px; background: #f0fdf4; color: #065f46; padding: 9px 12px; font-weight: 700; }
.chat-voice:hover, .chat-account-button:hover { background: #dcfce7; }
.chat-voice[aria-pressed="true"] { background: #dc2626; color: #fff; border-color: #dc2626; }
.chat-options { margin-top: 12px; border-top: 1px solid #e2e8f0; padding-top: 12px; }
.chat-options summary { cursor: pointer; color: #047857; font-size: 14px; font-weight: 700; }
.chat-identity { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.chat-options input[name="nume"] { max-width: 360px; }
.chat-account-button { margin-top: 10px; }
#chat-google-button { margin-top: 10px; }
.chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mesaje-community { padding: 18px 22px; }
.mesaje-community > summary { cursor: pointer; color: #065f46; font-size: 16px; font-weight: 800; }
.mesaje-community > section { margin-top: 20px; }
.message-person { display: flex; align-items: center; gap: 9px; }
.message-person .chat-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
.message-person-meta { display: block; color: #64748b; font-size: 11px; line-height: 1.4; }
@media (max-width: 560px) {
    .chat-panel, .mesaje-community { padding: 15px; }
    .chat-thread { padding: 12px; max-height: 52vh; }
    .chat-bubble { max-width: 86%; }
    .chat-compose { flex-direction: column; }
    .chat-compose-actions { flex-direction: row; }
    .chat-compose-actions .chat-voice, .chat-compose-actions .send { flex: 1; min-height: 44px; }
}
