.wrap {
  position: relative;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  background: #fff;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.btn:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
  background: rgba(248, 250, 252, 0.9);
}

.btnIcon {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--toolbar-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  z-index: 120;
}

.menuItem {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.menuItem:hover {
  background: rgba(37, 99, 235, 0.06);
}

.menuItemDesc {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .menu {
    right: auto;
    left: 0;
  }
}
