/* Menu d'un message (message-menu.mjs) : variables des consoles (--bg-card, --border, --text-*,
   --accent, --red, --shadow-pop), avec des valeurs de repli pour une page qui ne les a pas. */
.message-menu { position: fixed; z-index: 1000; min-width: 150px; padding: 5px; display: flex; flex-direction: column; gap: 1px; background: var(--bg-card, #fff); color: var(--text-main, #2b2d31); border: 1px solid var(--border, #e6e3dd); border-radius: 10px; box-shadow: var(--shadow-pop, 0 12px 32px rgba(0,0,0,.18)); }
.message-menu button { all: unset; box-sizing: border-box; padding: 7px 12px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.message-menu button:hover, .message-menu button:focus-visible { background: var(--bg-card-hover, #f1efeb); }
.message-menu button.danger { color: var(--red, #b0414b); }

.msg.msg-deleted { opacity: .62; box-shadow: none; border: 1px dashed var(--border-strong, #d6d2ca); }
.msg.msg-deleted .msg-text { text-decoration: line-through; text-decoration-thickness: 1px; }
.msg-gone { font-weight: 600; color: var(--red, #b0414b); }
.msg-edited { all: unset; cursor: pointer; font-size: 11px; font-weight: 600; opacity: .85; text-decoration: underline dotted; }
.msg.nous .msg-edited { color: var(--bubble-out-text, inherit); }
.msg.lui .msg-edited { color: var(--bubble-in-text, inherit); }
.msg-versions { margin-top: 4px; padding: 6px 8px; border-left: 2px solid currentColor; background: color-mix(in srgb, currentColor 8%, transparent); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; }
.msg-version-meta { font-size: 10.5px; opacity: .75; }
.msg-version-text { font-size: 13px; opacity: .9; }
.msg-quote { font-size: 12.5px; padding: 3px 8px; border-left: 3px solid var(--accent, #4e79a7); border-radius: 4px; background: color-mix(in srgb, currentColor 9%, transparent); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-left: 3px solid var(--accent, #4e79a7); border-radius: 8px; background: color-mix(in srgb, var(--accent, #4e79a7) 9%, transparent); }
.reply-quote { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.reply-quote b { color: var(--accent, #4e79a7); font-weight: 650; }
.reply-quote span { color: var(--text-muted, #6d7078); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-cancel { all: unset; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: var(--text-muted, #6d7078); }
.reply-cancel:hover { background: var(--bg-card-hover, #f1efeb); }

.message-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border, #e6e3dd); border-radius: 14px; background: var(--bg-card, #fff); color: var(--text-main, #2b2d31); box-shadow: var(--shadow-pop, 0 12px 32px rgba(0,0,0,.18)); }
.message-dialog::backdrop { background: rgba(20, 20, 24, .35); }
.message-dialog form { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.message-dialog h3 { margin: 0; font-size: 16px; }
.message-dialog-hint { margin: 0; font-size: 13px; color: var(--text-muted, #6d7078); }
.message-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-strong, #d6d2ca); background: var(--bg-input, #fff); color: inherit; resize: vertical; }
.message-dialog blockquote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--border-strong, #d6d2ca); color: var(--text-muted, #6d7078); font-size: 13px; }
.message-dialog-error { margin: 0; min-height: 1em; font-size: 13px; color: var(--red, #b0414b); }
.message-dialog-error:empty { display: none; }
.message-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.message-dialog-actions button { font: inherit; font-size: 13.5px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border, #e6e3dd); background: var(--bg-card, #fff); color: inherit; cursor: pointer; }
.message-dialog-actions .primary { background: var(--accent, #4e79a7); border-color: transparent; color: #fff; }
.message-dialog-actions .danger { background: var(--red, #b0414b); border-color: transparent; color: #fff; }
.message-dialog-actions button:disabled { opacity: .6; cursor: progress; }
