/* OnlyShows 0.11.12: balanced bottom gaps, matched masthead fades and a personal dropped library. */

.dropped-library-summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: var(--on-surface-variant);
  font-size: 12px;
}

.dropped-library-summary p {
  margin: 0;
}

.dropped-library-summary strong {
  color: var(--on-surface);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dropped-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.dropped-library-grid[hidden] {
  display: none;
}

.dropped-library-empty {
  padding: 64px 18px;
  color: var(--on-surface-variant);
  text-align: center;
}

@media (max-width: 719px) {
  #mobileWorkspaceDock {
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  body.mobile-database-tab #mobileWorkspaceDock {
    bottom: calc(124px + env(safe-area-inset-bottom)) !important;
  }

  html body:not(.mobile-database-tab):not(.mobile-profile-tab) #showGrid {
    padding-bottom: 52px !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgb(0 0 0 / 8%) 8px,
      rgb(0 0 0 / 28%) 20px,
      rgb(0 0 0 / 58%) 36px,
      rgb(0 0 0 / 84%) 54px,
      #000 72px,
      #000 calc(100% - 52px),
      rgb(0 0 0 / 76%) calc(100% - 40px),
      rgb(0 0 0 / 42%) calc(100% - 27px),
      rgb(0 0 0 / 12%) calc(100% - 14px),
      transparent calc(100% - 4px),
      transparent 100%
    ) !important;
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgb(0 0 0 / 8%) 8px,
      rgb(0 0 0 / 28%) 20px,
      rgb(0 0 0 / 58%) 36px,
      rgb(0 0 0 / 84%) 54px,
      #000 72px,
      #000 calc(100% - 52px),
      rgb(0 0 0 / 76%) calc(100% - 40px),
      rgb(0 0 0 / 42%) calc(100% - 27px),
      rgb(0 0 0 / 12%) calc(100% - 14px),
      transparent calc(100% - 4px),
      transparent 100%
    ) !important;
  }

  html body.mobile-database-tab:not(.mobile-profile-tab) #showGrid {
    padding-bottom: 102px !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgb(0 0 0 / 8%) 8px,
      rgb(0 0 0 / 28%) 20px,
      rgb(0 0 0 / 58%) 36px,
      rgb(0 0 0 / 84%) 54px,
      #000 72px,
      #000 calc(100% - 102px),
      rgb(0 0 0 / 84%) calc(100% - 88px),
      rgb(0 0 0 / 58%) calc(100% - 70px),
      rgb(0 0 0 / 28%) calc(100% - 53px),
      rgb(0 0 0 / 8%) calc(100% - 38px),
      transparent calc(100% - 28px),
      transparent 100%
    ) !important;
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgb(0 0 0 / 8%) 8px,
      rgb(0 0 0 / 28%) 20px,
      rgb(0 0 0 / 58%) 36px,
      rgb(0 0 0 / 84%) 54px,
      #000 72px,
      #000 calc(100% - 102px),
      rgb(0 0 0 / 84%) calc(100% - 88px),
      rgb(0 0 0 / 58%) calc(100% - 70px),
      rgb(0 0 0 / 28%) calc(100% - 53px),
      rgb(0 0 0 / 8%) calc(100% - 38px),
      transparent calc(100% - 28px),
      transparent 100%
    ) !important;
  }

  .dropped-dialog .insights-scroll {
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .dropped-library-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    overflow: visible !important;
  }

  .dropped-library-grid.mobile-list-view .show-card {
    width: 100%;
  }
}
