.robot-rich-source{display:none!important}
.robot-rich-editor{display:grid;gap:10px;margin-top:8px}
.robot-rich-parts{display:grid;gap:9px}
.robot-rich-part{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border:1px solid #dbe4f3;border-radius:12px;background:#fff}
.robot-rich-part textarea{display:block!important;width:100%;min-height:78px;resize:vertical;border:1px solid #dbe4f3;border-radius:9px;padding:10px;background:#fff;color:inherit}
.robot-rich-image img{display:block;max-width:180px;max-height:150px;border-radius:10px;object-fit:cover;background:#f2f5fb}
.robot-rich-controls{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.robot-rich-controls button,.robot-rich-actions button{border:1px solid #d6e0f0;border-radius:8px;background:#fff;color:#315078;padding:7px 10px;cursor:pointer}
.robot-rich-controls button:hover,.robot-rich-actions button:hover{border-color:#4773ff;color:#2452df}
.robot-rich-actions{display:flex;gap:8px;flex-wrap:wrap}
.robot-rich-actions button:last-of-type{background:#315efb;border-color:#315efb;color:#fff}
.robot-rich-editor>small{color:#7183a1}
.robot-rich-message{display:grid;gap:8px;max-width:100%}
.robot-rich-message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.robot-rich-message-text:empty{display:none}
.robot-rich-message img{display:block;max-width:min(100%,420px);max-height:520px;border-radius:12px;object-fit:contain;background:rgba(0,0,0,.04)}
.robot-rich-message a{color:inherit;text-decoration:underline;word-break:break-all}
@media(max-width:600px){.robot-rich-part{grid-template-columns:1fr}.robot-rich-controls{justify-content:flex-start}.robot-rich-image img{max-width:100%;max-height:220px}}
