.bm-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.bm-modal.show { display: flex; }
.bm-modal-card { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 440px; max-height: 90dvh; display: flex; flex-direction: column; }
.bm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.bm-modal-head h3 { margin: 0; font-family: var(--font-display); }
.bm-x { background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.bm-modal-body { padding: 8px 16px 16px; overflow-y: auto; }
.bm-share-img { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: var(--radius-md); }
.bm-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bm-hint { color: var(--text-dim); font-size: 13px; }
.bm-err { color: #ff6b6b; font-size: 13px; min-height: 1em; }
.bm-input { width: 100%; box-sizing: border-box; background: var(--input); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; font: inherit; }
.bm-chat-log { height: 50dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.bm-msg { position: relative; max-width: 80%; padding: 8px 12px; border-radius: 16px; background: var(--card-alt); word-break: break-word; }
.bm-msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bm-msg.theirs { align-self: flex-start; }
.bm-del { background: none; border: 0; color: inherit; opacity: .5; cursor: pointer; margin-left: 6px; padding: 0; }
.bm-chat-form { display: flex; gap: 8px; margin-top: 8px; }
.bm-chat-form .bm-input { margin-top: 0; }
