/* Keep long guide messages from trapping navigation behind Piper. */
.companion-message-details { margin: 6px 0; min-width: 0; }
.companion-message-details > summary { padding: 7px 0; color: #ead49b; cursor: pointer; font-size: 11px; }
.companion-message-details > summary:focus-visible,
.companion-message-body:focus-visible { outline: 2px solid #f2d27b; outline-offset: 2px; }
.companion-message-body { max-height: 180px; overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; padding: 4px 6px 4px 0; }
@media (min-width: 851px) {
  .sidebar { overflow-y: auto; overflow-x: hidden; }
  .sidebar > .piper-side-dock,
  .sidebar > .piper-side-dock.expanded { position: relative; top: auto; bottom: auto; left: auto; width: 100%; max-height: 45vh; overflow-y: auto; overflow-x: hidden; }
  body.piper-chat-open { overflow: auto; }
  body.piper-chat-open:before { display: none; }
}
