.publish-tools.codex-three-tools {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.publish-tools.codex-three-tools > button {
  min-width: 0;
  padding-left: 2px !important;
  padding-right: 2px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.codex-batch-delete-page {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  background: #f6f6f6;
}

.codex-batch-delete-page .check-body {
  padding-bottom: 108px;
}

.codex-batch-delete-heading {
  font-weight: 700;
}

.codex-batch-delete-issue {
  margin-top: 12px;
}

.codex-batch-delete-input {
  min-width: 0;
}

.codex-batch-delete-note {
  margin: 12px 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f2;
  color: #b33b32;
  font-size: 13px;
  line-height: 1.55;
}

.codex-batch-delete-filter {
  margin-top: 12px;
}

.codex-batch-delete-filter-button,
.codex-batch-delete-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #ef2b24;
  color: #fff;
}

.codex-batch-delete-filter-button {
  min-height: 42px;
  font-size: 15px;
}

.codex-batch-delete-summary {
  margin: 12px 0 8px;
  color: #666;
  font-size: 13px;
}

.codex-batch-delete-select-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.codex-batch-delete-select-actions > button {
  min-height: 36px;
  border: 1px solid #ef2b24;
  border-radius: 8px;
  background: #fff;
  color: #ef2b24;
  font-size: 13px;
}

.codex-batch-delete-list {
  max-height: 46vh;
  overflow-y: auto;
}

.codex-batch-delete-card {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.codex-batch-delete-card.selected {
  border-color: #ef2b24;
  background: #fff8f7;
}

.codex-batch-delete-checkbox {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d7d7dc;
  color: transparent;
  font-size: 18px;
  font-weight: 700;
}

.codex-batch-delete-card.selected .codex-batch-delete-checkbox {
  background: #ef2b24;
  color: #fff;
}

.codex-batch-delete-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.codex-batch-delete-title,
.codex-batch-delete-meta {
  display: block;
}

.codex-batch-delete-title {
  overflow: hidden;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-batch-delete-meta {
  color: #888;
  font-size: 12px;
  line-height: 1.45;
}

.codex-batch-delete-empty {
  padding: 32px 10px;
  color: #aaa;
  text-align: center;
}

.codex-batch-delete-result {
  display: none;
  margin-top: 10px;
}

.codex-batch-delete-result.visible {
  display: block;
}

.codex-batch-delete-result.error {
  color: #d72821;
}

.codex-batch-delete-submit {
  z-index: 91;
}

.codex-batch-delete-button {
  min-height: 48px;
  font-size: 17px;
  font-weight: 700;
}

.codex-batch-delete-page button:disabled {
  opacity: 0.45;
}

.codex-batch-material-page .check-body {
  padding-bottom: 96px;
}

.codex-batch-material-issue {
  margin-top: 12px;
}

.codex-batch-material-search textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  box-sizing: border-box;
  resize: vertical;
  padding: 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #f7f7f9;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
}

.codex-batch-material-search .codex-check-search-actions > button {
  width: 100%;
}

.codex-batch-material-list {
  max-height: 310px;
  overflow-y: auto;
}

.codex-batch-material-card {
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.codex-batch-material-card .codex-check-checkbox {
  background: #d7d7dc;
  color: transparent;
}

.codex-batch-material-card.selected .codex-check-checkbox {
  background: #ef2b24;
  color: #fff;
}

@media (max-width: 360px) {
  .publish-tools.codex-three-tools {
    gap: 3px !important;
  }

  .publish-tools.codex-three-tools > button {
    font-size: 11px !important;
  }
}
