.ad-mode-grid,
.insight-card-grid,
.quality-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-stage-list,
.ad-mode-grid,
.insight-card-grid,
.quality-check-grid,
.remote-filter-bar {
  display: grid;
  gap: 10px;
}

.todo-item,
.diff-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 12px;
}

.todo-item > span,
.diff-item > span,
.quality-check > span {
  display: inline-grid;
  width: fit-content;
  min-width: 42px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(36, 33, 27, 0.22);
  border-radius: 999px;
  background: #dff3e9;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.todo-item.priority-高 > span,
.diff-item.warning > span,
.quality-check.warning > span {
  background: #ffe0d8;
  color: var(--red);
}

.todo-item.priority-中 > span {
  background: #fff2bd;
  color: #8c6200;
}

.todo-item p,
.todo-item small,
.workflow-stage-card p,
.ad-mode-card p,
.insight-card p,
.diff-item p,
.quality-check p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.workflow-stage-card,
.ad-mode-card,
.insight-card,
.quality-check {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.workflow-stage-card span,
.ad-mode-card span,
.insight-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.workflow-stage-card strong,
.ad-mode-card strong,
.insight-card strong {
  font-size: 20px;
}

.ad-mode-grid {
  margin-bottom: 16px;
}

.ad-mode-card.active {
  border-color: var(--green);
  background: #f0f8f4;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.slot-card {
  min-height: 210px;
  padding: 18px;
}

.slot-topline,
.meta-row,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-card h3 {
  margin-bottom: 10px;
}

.meta-row {
  justify-content: flex-start;
  margin-top: 16px;
}

.switch-row {
  font-weight: 900;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 68px;
  height: 38px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  cursor: pointer;
  transition: background 0.16s ease;
}

.switch span::after {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--panel);
  content: "";
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(30px);
}

.url-box,
.json-box {
  overflow: auto;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(36, 33, 27, 0.24);
  border-radius: 8px;
  background: var(--ink);
  color: #fff8e7;
  line-height: 1.6;
}
