.gk-ctx {
  position: fixed;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--ml-border, rgba(255, 255, 255, 0.14));
  border-radius: 18px;
  background: var(--ml-glass-solid, rgba(10, 18, 24, 0.96));
  color: var(--ml-text, #f2f8f6);
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: inherit;
  font-size: 0.9rem;
  animation: gk-ctx-in 0.16s ease;
}

@keyframes gk-ctx-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.gk-ctx-nav {
  display: flex;
  gap: 4px;
}

.gk-ctx-nav button {
  display: inline-grid;
  flex: 1;
  place-items: center;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gk-ctx-nav button:hover,
.gk-ctx-nav button:focus-visible,
.gk-ctx-item:hover,
.gk-ctx-item:focus-visible,
.gk-ctx-item.is-on {
  background: var(--ml-soft, rgba(255, 255, 255, 0.08));
  outline: none;
}

.gk-ctx-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--ml-border, rgba(255, 255, 255, 0.14));
}

.gk-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.gk-ctx-item > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-ctx-item .ml-flag {
  width: 22px;
  height: 16px;
}

.gk-ctx-subroot {
  position: relative;
}

.gk-ctx-sub {
  direction: ltr;
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  display: none;
  min-width: 200px;
  max-height: 340px;
  overflow-y: auto;
}

.gk-flip .gk-ctx-sub {
  right: calc(100% + 6px);
  left: auto;
}

.gk-ctx-subroot:hover > .gk-ctx-sub,
.gk-ctx-subroot.is-open > .gk-ctx-sub {
  display: flex;
}
