/* Shared disclosure markers. Native open/aria-expanded remain the state source. */
body.atlas-ui details > summary,
body.atlas-ui :is(button, [role="button"])[aria-expanded] {
  position: relative;
  padding-inline-end: 28px !important;
}
body.atlas-ui details > summary {
  list-style: none !important;
}
body.atlas-ui details > summary::marker {
  content: "" !important;
}
body.atlas-ui details > summary::-webkit-details-marker {
  display: none !important;
}
body.atlas-ui details > summary::after,
body.atlas-ui :is(button, [role="button"])[aria-expanded]::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset-inline-end: 10px;
  top: 50%;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  background: none;
  color: inherit;
  opacity: .72;
  transform: translateY(-50%);
  transform-origin: 50% 50%;
  transition: transform 120ms ease;
  pointer-events: none;
}
body.atlas-ui details[open] > summary::after,
body.atlas-ui :is(button, [role="button"])[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(90deg);
}
/* Keep existing grid slots, with one marker instead of the old +/- labels. */
body.atlas-ui summary :is(.seat-toggle, .concept-fold, .brief-toggle, .fold-label, .rank-collapse, .morning-expand) {
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  font-size: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  body.atlas-ui details > summary::after,
  body.atlas-ui :is(button, [role="button"])[aria-expanded]::after {
    transition: none;
  }
}
