/* STEP1152 — main lobby only. The in-game chat drawer is intentionally untouched. */
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-list {
  display:flex !important; flex-direction:column !important; gap:5px !important;
  min-height:0 !important; overflow-y:auto !important; padding:2px 3px 4px !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-message,
body.sb-photo892 .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-message {
  box-sizing:border-box !important; flex:none !important; min-height:0 !important;
  padding:7px 9px !important; margin:0 !important;
  border:1px solid rgba(210,179,112,.32) !important;
  border-radius:12px !important; background:rgba(30,46,34,.95) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line,
body.sb-photo892 .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line {
  display:grid !important; grid-template-columns:32px minmax(0,1fr) !important;
  grid-template-rows:auto !important; gap:8px !important;
  align-items:center !important; min-height:32px !important;
  margin:0 !important; line-height:1.45 !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line > .chat-avatar-mini,
body.sb-photo892 .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line > .chat-avatar-mini {
  box-sizing:border-box !important; grid-column:1 !important; grid-row:1 !important;
  width:32px !important; height:32px !important; min-width:32px !important; min-height:32px !important;
  margin:0 !important; padding:0 !important; overflow:hidden !important;
  border:1px solid rgba(203,174,106,.4) !important; border-radius:50% !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line > .chat-avatar-mini img {
  display:block !important; width:100% !important; height:100% !important; object-fit:cover !important;
}
/* STEP1143's renderer: nickname and text share one inline line; time at right. */
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1132-message-content {
  position:relative !important; grid-column:2 !important; grid-row:1 !important;
  min-width:0 !important; padding-right:48px !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1143-inline-copy {
  display:block !important; margin:0 !important; font-size:14.5px !important; line-height:1.48 !important;
  overflow-wrap:anywhere !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1143-inline-copy > .chat-nickname-button,
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1143-inline-copy > strong {
  display:inline !important; width:auto !important; padding:0 !important; margin:0 5px 0 0 !important;
  border:0 !important; background:none !important; box-shadow:none !important;
  color:#e3c68d !important; font-size:14.5px !important; font-weight:750 !important;
  white-space:normal !important; text-align:left !important; line-height:inherit !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1143-inline-copy > .chat-text {
  display:inline !important; margin:0 !important; color:#f5f4eb !important;
  font-size:14.5px !important; font-weight:400 !important; line-height:inherit !important;
  white-space:normal !important; overflow-wrap:anywhere !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .sb1143-message-time {
  position:absolute !important; right:0 !important; top:2px !important; margin:0 !important;
  color:#9daaa0 !important; font-size:11px !important; font-weight:500 !important;
  text-align:right !important; font-variant-numeric:tabular-nums !important;
}
/* Compatibility with the older one-level message HTML if still present. */
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) {
  display:flex !important; flex-wrap:wrap !important; gap:0 5px !important; align-items:center !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) > .chat-avatar-mini {order:0; flex:0 0 32px !important; margin-right:4px !important;}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) > .chat-nickname-button,
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) > strong {
  order:1; display:inline !important; width:auto !important; max-width:none !important;
  color:#e3c68d !important; font-size:14.5px !important; white-space:normal !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) > .chat-text {
  order:2; display:inline !important; width:auto !important; color:#f5f4eb !important;
  font-size:14.5px !important; line-height:1.48 !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line:not(:has(.sb1132-message-content)) > time {
  order:3; display:inline-block !important; margin-left:auto !important; color:#9daaa0 !important;
  font-size:11px !important; font-weight:500 !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-line > .chat-separator {display:none !important;}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-lobby .chat-message-actions {display:none !important;}
/* VIP header in the main lobby only: no changes to arrow, buttons, iframe or messages. */
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-private .private-chat-conversation-drawer-header {
  min-height:49px !important; padding:6px 10px !important; gap:7px !important;
}
body .app-shell .chat-panel.sb-trio-lobby > .sb-trio-stage-private .private-chat-conversation-drawer-header h2 {
  margin:1px 0 0 !important; font-size:14px !important; line-height:1.25 !important;
}
