/* MEETUS 0.6.25.2 COMMUNITY2-TG11-WORKSPACE27
 * Desktop pinned-banner grid repair.
 * WORKSPACE26 remains responsible only for the mobile discussion offset.
 */

@media (min-width: 701px) {
  /* A visible pin is an extra direct grid child of #chatPane.  The old
     three-row template assigned it to the flexible 1fr row, stretching the
     banner over most of the conversation.  Give the desktop chat its real
     four rows: header, compact pin, messages, composer. */
  #chatPane.chat-pane:has(> #workspacePinnedBanner:not(.hidden)) {
    grid-template-rows: 58px auto minmax(0, 1fr) auto !important;
  }

  #chatPane.chat-pane > #workspacePinnedBanner:not(.hidden) {
    grid-row: 2 !important;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    overflow: hidden !important;
  }

  #chatPane.chat-pane:has(> #workspacePinnedBanner:not(.hidden)) > #messageArea {
    grid-row: 3 !important;
    min-height: 0 !important;
  }

  #chatPane.chat-pane:has(> #workspacePinnedBanner:not(.hidden)) > #composer {
    grid-row: 4 !important;
  }
}
