.publish-list-page {
  padding-bottom: 136px !important;
}

.publish-manage-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 46px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 34px;
  white-space: nowrap;
}

.publish-manage-toggle-fallback {
  position: fixed;
  z-index: 80;
  top: 24px;
  right: max(18px, calc((100vw - 560px) / 2 + 18px));
}

.publish-batch-check-wrap {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
}

.publish-batch-check-wrap span {
  display: none;
}

.publish-batch-checkbox {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #e32920;
}

.publish-batch-checkbox:disabled {
  opacity: .35;
}

.publish-manage-mode .publish-batch-check-wrap {
  display: inline-flex;
}

.publish-manage-mode .pub-card {
  position: relative;
  padding-left: 48px !important;
}

.publish-manage-bar {
  position: fixed;
  z-index: 75;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  left: 0;
  display: none;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 14px;
  border-top: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 -4px 14px rgba(60, 20, 18, .10);
}

.publish-manage-bar.active {
  display: grid;
}

.publish-manage-bar button,
.batch-edit-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 19px;
  background: #e32920;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.publish-manage-all {
  background: #fff !important;
  color: #e32920 !important;
  border: 1px solid #e32920 !important;
}

.publish-manage-count {
  color: #666;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.publish-manage-bar button:disabled,
.batch-edit-actions button:disabled {
  border-color: #d8d8d8 !important;
  background: #d8d8d8 !important;
  color: #888 !important;
}

.batch-edit-nav {
  position: sticky;
  z-index: 70;
  top: 0;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #efaaa5;
  background: #fff7f6;
  box-shadow: 0 4px 12px rgba(120, 30, 24, .10);
}

.batch-edit-progress {
  margin-bottom: 8px;
  color: #222;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.batch-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.batch-edit-save {
  background: #c71912 !important;
}

@media (min-width: 561px) {
  .publish-manage-bar {
    border-right: 1px solid #ececec;
    border-left: 1px solid #ececec;
  }
}
