/* Side lists that slide in and out with the tab on each edge (‹ ›). */

.app.no-sidebar {
  grid-template-columns: 72px 1fr auto;
}

.app.no-sidebar > .sidebar {
  display: none;
}

.app.no-members #members {
  display: none !important;
}

.edge-tab {
  position: fixed;
  top: 50%;
  z-index: 20;
  width: 18px;
  height: 56px;
  margin-top: -28px;
  padding: 0;
  border: 0;
  background: #2b2d31;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 56px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.edge-tab:hover {
  background: var(--accent);
  color: #fff;
}

/* Left: at the border of the channel list (or of the server bar when hidden). */
.edge-tab.left {
  left: 320px;
  border-radius: 0 8px 8px 0;
}

.app.no-sidebar .edge-tab.left {
  left: 72px;
}

/* Right: at the border of the member list (servers only). */
.edge-tab.right {
  right: 232px;
  display: none;
  border-radius: 8px 0 0 8px;
}

.app.members-view .edge-tab.right {
  display: block;
}

.app.no-members .edge-tab.right {
  right: 0;
}

#app.hidden .edge-tab {
  display: none !important;
}

/* Narrow windows: the member list is never shown, the channel list is narrower. */
@media (max-width: 1100px) {
  .app.members-view .edge-tab.right {
    display: none;
  }
}

@media (max-width: 760px) {
  .edge-tab.left {
    left: 272px;
  }
}

/* DM call above the chat: tiles sized so two rows fit in the call area. */
.call-panel.live:not(.expanded) .call-stage .stage-grid:not(.strip) > * {
  max-width: calc(49vh - 124px);
}
