/* Keep activity-type column horizontal */
td[class*="7c3aed"],
th[class*="7c3aed"] {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  min-width: 5.5em;
  letter-spacing: normal !important;
}

/* Always remove React "新" badges; PRD numbers come from outer annotation layer */
span.absolute.rounded-full[class*="7c3aed"],
span.absolute.-top-2\.5,
.absolute.-top-2\.5.rounded-full {
  display: none !important;
}

/*
  PRD mode: neutralize built-in purple borders so only the outer
  annotation layer draws one dashed box + number badge.
*/
html:not(.admin-proto-clean) th[class*="7c3aed"],
html:not(.admin-proto-clean) td[class*="7c3aed"],
html:not(.admin-proto-clean) [class*="border-l-[#7c3aed]"],
html:not(.admin-proto-clean) [class*="border-r-[#7c3aed]"],
html:not(.admin-proto-clean) [class*="border-[#7c3aed]"] {
  border-color: #ebeef5 !important;
  border-style: solid !important;
  border-width: 1px !important;
  background: #f5f7fa !important;
  color: #303133 !important;
}

html:not(.admin-proto-clean) .border-2[class*="7c3aed"],
html:not(.admin-proto-clean) [class*="border-2"][class*="7c3aed"] {
  border-color: #dcdfe6 !important;
  border-style: solid !important;
  border-width: 1px !important;
  background: #fff !important;
}

html:not(.admin-proto-clean) [class*="text-[#7c3aed]"] {
  color: #303133 !important;
}

html:not(.admin-proto-clean) [class*="bg-[#f5f3ff]"],
html:not(.admin-proto-clean) [class*="f5f3ff"],
html:not(.admin-proto-clean) [class*="faf8ff"] {
  background: #fff !important;
}

/* Clean prototype: strip purple review marks */
html.admin-proto-clean [class*="7c3aed"] {
  border-color: #ebeef5 !important;
  color: #303133 !important;
}

html.admin-proto-clean [class*="bg-[#f5f3ff]"],
html.admin-proto-clean [class*="f5f3ff"],
html.admin-proto-clean [class*="faf8ff"] {
  background: #f5f7fa !important;
}

html.admin-proto-clean .border-2[class*="7c3aed"] {
  border-width: 1px !important;
  border-color: #dcdfe6 !important;
  padding-top: 0.75rem !important;
}

html.admin-proto-clean [class*="text-[#7c3aed]"] {
  color: #303133 !important;
}

/* Prototype always shows expanded AP Gateway sidebar in the doc iframe */
aside.z-40.flex.shrink-0.flex-col {
  width: 232px !important;
  overflow: visible !important;
  border-right-width: 1px !important;
}

/* Align 联赛ID / 赛事ID label column with neighboring ty rows (same p-3) */
div.space-y-3 > div.grid.items-center.gap-2 {
  padding: 0.75rem;
  box-sizing: border-box;
}

/* Keep required asterisk red/visible in both proto and PRD modes */
span.text-\[\#f56c6c\],
.grid.items-center.gap-2 > span > span:first-child {
  color: #f56c6c !important;
  opacity: 1 !important;
  visibility: visible !important;
}
