/* Shared by the five ExtraCraft tools. Only transform/opacity animate. */
.ec-site-menu {
  position: fixed;
  z-index: 10000;
  display: block;
  box-sizing: border-box;
  width: 302px;
  max-width: calc(100vw - 16px);
  margin: 0;
  padding: 8px 0 0;
  overflow: visible;
  isolation: isolate;
  color-scheme: dark;
  pointer-events: auto;
  transform-origin: top left;
  animation: ec-sites-enter 120ms ease-out;
}
.ec-site-menu[hidden] { display: none !important; }
.ec-site-rail {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  box-sizing: border-box;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: #111722;
  box-shadow: 0 8px 24px #0005;
}
.ec-site-rail::-webkit-scrollbar { display: none; }
.ec-site-rail > a {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 100ms ease-out;
}
.ec-site-rail > a[aria-current="page"] { border-color: #ffffff52; background: #ffffff0a; }
.ec-site-rail > a:hover { background: #ffffff12; transform: translateY(-2px); }
.ec-site-rail > a:focus-visible { outline: 2px solid #f2f5ff; outline-offset: -2px; }
.ec-site-rail > a > img {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  object-fit: contain;
  pointer-events: none;
}
@keyframes ec-sites-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-site-menu { animation: none; }
  .ec-site-rail > a { transition: none; }
  .ec-site-rail > a:hover { transform: none; }
}
