.chat-composer{border-top:1px solid var(--line,#dce7df);padding-top:12px;display:grid;gap:9px}.chat-compose-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-compose-tools small{font-size:11px;color:var(--muted);line-height:1.7;flex:1}.chat-compose-tools .button{min-height:40px}.chat-selected{display:flex;gap:10px;flex-wrap:wrap}.chat-preview{width:110px;border:1px solid var(--line,#dce7df);border-radius:10px;padding:6px;background:#fff;position:relative}.chat-preview img{display:block;width:100%;height:75px;object-fit:cover;border-radius:6px}.chat-preview button{position:absolute;right:3px;top:3px;border:0;border-radius:50%;background:#fff;color:#923d36;width:28px;height:28px;cursor:pointer}.chat-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;padding-top:5px}.chat-image-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.chat-image-button{border:1px solid var(--line,#dce7df);padding:4px;background:#fff;border-radius:10px;cursor:zoom-in;max-width:180px;min-height:70px}.chat-image-button img{display:block;max-width:100%;max-height:180px;min-height:60px;object-fit:contain;border-radius:6px}.chat-image-button small{font-size:10px;color:var(--muted)}.chat-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.chat-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.chat-actions button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;text-decoration:underline;text-underline-offset:3px;padding:5px 2px;cursor:pointer}.chat-actions button:focus-visible,.chat-preview button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-actions button[data-chat-op=retract]{color:#9b4941}.chat-tombstone{font-style:italic;color:var(--muted);border:1px dashed var(--line,#dce7df);border-radius:10px;padding:10px 13px;font-size:12px}.chat-confirm{width:430px;max-width:92vw;border:1px solid var(--line,#dce7df);border-radius:14px;padding:24px;color:var(--ink);box-shadow:0 18px 70px #173a3133}.chat-confirm::backdrop{background:#173a3155}.chat-confirm h3{margin:0 0 12px}.chat-confirm p{font-size:13px;line-height:1.8}.chat-confirm .row{margin-top:20px;justify-content:flex-end;gap:10px}.chat-image-viewer{width:min(1000px,95vw);max-width:95vw;max-height:94dvh;border:0;border-radius:12px;padding:14px;background:#fff}.chat-image-viewer::backdrop{background:#13261dc9}.chat-image-viewer img{display:block;max-width:100%;max-height:80dvh;margin:12px auto 0;object-fit:contain}.chat-image-viewer .button{display:block;margin-left:auto}.chat-upload-error{font-size:12px;line-height:1.6;color:#943f37}.message .chat-body{background:var(--surface,#f2f6f3);border:1px solid var(--line,#dce7df);border-radius:12px;padding:12px 15px}.message.mine .chat-body{background:#e6f1e9}.support-message .chat-body{font-size:12px}.chat-submit-note{font-size:11px;color:var(--muted)}
@media(max-width:760px){.chat-compose-tools{align-items:stretch}.chat-compose-tools .button{min-height:44px}.chat-compose-tools small{flex-basis:100%}.chat-actions button{font-size:12px;min-height:38px;padding:5px 4px}.chat-image-button{max-width:150px}.chat-preview{width:96px}.chat-preview button{width:32px;height:32px}.chat-confirm{padding:20px}.chat-confirm .button{min-height:44px}.chat-composer .chat-body{font-size:16px}}

.support-message .chat-body{padding:12px 14px;border:1px solid var(--line,#dce7df);border-radius:12px;background:#fff}.support-message.mine .chat-body{background:#e6f1e9}

.chat-image-button img{width:160px;height:110px}
.chat-read-status{display:block;margin-top:7px;color:var(--muted,#718078);font-size:11px;line-height:1.6;text-align:right}.chat-read-status.seen{color:var(--accent,#386653);font-weight:700}@media(max-width:760px){.chat-read-status{font-size:12px}}
