/* Keep actions with their answer. Only the desktop layout aligns the last block to the composer. */
:root .app-shell .answer-tail160 .answer-actions {margin:12px 0 0;padding:0;border:0}
.answer-tail160 {display:flow-root}
.answer-tail160 .answer-mode156 {font-size:.88rem;margin:0;padding-top:.2em}
.app-shell[data-nav155="wide"] #chat-scroll160:has(> #inline-activity.hidden) > #messages:has(> .assistant:last-child) {flex:1 0 auto;padding-bottom:0}
.app-shell[data-nav155="wide"] #chat-scroll160:has(> #inline-activity.hidden) #messages > .assistant:last-child {
  display:flex;flex-direction:column;flex:1 0 auto;margin-bottom:0
}
.app-shell[data-nav155="wide"] #chat-scroll160:has(> #inline-activity.hidden) #messages > .assistant:last-child > .message-body {
  flex:1 0 auto;display:flex;flex-direction:column;align-items:stretch
}
.app-shell[data-nav155="wide"] #chat-scroll160:has(> #inline-activity.hidden) #messages > .assistant:last-child :is(.message-content,.file-card):has(+ .answer-tail160) {margin-bottom:auto}
.app-shell[data-nav155="wide"] #chat-scroll160:has(> #inline-activity.hidden) #messages > .assistant:last-child .answer-tail160 {padding-block-end:2lh}

/* Under a follow-up question both rows begin at the blue bubble's left edge.
   The separate copy-question button stays at its right edge. */
:root .app-shell #messages > .message.user:has(> .answer-tail160) {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  grid-template-rows:auto auto; align-items:start; row-gap:4px;
}
:root .app-shell #messages > .message.user:has(> .answer-tail160) > .message-body {
  grid-area:1 / 2; width:100%; max-width:none;
}
:root .app-shell #messages > .message.user:has(> .answer-tail160) > .user-actions {
  grid-area:2 / 2; justify-self:end; align-self:start; width:max-content;
  margin:0; z-index:1;
}
:root .app-shell #messages > .message.user > .answer-tail160 {
  grid-area:2 / 2; width:100%; min-width:0; align-self:start; justify-self:stretch;
}
:root .app-shell #messages > .message.user > .answer-tail160 .answer-actions {
  margin:0; padding:0; margin-inline-end:46px; min-width:0;
  display:flex; justify-content:flex-start; align-items:center; flex-wrap:wrap;
}
:root .app-shell #messages > .message.user > .answer-tail160 .answer-mode156 {
  overflow-wrap:anywhere; text-align:start;
}
