/* =========================================================
   BuriedKeep Core Mouse Menu
   Uses global theme variables from global-1.css/public_config.json.
   ========================================================= */
.bk-mouse-menu {
  position: fixed;
  z-index: 2000;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 0.35rem;
  color: var(--text-main);
  background: var(--bg-panel);
  border: var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-text, var(--font-body));
}

.bk-mouse-menu[hidden] {
  display: none;
}

.bk-mouse-menu-title {
  padding: 0.35rem 0.45rem 0.45rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
  opacity: 0.68;
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: var(--border-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-mouse-menu-button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  margin: 0.1rem 0;
  text-align: left;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-text, var(--font-body));
  font-size: 0.92rem;
  line-height: 1.2;
}

.bk-mouse-menu-button:hover,
.bk-mouse-menu-button:focus-visible {
  background: var(--bg-panel-soft);
  outline: none;
}

.bk-mouse-menu-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.bk-mouse-menu-divider {
  height: 1px;
  margin: 0.35rem 0.2rem;
  background: rgba(0, 0, 0, 0.14);
}
