/* KOKO exposes only the image and video generation flows. */
button[aria-label="文本"],
button[aria-label="音频"],
label.ant-segmented-item:has(.lucide-message-square),
label.ant-segmented-item:has(.lucide-music2),
label.ant-segmented-item:has(.lucide-music-2) {
  display: none !important;
}

/* Keep node actions usable when a narrow viewport cannot fit every action. */
.absolute.z-\[70\] {
  max-width: min(720px, calc(100vw - 24px));
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(36, 37, 41, 0.42) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.absolute.z-\[70\]::-webkit-scrollbar {
  height: 5px;
}

.absolute.z-\[70\]::-webkit-scrollbar-track {
  background: transparent;
}

.absolute.z-\[70\]::-webkit-scrollbar-thumb {
  background: rgba(36, 37, 41, 0.42);
  border-radius: 999px;
}

.absolute.z-\[70\] > * {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .absolute.z-\[70\] {
    max-width: calc(100vw - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .absolute.z-\[70\] {
    scroll-behavior: auto;
  }
}
