/* BUIL-2026-12-01-10, Felix 3 Dec 2026 ~7:23 PM and ~7:30 PM SGT (reuses the r3 activity row and the shipped sent-notes chip; nothing new is drawn).
   1. Everything attached to a user message (the sent notes chip, its hover card, file chips, pictures) sits on the right, against the bubble's right edge.
   2. The activity row, its callout and the agent's output are one small gap apart (the same gap above and below the callout); the icons have no background. */
.msg.user > .response-annotation-sent, .msg.user > .response-annotation-sent:first-child { left: auto; right: 0; }
.msg.user .response-annotation-sent .annotation-hover-card { left: auto; right: 0; }
.msg.user[data-chips-only="1"] > .response-annotation-sent, .msg.user[data-chips-only="1"] > .response-annotation-sent:first-child { position: static; display: flex; margin: 0 0 0 auto; width: fit-content; }
.msg-wrapper > .attachment-list { align-self: flex-end; margin-left: auto; justify-content: flex-end; }

#messages { --r3-act-gap: var(--space-2); }
#messages .turn-timeline { margin-top: var(--r3-act-gap); }
#messages .turn-summary[data-open="1"] + .turn-summary-member { padding-top: var(--r3-act-gap); }
#messages .turn-summary-member .tool-detail-host, #messages .turn-summary-member .tool-detail-host.stable { margin-top: 0; margin-bottom: var(--r3-act-gap); }
#messages .turn-summary[data-open="1"] { margin-bottom: 0; }
#messages .turn-summary-member .tool-detail-host .tool-detail,
#messages .turn-summary-member .mail-fold-item.tool-detail { margin: 0; }
#messages .turn-timeline > button.tool-icon,
#messages .turn-timeline > button.tool-icon:hover,
#messages .turn-timeline > button.tool-icon.active { background: none; }
/* r3 sheet row 3 (original prototype): pictures first, then the file chips, then the bubble; the pasted-text card keeps its size on one line. */
.msg-wrapper > .attachment-list:has(.attachment-card-thumb) { order: -1; }
.sent-paste-card .sent-paste-meta { white-space: nowrap; flex: none; }
.sent-paste-card .sent-paste-name { min-width: 0; }
