/* Native details controls retain their click and keyboard behavior. */
body.newmagic .form details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  list-style: none;
}
body.newmagic .form details > summary::-webkit-details-marker {
  display: none;
}
body.newmagic .form details > summary::marker {
  content: "";
}
body.newmagic .form details > summary::after {
  content: "";
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #d5ad60;
  border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m10 13 6 6 6-6' fill='none' stroke='%23fff0bb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px 32px no-repeat,
    linear-gradient(180deg, #ac59be, #622679);
  box-shadow: inset 0 1px 0 #ffffff80, 0 2px 4px #43145130;
  transform: none;
  transform-origin: center;
  pointer-events: none;
}
body.newmagic .form details[open] > summary::after {
  transform: rotate(180deg);
}
body.newmagic .form details > summary:hover::after {
  border-color: #f1cf83;
  box-shadow: inset 0 1px 0 #ffffff80, 0 0 0 3px #b95cd91f;
}
body.newmagic .form details > summary:focus-visible {
  outline: 2px solid #9b36b9;
  outline-offset: 3px;
}
