/* Side rail (#104, #124): the fork renders the rail's list sections itself;
   what is left here is for Chainlit's own side view and the rail's file mode
   (pinned elements without sections). These rules lean on the fork's DOM
   (ElementSideView); recheck them on a Chainlit bump. */

@media (min-width: 768px) {
  /* Chainlit's own file view (a side link in the chat, a resumed thread's
     document): its ← becomes a × on the right, like FileHeader's. Closing
     it brings the rail back. */
  #side-view-title > button {
    order: 1;
    margin-left: auto;
  }
  #side-view-title > button svg {
    display: none;
  }
  #side-view-title > button::before {
    content: "×";
    font-size: 1.25rem;
    line-height: 1;
  }

}

/* File mode (#104): the file header takes its own height, also in the phone's
   rail sheet (chainlit#3). */
#side-view-content > .inline-custom {
  flex-grow: 0;
}
