.mm-app [data-chat-message].mm-swipe-active{transition:none;will-change:transform}
.mm-app [data-chat-message].mm-swipe-active::after{content:'↩';position:absolute;left:-39px;right:auto;top:50%;border:0;display:grid;place-items:center;width:30px;height:30px;margin-top:-15px;border-radius:50%;background:#6470ca26;color:#606cb0;font:600 21px/1 system-ui;pointer-events:none;opacity:.7}
.mm-app [data-chat-message].mm-swipe-ready::after{color:#fff;background:linear-gradient(135deg,#4169e1,#8054d9);opacity:1;box-shadow:0 3px 12px #5148a233}
.mm-app .mm-edited-badge{display:inline-block;margin-inline:5px;color:var(--mm-muted,#65718d);font-size:10px;font-weight:500;line-height:1.4}
.mm-app .mm-bubble-menu{min-width:34px;min-height:34px;top:2px;right:3px;touch-action:manipulation}
.mm-app .mm-menu-items button{min-height:48px;transition:background-color .12s}
.mm-app .mm-menu-items button:active{background:#6975da1a}
.mm-app .mm-menu-items button:focus-visible,.mm-app #mm-edit-message-text:focus-visible{outline:3px solid #8796f5;outline-offset:2px}
.mm-app #mm-edit-message-text{width:100%;resize:vertical;min-height:140px;max-height:45dvh;line-height:1.55;font:inherit;border:1px solid var(--mm-line,#d4d9ed);border-radius:14px;padding:13px;background:var(--mm-surface,#fff);color:var(--mm-text,#202748)}
.mm-app #mm-edit-message-text:disabled{opacity:.7}
.mm-app #mm-edit-message-status:empty{display:none}
.mm-app #mm-edit-message-save{min-height:46px;background:linear-gradient(120deg,#426ce1,#7852d5);border:0;color:white}
.mm-app #mm-feature-notice{background:#263160}
@media(prefers-reduced-motion:reduce){.mm-app [data-chat-message],.mm-app .mm-menu-items button{transition:none}}

.mm-app #messages .mm-message-receipt {
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  min-width:44px; min-height:28px; padding:2px 3px; margin:0;
  border:0; border-radius:8px; color:var(--thread-muted,#65718d);
  background:transparent; box-shadow:none; vertical-align:middle; touch-action:manipulation;
}
.mm-message-receipt svg { display:block; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mm-message-receipt .mm-receipt-checks { width:21px; height:15px; }
.mm-message-receipt[data-receipt="read"] .mm-receipt-checks { color:#1681dc; }
.mm-message-receipt .mm-receipt-info-icon { width:15px; height:15px; stroke-width:1.5; }
.mm-app #messages .mm-message-receipt:focus-visible { outline:2px solid #6778ed; outline-offset:2px; }
.mm-app #messages .mm-message-receipt:active { background:var(--thread-soft,#dde6ff); }
.mm-receipt-timeline { margin:0; }
.mm-receipt-timeline[hidden] { display:none; }
.mm-receipt-timeline>div { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; padding:12px 0; border-bottom:1px solid var(--mm-line,#d4d9ed); }
.mm-receipt-timeline dt { font-weight:650; }
.mm-receipt-timeline dd { margin:0; color:var(--mm-muted,#65718d); font-variant-numeric:tabular-nums; }

.mm-app #messages .mm-quick-edit {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:32px; min-width:48px; margin-inline:2px;
  padding:3px 8px; border:0; border-radius:8px;
  color:inherit; background:transparent; font:600 12px/1.3 system-ui;
  text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.mm-app #messages .mm-quick-edit[hidden] { display:none; }
.mm-app #messages .mm-quick-edit:focus-visible,
.mm-app #mm-edit-message button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.mm-app .mm-edit-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.mm-app .mm-edit-cancel { min-height:44px; padding:0 16px; border:1px solid var(--mm-line,#d4d9ed); border-radius:12px; color:inherit; background:transparent; }
.mm-app .mm-edit-keys { margin:0; color:var(--mm-muted,#65718d); font-size:.85rem; }
@media(pointer:coarse) {
  .mm-app #messages .mm-quick-edit { min-height:44px; }
  .mm-app .mm-edit-keys { display:none; }
}

.mm-app #mm-edit-message-review {
  padding: 10px 14px;
  border-inline-start: 3px solid var(--mm-muted, #65718d);
}
.mm-app #mm-edit-message-latest {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mm-app #mm-edit-message-review[hidden], .mm-app #mm-edit-message-retry[hidden] { display: none; }

/* Touch opens the conversation actions. Links and desktop text keep their native behavior. */
.mm-app #messages.mm-touch-actions [data-mm-decorated="1"] > :is(.mm-rich-text,.direct-quote) {
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.mm-app #messages.mm-touch-actions .mm-rich-text a {
  -webkit-touch-callout:default;
  -webkit-user-select:text;
  user-select:text;
}
.mm-app #mm-manual-copy { box-sizing:border-box; width:100%; min-height:5rem; font:inherit; user-select:text; }
