.sidebarred-main-content {
  max-width: unset;
  flex: unset;
}
ol.script-list {
  /*display: flex;
  flex-wrap: wrap;*/
  border: none;
  gap: 20px;
  background: transparent;
  box-shadow: none;
  --shadow-color: #dddddd;
  --border-color: #dddddd;
}
ol.script-list li {
  /*flex: 1 1 45%;*/
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: var(--shadow-color) 0px 0px 5px 2px;
}
ol.script-list li:only-child {
  width: fit-content;
  width: -moz-fit-content;
}
ol.script-list .script-description {
  overflow-wrap: anywhere;
}
/* 收藏按钮 */
.script-collect-btn {
  color: #ffffff;
  border-color: #409eff;
  background-color: #409eff;
}
/* 评分按钮 */
.script-list-rating-score[data-position="right"] {
  display: inline-block;
  min-width: 1em;
  text-align: center;
  padding: 0 0.25em;
  border: 1px solid #dddddd;
  border-radius: 10px;
  width: fit-content;
  width: -moz-fit-content;
}
/* 安装按钮 */
.install-link {
  border-radius: 0.25rem 0.25rem 0.25rem 0.25rem !important;
}
.install-link:has(+ .install-help-link) {
  border-radius: 0.25rem 0 0 0.25rem !important;
}
/* 加载圆圈动画 */
.install-link.lum-lightbox-loader {
  position: relative;
  min-width: 4rem;
  min-height: 1rem;
}
.install-link.lum-lightbox-loader::before {
  margin-left: 1rem;
}
.install-link.lum-lightbox-loader::after {
  margin-right: 1rem;
}
.install-link.lum-lightbox-loader::before,
.install-link.lum-lightbox-loader::after {
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  border-radius: 1em !important;
  background: hsla(0, 0%, 100%, 0.5);
}

@media (prefers-color-scheme: dark) {
  ol.script-list {
    --shadow-color: #3d3d3d;
    --border-color: #3d3d3d;
  }
}
/* 仅桌面端为双列 */
/* 移动端的宽度不适用双列 */
@media screen and (min-width: 768px) {
  /* 修正一下宽度 */
  .sidebarred-main-content {
    width: 100%;
  }
  ol.script-list {
    width: 100%;
  }
  /* 如果只有一个元素，则使用单列布局 */
  ol.script-list:not(:has(> :only-child)) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  }
}
