.ux-agent-resources {
  position: relative;
  isolation: isolate;
  z-index: 3;
  display: flow-root;
  clear: both;
  padding: .75rem max(1rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom));
  background: #242321;
  color: #f6f3eb;
}
.ux-agent-menu {
  width: fit-content;
  margin: 0 auto 0 0;
  font: 500 .9rem/1.5 system-ui, sans-serif;
}
.ux-agent-menu summary {
  cursor: pointer;
  border: 1px solid #918670;
  padding: .6rem .9rem;
}
.ux-agent-menu nav {
  position: static;
  display: grid;
  width: auto;
  height: auto;
  border: 1px solid #918670;
  background: #242321;
  color: #f6f3eb;
}
.ux-agent-menu nav a {
  display: block;
  padding: .65rem .9rem;
  color: inherit;
  text-decoration: none;
}
.ux-agent-menu nav a:hover, .ux-agent-menu nav a:focus-visible { text-decoration: underline; }

body:has(.life-toggle:not([hidden])) .ux-agent-resources {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
}

@media (max-width: 48rem) {
  body:has(.build-controls, .project-build-controls) .ux-agent-resources {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }
}
