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

.publish-tools.codex-three-tools button {
  min-width: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.codex-schedule-section,
.codex-check-article-section {
  margin-top: 14px !important;
}

.codex-schedule-field {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #3d3d3d;
  font-size: 14px;
}

.codex-schedule-field input,
.codex-check-public-line input {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
}

.codex-schedule-note {
  margin-top: 10px;
  color: #999;
  font-size: 12px;
  line-height: 1.55;
}

.codex-check-public-line {
  align-items: center !important;
}

.codex-check-public-line > text:first-child {
  width: 72px;
  flex: 0 0 72px;
}

.codex-check-article-section textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  resize: vertical;
  margin-top: 10px;
  border: 1px solid #efaaaa;
  border-radius: 10px;
  background: #fffafa;
  padding: 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
  outline: none;
}

.codex-check-article-section textarea:focus {
  border-color: #ed2b26;
  box-shadow: 0 0 0 2px rgba(237, 43, 38, 0.08);
}

.codex-check-search-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.78fr;
  gap: 7px;
  margin-top: 10px;
}

.codex-check-search-actions button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 19px;
  background: #ed2b26;
  color: #fff;
  padding: 0 6px;
  font-size: 12px;
}

.codex-check-search-actions button.light {
  background: #f1f2f5;
  color: #666;
}

.codex-check-search-actions button:disabled {
  opacity: 0.55;
}

.codex-check-count {
  margin: 10px 2px 7px;
  color: #777;
  font-size: 12px;
}

.codex-check-article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 1px;
}

.codex-check-article-card {
  display: flex !important;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #ececec !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #333 !important;
  padding: 10px !important;
  line-height: 1.35 !important;
}

.codex-check-article-card.selected {
  border-color: #ed2b26 !important;
  background: #fff5f4 !important;
}

.codex-check-checkbox {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.codex-check-article-card.selected .codex-check-checkbox {
  border-color: #ed2b26;
  background: #ed2b26;
}

.codex-check-article-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.codex-check-article-title {
  overflow: hidden;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-check-article-meta {
  overflow: hidden;
  color: #888;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

  .codex-check-search-actions {
    grid-template-columns: 1fr 1fr;
  }

  .codex-check-search-actions button.light {
    grid-column: span 2;
  }
}
